Thanks to all these folks:
Jorge Granjal
Gwen Pettigrew
Sam Nelson
Sean O'Connell
Mark R. Mach
Gernot Salzer
Yizhong Zhou
George Guethlein
Oisin McGuinness
Mireille BOF
Lucio Chiappetti
Thomas M. Payerle
Debra Alpert
Jason Manchenton
The receipt is the same as given by Oisin:
>>From the man page:
>
> After cron runs commands according to the contents of your crontab file, it
> mails you the output from standard output and standard error for these com-
> mands, unless you redirect standard output or standard error.
>
> So you should redirect standard output and standard error.
> Since crontab uses sh to run the commands, you should
> use sh syntax to do this, e.g.,
>
> command 1>/dev/null 2>&1
>
> will get rid of everything.
>
> Of course, some people believe that finding out what went wrong is a good idea....
Original post:
> Is there a way to prevent crontab from sending mail messages
> when it unsucceeds to execute some command?
Thanks again
Oyanarte Portilho
Institute of Physics
University of Brasilia, Brazil
Received on Tue Jun 01 1999 - 19:04:03 NZST