I have a job run by crontab which produces a log file.
I want the job to email me the log file on completion.
sendmail works and if at the prompt I enter
/usr/sbin/sendmail -t < logfile
I get the mail ok.
The crontab job works as follows.
cat mailheader > logfile
(where mailheader contains...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.