Email inside cron
Silva, Germano
Germano_Silva at brown.edu
Fri Aug 20 14:31:01 UTC 2004
Hi,
I have a Cshell script that does a whole bunch of stuff and as it is
doing stuff, it writes status data to a log file. At the end of the
script I email the contents of the log file to me email address as
follow:
/bin/mail -s "${MsgHeader} finished." ${MailTo} <${logfile}
This works fine when I run the script interactively, but no email is
sent when I run ut as a cron job.
Any ideas why?
Thanks
More information about the redhat-list
mailing list