Thanks to:
Lucio Chiappetti
Marco Bento
Vincent Kiely
Ron Bramblett
Thomas Payerle
William Bochnik
Two good possibilities:
1. The popular one: at the cron command pipe the output of the cron to a
mailx command eg:
* * * * * * cronjob command | mailx -s "Subject" user_at_b.com
2. if the command is actually a script to be fired, then in the script place
the same mailx command in 1 above into the script.
Of course, you can modify option 1 and convert it into option 2 format.
Once again, thanks very much
-----Original Message-----
From: Andre Thompson [mailto:AThompson_at_ADMIN.UWI.TT]
Sent: Tuesday, June 12, 2001 10:57 AM
To: Unix Managers (E-mail)
Subject: Subject for cron
Hi Managers
I don't know if this is possible:
You know that cron sends a mail message whenever a job is completed.
What I would like to know is: Is there a way of including a subject for this
cron mail message?
The reason is that I have SEVERAL cron jobs running that get forwarded to my
Microsoft Exchange server. When I read these cron mail messages, there is no
subject to distinguish them.
Alternate solutions are also welcome :-))
Warm regards
Andre
Received on Tue Jun 12 2001 - 15:38:44 NZST