Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: g0daeniken@sgcl1.unisg.ch (Eric von Daeniken)
Subject: cron: How to redirect stdout of SCRIPTS?
Date: 1 Sep 94 11:28:58 MET	[thread overview]
Message-ID: <1994Sep1.112858.2110@sgcl1.unisg.ch> (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


                 reply	other threads:[~1994-09-01 10:28 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