On Fri November 28 2003 06:16 am, darryl penny wrote:
Hi all.
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.
TIA Best regards, Darryl
My first suggestion would be to make a script out of the 3 commands you have there and make sure it works. Put it in /usr/local/bin for example and then put in your cron job: /usr/local/bin/<name of script> and see if that works. And provide actual paths to all commands because both cron and shell scripts usually require full paths. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 11/28/03 09:10 + +----------------------------------------------------------------------------+ "If the shoe fits, get another one just like it."