Using gnome, so I didn't get to try out the KDE trick.
xclip was in one of my repositories in Ubuntu. For some strange reason I
can't use it without specifying the full path to it, but it worked for me -
I was able to: ./my_py_script.py |  /usr/X11R6/bin/xclip
Then I had to paste with the middle mouse button - when I tried to paste
with Ctrl-V I got some other leftover clipboard stuff. Typically I use
Ctrl-C/Ctrl-V and mouse-highlight/middle-mouse-button interchangably. I had
no idea they used entirely different clipboards...

Thanks for the help.

- Jason 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Allen Brown
> Sent: Thursday, February 16, 2006 8:05 AM
> To: Eugene Unix and Gnu/Linux User Group
> Subject: Re: [Eug-lug] shell to clipboard?
> 
> Mike Cherba wrote:
> > I grabbed it and tried it before I responded, but It has it's own 
> > issues and didn't work at all in my system, where the dcop 
> call worked 
> > perfectly.
> 
> Neither command works for me.  I am running xfce under Debian stable.
> --
> Allen Brown  [EMAIL PROTECTED]  http://www.peak.org/~abrown/
>    "... one of the main causes of the fall of the Roman Empire
>    was that, lacking zero, they had no way to indicate successful
>    termination of their C programs."  --- Robert Firth
> 
> 
> > On Thu, 2006-02-16 at 00:25 -0800, Patrick R. Wade wrote:
> > 
> >>Neil Parker wrote:
> >>
> >>>Patrick Wade wrote,
> >>>
> >>>
> >>>>Jason LaPier wrote:
> >>>>
> >>>>
> >>>>>How do I redirect shell (bash) output to the clipboard?
> >>>>>
> >>>>>I know I can manually select it or redirect it to a 
> file, but it's long and
> >>>>>I'm just going to copy and paste anyway - I know there's 
> a way to > or | it
> >>>>>straght to clip...
> >>>>>
> >>>>
> >>>>A utility called xclip is what you want; can take stdin 
> to clipboard or 
> >>>>dump stdout from clipboard.
> >>>
> >>>
> >>>Except that it's not always available.  There's nothing 
> resembling it on
> >>>my Slackware system.  There is "xclipboard", but it only 
> views and saves
> >>>the clipboard...it doesn't read from stdin, or anywhere else.
> >>>
> >>
> >>You can get source at http://people.debian.org/~kims/xclip/
> >>
> >>It also addresses briefly the issues with X "clipboards" 
> you mentioned.
> >>
> _______________________________________________
> EUGLUG mailing list
> [email protected]
> http://www.euglug.org/mailman/listinfo/euglug
> 

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to