On 23/09/04 17:56, Bill Shupp wrote:
> Darrel O'Pry wrote:
> >actually the fi is before the cat line, because hopefully there will be
> >an old data.srv-$A since the wget failed and didn't mv the tmp to
> >data.srv-$A.
> >And I'd rather have out of data information from that server included in
> >my data file than no information from that server.
> >
> >.darrel.
>
> Ok, well that approach is still taken with the updated script. I've
> attached one final version, that addresses some things that were missed
> before (sum was not effective since the filenames differed and were
> included). Also, it runs under sh instead of bash, so people don't need
> bash to run it. If this looks good to everyone, I'll release 0.9 today.
It looks good to me and works fine too
Now I'm trying to make it fall over.
Switched off mysql
It fell on make, data.cdb NOT altered, good!
I have added some code to make it collect the error, at line 40
if grep 'error connecting to database' $TINYDNSDIR/root/data.srv-$A ; then
exit
fi
The above is not really needed but it's a bit more graceful
wget errorcode gets caught ok
The compare is working too
This script is fine AFAICT
>
> Regards,
>
> Bill
--
-----------------
Bob Hutchinson
Midwales dot com
-----------------