Re: Crontab not sending mail with job output ?
- From: Rikishi42 <skunkworks@xxxxxxxxxxxxx>
- Date: Sat, 7 Feb 2009 02:52:03 +0100
On 2009-02-06, J.O. Aho <user@xxxxxxxxxxx> wrote:
Nope, nothing is beeing redirected to null or to a file.The script produces some output to stdout when I run it manually.Look at the crontab how the line looks like, so it don't include
When cron runs it (on my other machines) that output is wrapped in a mail
and send to my machines mailbox.
But that's not working here.
something like '&> /dev/null' as then you won't get any output and cron
won't mail anything.
Also it should have a 'MAILTO=root'.Now that's something I can check. But what should have it where ?
I can't find an environment variable MAILTO, for one.
if you have a script in /etc/cron.* then check that the script don'tSo far, I've only looked at a running a simple script in my ~/bin. And for
pipe it to /dev/null.
testing purposes, an simple echo of a text.
Also check that cron is really running, if not, you can prolly figure itIt's running, the scripts get executed perfectly. And if I redirect it's
out...
output to a file, that file get written to.
Weird, huh ?
--
Elevators smell different to midgets
.
- Follow-Ups:
- Re: Crontab not sending mail with job output ?
- From: J.O. Aho
- Re: Crontab not sending mail with job output ?
- From: Bit Twister
- Re: Crontab not sending mail with job output ?
- References:
- Crontab not sending mail with job output ?
- From: Rikishi42
- Re: Crontab not sending mail with job output ?
- From: noi ance
- Re: Crontab not sending mail with job output ?
- From: Rikishi42
- Re: Crontab not sending mail with job output ?
- From: J.O. Aho
- Crontab not sending mail with job output ?
- Prev by Date: Re: Just curious
- Next by Date: Re: Crontab not sending mail with job output ?
- Previous by thread: Re: Crontab not sending mail with job output ?
- Next by thread: Re: Crontab not sending mail with job output ?
- Index(es):
Relevant Pages
|