Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles; site hpfcla.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!qantel!hplabs!hpfcdc!hpfcla!ajs
From: ajs@hpfcla.UUCP
Newsgroups: net.unix
Subject: Re: crontab & stderr discovery
Message-ID: <43800030@hpfcla.UUCP>
Date: Thu, 3-Oct-85 20:55:00 EDT
Article-I.D.: hpfcla.43800030
Posted: Thu Oct  3 20:55:00 1985
Date-Received: Sun, 6-Oct-85 14:45:50 EDT
References: <704@adobe.UUCP>
Organization: 03 Oct 85 18:55:00 MDT
Lines: 16

> This seems to indicate that a line such as:
> 
> 1 0 * * * /bin/sh /usr/adm/script.sh 1>/usr/adm/script.log 2>&1
> 
> wastes a shell; that it could be run as:
> 
> 1 0 * * * /usr/adm/script.sh 1>/usr/adm/script.log 2>&1

Not only that, you can save another shell by running it as:

  1 0 * * * exec /usr/adm/script.sh 1>/usr/adm/script.log 2>&1

I'll be amused if there are systems on which this fails!

Alan Silverstein, Hewlett-Packard Fort Collins Systems Division, Colorado
{ihnp4 | hplabs}!hpfcla!ajs, 303-226-3800 x3053, N 40 31'31" W 105 00'43"