[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils
Subject:    Re: bug#8247: How to write an application
From:       alfred inacio <inacioalfred () gmail ! com>
Date:       2011-03-14 19:26:35
Message-ID: AANLkTim-61o2L=myAAwDDyG=y5dv-GcscYicwce4iMgy () mail ! gmail ! com
[Download RAW message or body]

Adding core utils back on CC. Yes. I tried that program before contacting
you... I did a pwd in my terminal, then tried to do a ctr+v into another
window and the clipboard still had older data. . .

On Mon, Mar 14, 2011 at 3:23 PM, alfred inacio <inacioalfred@gmail.com>wrote:

> I tried xclip. It didn't seem to work. I'm using ubuntu 10 lts.
>
> On Mon, Mar 14, 2011 at 2:41 PM, Eric Blake <eblake@redhat.com> wrote:
>
>> 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   eblake@redhat.com     <%2B1-801-349-2682>+1-801-349-2682
>> Libvirt virtualization library http://libvirt.org
>>
>>
>

[Attachment #3 (text/html)]

Adding core utils back on CC. Yes. I tried that program before contacting you... I \
did a pwd in my terminal, then tried to do a ctr+v into another window and the \
clipboard still had older data. . . <br><br><div class="gmail_quote"> On Mon, Mar 14, \
2011 at 3:23 PM, alfred inacio <span dir="ltr">&lt;<a \
href="mailto:inacioalfred@gmail.com">inacioalfred@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> I tried xclip. It \
didn&#39;t seem to work. I&#39;m using ubuntu 10 lts. <br><div><div></div><div \
class="h5"><br><div class="gmail_quote">On Mon, Mar 14, 2011 at 2:41 PM, Eric Blake \
<span dir="ltr">&lt;<a href="mailto:eblake@redhat.com" \
target="_blank">eblake@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"><div>On 03/14/2011 12:31 PM, alfred \
inacio wrote:<br> &gt; Hi Eric,<br>
&gt;<br>
&gt; Thanks for your help here. I know exactly what I want, a very simple<br>
&gt; application which copies the output into the clipboard... for example, say<br>
&gt; my program is called bordpst... then if I did this:<br>
&gt;<br>
&gt; pwd &gt; bordpst<br>
&gt;<br>
&gt; then, I went into my GUI and pressed ctrl + v, I would paste the directly I<br>
&gt; was in from above. I couldn&#39;t find anything like this. Maybe I didn&#39;t \
look<br> &gt; hard enough?<br>
<br>
</div>Sounds like you want to reinvent xclip.<br>
<br>
pwd | xclip<br>
<br>
then you can ctrl-v that output into anything that understands how to<br>
read the X clipboard.  But that&#39;s a much more complex program than one<br>
of the GNU Coreutils, since it involves interactions with X11 code.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div>Eric Blake   <a href="mailto:eblake@redhat.com" \
target="_blank">eblake@redhat.com</a>    <a href="tel:%2B1-801-349-2682" \
target="_blank"></a><a href="tel:%2B1-801-349-2682" \
target="_blank">+1-801-349-2682</a><br>

Libvirt virtualization library <a href="http://libvirt.org" \
target="_blank">http://libvirt.org</a><br> <br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic