Re: troubles with tar, compression and cron

2003-12-11 Thread Jukka Salmi
Colin Watson --> debian-user (2003-12-11 12:24:07 +): > 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. That's it! There was a typo in cron's $PATH. Thanks a lot! Jukka -- bashian ro

Re: troubles with tar, compression and cron

2003-12-11 Thread Colin Watson
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

Re: troubles with tar, compression and cron

2003-12-11 Thread Jukka Salmi
Hello, 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: Can

Re: troubles with tar, compression and cron

2003-12-10 Thread Christian Schnobrich
On Wed, 2003-12-10 at 15:39, Jukka Salmi wrote: > The command which causes this error is 'tar -czf /dev/nst0 ...'. The same > error happenes if I use bzip2 (tar -j). Not using compression at all solves Just a wild guess... try to omit the dash, like 'tar cfz /dev/...' I have on several occasions