[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ilugc
Subject:    Re: [Ilugc] Doubt in crontab
From:       Arun Khan <knura9 () gmail ! com>
Date:       2011-02-27 19:34:09
Message-ID: AANLkTimhOK+DzsA-wm8wYJUeMds-htQ97VN=xUtdjT97 () mail ! gmail ! com
[Download RAW message or body]

On Sun, Feb 27, 2011 at 10:01 PM, ashwin kesavan <ashwin.chn@gmail.com> wrote:

>> 2)Another thing, I started the crontab file with MAILTO="asd@asd.com"
>> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic