The first crontab "event" in my backup routine is a script/command to format an external firewire disk to prepare for filecopying. I've had the script running for 5-6 months without a hitch, but this last week it's been really troublesome and effectively non functional halting the entire backup process.
Here's my script
The crontab entry
The result delivered to my mailbox is:
When run manually (sh./format-onsdag.sh) the "script" executes perfectly, and no changes has been changed in regard to crontab or format-onsdag.sh during the last couple of months.
Any ideas what could be happening here, and maybe even how to correct ir?
Thanks
Here's my script
Code:
#!/bin/csh -f
/usr/sbin/diskutil eraseDisk HFS+ Onsdag /volumes/Onsdag
The crontab entry
Code:
0 20 * * 3 /bin/sh -c "/library/firstclass\ server/sh/format-onsdag.sh"
The result delivered to my mailbox is:
Code:
Message 6:
<snip>
Subject: Cron <xxx@xxxmain> /bin/sh -c "/library/firstclass\ server/sh/format-onsdag.sh"
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/Users/xxx>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=xxx>
X-Cron-Env: <USER=fxxx>
Date: Wed, 24 Nov 2004 20:00:19 +0100 (CET)
Partitioning encountered error Could not unmount disk (-10000) on disk disk3
Started erase on disk disk3
Creating Partition Map
Could not unmount disk for zeroing
When run manually (sh./format-onsdag.sh) the "script" executes perfectly, and no changes has been changed in regard to crontab or format-onsdag.sh during the last couple of months.
Any ideas what could be happening here, and maybe even how to correct ir?
Thanks