From: Oyanarte Portilho <portilho () fis ! unb ! br>
To: tru64-unix-managers
Subject: [Summary] no mails from crontab
Date: Tue, 01 Jun 1999 18:58:50 +0000 [thread overview]
Message-ID: <96079044115471.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1999-06-01 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox