On Thu, 01 Jun 2000,  Antony Stace wrote about,  Slectively getting mail sent when a 
cronjob is run.:
> Hi Folks
> 
> Can I selectively decide which cron jobs are to send me a notification
> message.  The only option I can see is to set the MAILTO variable.  If
> it is set then the user under which the cron job was run is sent a mail,
> otherwise no mail is sent.  I want to get mail sent for some cron jobs
> but not others.  Is there any way to do this?
> 
> Any help appreciated.

Your answer is clearly stated in 'man crontab'

       The command portion of the line is  run  with  /bin/sh  -c
       <command> and may therefore contain any valid bourne shell
       command.  A common practice is to run  your  command  with
       exec  to  keep  the process table uncluttered.  It is also
       common to redirect output to a log file.  If you  do  not,
       and  the command generates output on stdout or stderr, the
       result will be mailed to the user in question.  If you use
       this  mechanism  for  special users, such as UUCP, you may
       want to create an alias for the user to direct the mail to
       someone else, such as root or postmaster.

> 
> Cheers
> 
> Tony
> 

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to