
Hi, Am Donnerstag, 27. November 2003 14:59 schrieb darryl penny:
To this day I still can't get the following to work from a cron job:
mt -f /dev/st0 setblk 32768 && tar -cSPf /dev/st0 -b 64 /store/bkup && mt -f /dev/st0 rewoffl
It returns the following error: tar: /dev/st0: Wrote only 0 of 32768 bytes tar: Error is not recoverable: exiting now
The job runs without complaining on a root konsole. If anyone can help sort this out once and for all I *really* will be chuffed.
Don't know if it is part of your problem, but with cron you should watch out for the $PATH environment within the cron job - I would either explicitly define $PATH within the cron job or use absolut paths for the binaries that the cron job is calling. Also worth checking is who is the owner of the job (it might be dropping privileges). Greetings from Bremen hartmut