Topic awaiting preservation: Cron Job Emails (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Australia |
posted 08-13-2006 10:38
Just a quick question.... |
Paranoid (IV) Inmate From: Madison, Indiana |
posted 08-13-2006 18:41
What I'm remembering is that if your script creates any output to standard out or standard error, crond will send an e-mail. If you don't want to receive an e-mail when your cron runs, make sure your script doesn't produce any output. |
Paranoid (IV) Inmate From: Australia |
posted 08-14-2006 04:07
Yeh, i tried getting it to run a blank php script and still got the emails |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 08-14-2006 09:24
* * * * * myCronJobExecutable >/dev/null |
Paranoid (IV) Inmate From: Australia |
posted 08-14-2006 09:57
But that stops all emails, even the error ones |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 08-14-2006 17:49
Learn your shell, son |
Paranoid (IV) Mad Librarian From: Glieberlermany |
posted 08-14-2006 17:58
It shouldn't, as ">" will redirect only standard output, "2>" only the error msgs, and "&>" both. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 08-14-2006 20:07
yeah... 8 hours response time is *way* to fast ^^. |
Paranoid (IV) Inmate From: Australia |
posted 08-15-2006 02:10
I tried >/dev/null and made it have an error but got no email TP. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 08-15-2006 09:59
well, the man pages are decent - but there are multiple of them which you might easily miss. |
Paranoid (IV) Inmate From: Australia |
posted 08-15-2006 11:55
Lol i think i will have to do some googling to put your post into english, i am very much a cron noob, and fairly new to linux too! |