K. Shantanu wrote:

* K. Shantanu  <[EMAIL PROTECTED]> [040808 23:56]:

Now I have,
MAILTO=
in /etc/crontab, but that does not help. Still mail is sent to root.
Is it because I am running crontab of root? i.e. crontab -e as root?
If yes, where and how do I insert MAILTO= in that file?


For records,
MAILTO= does not work in user's crontab. I has to be MAILTO=""
I haven't yet tested this wholly. Maybe someone else can comment.

Cron will by default mail the output to the user the crontab belongs to, but if you want the mail to go somewhere else you may specify it in the variable. You may also give an empty MAILTO variable ( by writing "MAILTO=" in your crontab). Cron won't mail any mails to an empty address ...

Raghu.

------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help




------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to