PDA

View Full Version : [ubuntu] cronjob mailing



slaz
March 13th, 2012, 09:25 PM
Hi,

I am trying to figure out how to use cron from the terminal. I want the server to email log files. I looked at the crontab file in /etc/crontab but when I add the variable MAILTO=myemal.com nothing gets mailed. Could someone point me in the right direction.

thanks,
Slaz

doctorzeus
March 13th, 2012, 09:52 PM
Hi,

I am trying to figure out how to use cron from the terminal. I want the server to email log files. I looked at the crontab file in /etc/crontab but when I add the variable MAILTO=myemal.com nothing gets mailed. Could someone point me in the right direction.

thanks,
Slaz

I think your email has to be marked as a string,

i.e. MAILTO="myemail.com"

(put "" quotes around your email)..

See if that works..