Re: troubles with tar, compression and cron
I still couldn't solve my problem. I stripped down the script to the
$ cat ~/bin/tapetest
/bin/tar -czf /dev/nst0 dir
echo "tar returned $?"
Running it manually gives:
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
Any help is appreciated!
$ ((RANDOM%6)) || rm -rf ~