Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: John Crisp on December 11, 2002, 03:38:54 PM
-
Hi,
I am trying to run a simple script that periodically copies/updates files from my novell server to my Esmith 5.1.2 box though cron.
Basic script is as follows :
#!/bin/sh
cp -uR /files_from_novell /relevant_folder_on-Esmith
I know this is extremely simple. Anyone any idea how to add a bit of crash protection or error reporting - i.e. if it completes then send an OK to admin - if it fails, kill and send an error message.
Any help would be gratefull appreciated.
B. Rgds
John
-
I am new to all this cron stuff, but have found the below post helpful when trying to mail my script attempt. I know its for virus stuff, but the mail bit may be useful.
http://forums.contribs.org/index.php?topic=15841.msg61133#msg61133
Hope this helps
Nick
-
Thanks Nick.
The scripts I use are actually in cron.hourly rather than from crontab. It was a bit easier as far as I was concerned !
am not so worried about reporting to admin - but I can now see how to do that.
The most important part was some basic error handling e.g. if the Novell box falls over, then the copy will fail and I'd like to be able to deal with it gracefully.
B. Rgds
John