[LUNI] capturing shell output in a cut/paste buffer
Joe Digilio
jgd-luni at metajoe.com
Tue Apr 24 10:52:15 CDT 2007
There is a debian package called xclip which looks like it's exactly
what you're looking for. From the description:
xclip is a command line utility that is designed to run on any system with an
X11 implementation. It provides an interface to X selections ("the clipboard")
from the command line. It can read data from standard in or a file and place
it in an X selection for pasting into other X applications. xclip can also
print an X selection to standard out, which can then be redirected to a file
or another program.
.
Homepage: http://people.debian.org/~kims/xclip/
-Joe
On 4/23/07, Jay Strauss <me at heyjay.com> wrote:
> Hi,
>
> Is there anyway to run a command and capture the output in a cut/paste buffer?
>
> For example, I needed to send an email that showed the output of:
> cat /var/log/syslog | grep networkmanager
>
> So I had to write the output to a file, then open the file in an
> editor where I could do a "select all". then paste it into my email.
>
> I would have liked to just run the command and have the output go
> directly to a cut/paste buffer. (better yet run the command from
> directly from my browser, and have the output go to the browser's
> window)
>
> Thanks
> Jay
> --
> Linux Users Of Northern Illinois - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>
More information about the luni
mailing list