Emailing the output from a cronjob


You can have the output from a cronjob sent to yourself via email using the following syntax:

02 04 * * * /usr/local/bin/run-reports |mail peter

'peter' should be a local account, although you might be able to use an internet email address, too. (I haven't tried it.) You could also just put a .forward file in peter's home directory.

12/21/2005