cron emails

Status
Not open for further replies.

CodePT

Cadet
Joined
Sep 21, 2011
Messages
1
Hi,

is it possible to receive e-mails from the jobs present in /etc/crontab?

I saw some had output redirection but others didn't and I haven't recevied any mail.

On a normal system the e-mails get sent to root or whatever the MAILTO variable holds.

I don't know if I'm supposed to receive e-mails regarding these jobs.

I've configured the e-mail settings and sent a test e-mail successfully.

Cheers,
 

b0bje

Dabbler
Joined
Sep 16, 2011
Messages
16
I added a script to crontab through the GUI and noticed in /etc/crontab it auto appended ">/dev/null 2>&1".
So any and all output send to STDOUT or STDERROR will be lost.

If you want certain output to be mailed, I believe you have to adjust the script/job to send mail yourself.
 
Status
Not open for further replies.
Top