* cron: How to redirect stdout of SCRIPTS?
@ 1994-09-01 10:28 Eric von Daeniken
0 siblings, 0 replies; only message in thread
From: Eric von Daeniken @ 1994-09-01 10:28 UTC (permalink / raw)
The redirection of stdout and stderr works fine with single commands
in the crontab lines, i.e. something like
50 10 * * * /sbin/date > /date.log
The output is written to the file, and I'm getting no mail.
But if the command is a script (containing several dump and vdump
commands in my case), the stdout of the script itself (and not of the
commands) apparently gets redirected, I'm getting a 0 byte logfile and
still a mail.
So I've tried to redirect stdout in every script line (no, I didn't
forget >> from the 2nd line), but I get the same results:
I get a log file with 0 bytes but still a darn mail with the stdout!
What's wrong? BTW I'm using OSF/1 2.0.
Any hints or workarounds very appreciated.
thanks in advance
Eric
g0daeniken@sgcl1.unisg.ch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-09-01 10:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-01 10:28 cron: How to redirect stdout of SCRIPTS? Eric von Daeniken
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox