[Gllug] pipe data to mail body
ben f
ben_m_f at yahoo.co.uk
Fri Feb 27 15:52:04 UTC 2004
Hi everyone,
quick query:
I want to receive an e-mail that has several outputs
in it. e.g.
awk -f ~/sh/myextract.awk $log | mail -s 'test' root
So the output of the awk script gets sent as the mail
body. But (!), I also want other outputs to go into
it, such as:
head -1 $log | awk '{print $1}'
One idea is to use <<EOF and put my other stuff
in variables but I don't like that.
Is there a neat way I can achieve this without
resorting to putting it all in a buffer file and then
sending that file? I'm just curious as at the moment
the extent of my knowlege makes that my preferred
option.
Thanks,
Ben
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list