[LUNI] capturing shell output in a cut/paste buffer
Joe Frost
joe at the-frosts.org
Mon Apr 23 10:04:56 CDT 2007
On Mon, 2007-04-23 at 07:29 -0500, Jay Strauss wrote:
> Is there anyway to run a command and capture the output in a cut/paste buffer?
That's a neat idea, I'd love to hear if it's possible.
> 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.
In lieu of writing to a file you could have just redirected it to an
email. Something like
grep networkmanager /var/log/syslog | \
mailx -s "Subject" somebody at somewhere.com
It looked like you needed to paste that into a browser, so that wouldn't
have worked, but keep it in mind for later.
Joe
More information about the luni
mailing list