Email inside cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux