[plug] adding attachments

Jon Miller jlmiller at mmtnetworks.com.au
Tue May 13 08:49:17 WST 2003


I need to either add an attachment or pipe the results of a command to
an email that is run via cron.
For instance I want the results from a command to be in the content of
an e-mail that I have the system send to me.

ex: if I run chkrootkit it displays on screen the results, so I want
that information piped to an e-mail will the following work:
chkrootkit > | /bin/mail -s "ChkRootKit Results"
jlmiller at mmtnetworks.com.au

Where I'm getting mixed up is if I pipe to a file (chkrootkit > crk.log)
this puts  the info in the file, then I'll I'll need to attach this file
to the email.

Is there a mail command in using the command line to tell it to attach a
file?

Hope this is clear.
-- 
Jon Miller <jlmiller at mmtnetworks.com.au>
MMT Networks Pty Ltd




More information about the plug mailing list