From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079044115471.tru64-unix-managers.marc@archive.invalid> From: Oyanarte Portilho Date: Tue, 01 Jun 1999 18:58:50 +0000 To: tru64-unix-managers Subject: [Summary] no mails from crontab X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079044115471 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