coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#8247: How to write an application


From: Eric Blake
Subject: Re: bug#8247: How to write an application
Date: Mon, 14 Mar 2011 12:41:36 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 03/14/2011 12:31 PM, alfred inacio wrote:
> Hi Eric,
> 
> Thanks for your help here. I know exactly what I want, a very simple
> application which copies the output into the clipboard... for example, say
> my program is called bordpst... then if I did this:
> 
> pwd > bordpst
> 
> then, I went into my GUI and pressed ctrl + v, I would paste the directly I
> was in from above. I couldn't find anything like this. Maybe I didn't look
> hard enough?

Sounds like you want to reinvent xclip.

pwd | xclip

then you can ctrl-v that output into anything that understands how to
read the X clipboard.  But that's a much more complex program than one
of the GNU Coreutils, since it involves interactions with X11 code.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]