* cron problem - redirects stderr *and* stdout
@ 1996-05-31 4:00 Shawn Hose
0 siblings, 0 replies; only message in thread
From: Shawn Hose @ 1996-05-31 4:00 UTC (permalink / raw)
I am currently running DUnix 3.2c, Dec Alpha 2100 and 1000
I have a cron job that runs every nite and although I redirect stderr to
dev/null stdout gets redirected as well. It looks like this:
0 5 * * 2,3,4,5,6 /var/spool/cron/scriptfiles/myscript 2>/dev/null
The script file that runs mails me a message if "a certain file" is found.
If "the file" is not found it exits. The problem is , if I don't redirect
stderr in the crontab file then I get mailed an empty mail message when
"the file" is not found. If I do redirect stderr as noted above cron
redirects stderr *and* stdout (the mail message).
Note if I run this same command (./myscript 2>/dev/null) from the command
line instead of cron it works fine.
Any ideas would be appreciated! Please e-mail.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-05-31 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-31 4:00 cron problem - redirects stderr *and* stdout Shawn Hose
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox