From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d07695641fa7baf7,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-01 06:53:29 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!EU.net!Austria.EU.net!newsfeed.ACO.net!swidir.switch.ch!scsing.switch.ch!sgcl1.unisg.ch!g0daeniken From: g0daeniken@sgcl1.unisg.ch (Eric von Daeniken) Newsgroups: comp.unix.osf.osf1 Subject: cron: How to redirect stdout of SCRIPTS? Message-ID: <1994Sep1.112858.2110@sgcl1.unisg.ch> Date: 1 Sep 94 11:28:58 MET Organization: University of St.Gallen, Switzerland 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