[plug] adding attachments

James Devenish devenish at guild.uwa.edu.au
Tue May 13 10:28:28 WST 2003


In message <1052791859.963.15.camel at vaio>
on Tue, May 13, 2003 at 10:11:00AM +0800, Ryan wrote:
> mail -s "chkrootkit report - `date +%a' '%d' '%h' '%Y`" "bob at domain.com, someone at else.com" << END
> Blah blah ... story here
> 
> Uptime: `uptime`
[...]
> End of report.
> END

A variation on that:

/run/a/script/you/prepared/earlier \
    |& tee /filesystem/destination/in/case/mail/is/down \
    | mail -s "`hostname` blah report - `date -R`" me at somewhere




More information about the plug mailing list