From: shawn.hose@gsfc.nasa.gov (Shawn Hose)
Subject: cron problem - redirects stderr *and* stdout
Date: 1996/05/31 [thread overview]
Message-ID: <4omps1$430@post.gsfc.nasa.gov> (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.
reply other threads:[~1996-05-31 4:00 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