On Thu, Dec 11, 2003 at 01:10:31PM +0100, Jukka Salmi wrote: > I still couldn't solve my problem. I stripped down the script to the > following: > > $ cat ~/bin/tapetest > #!/bin/sh > cd / > /bin/tar -czf /dev/nst0 dir > echo "tar returned $?" > > Running it manually gives: > > $ ~/bin/tapetest > tar returned 0 > > ...but when run from cron I get: > > tar (grandchild): gzip: Cannot exec: No such file or directory > tar (grandchild): Error is not recoverable: exiting now > tar returned 141
Sounds like your cron job doesn't have an appropriate path. Try setting PATH=/usr/bin:/bin explicitly at the top, adding any other directories you need. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]