[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: troubles with tar, compression and cron


I still couldn't solve my problem. I stripped down the script to the

$ cat ~/bin/tapetest
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

As said before, the same happens if I use bzip2 in place of gzip (except
the above error message from tar is 'bzip2: Cannot exec:', of course...).
Using no compression works fine even with cron...

This is on a Debian testing i386 system. I'm using tar 1.13.25-6 and
cron 3.0pl1-81.

Any help is appreciated!

TIA, Jukka

bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Reply to: