On Sun, Feb 27, 2011 at 10:01 PM, ashwin kesavan <[email protected]> wrote:

>> 2)Another thing, I started the crontab file with MAILTO="[email protected]"
>> but no mail came to that address.
>
> That is not the way to send mail . It works only on GUI when some one
> clicks on link their default mail client will be used to open the GUI.
> How can a crontab do that when it is working in the background. Please
> read on the mail command . It will tell you how to send mail through
> command line.
>

The MAILTO is a valid declarative in the crontab files.   You need to
have a mail server setup.  postfix for localhost smtp will do for
starters.

See http://www.manpagez.com/man/5/crontab/

-- Arun Khan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to