[Klug-general] Cron job

Mike Evans mike at tandem.f9.co.uk
Tue Apr 14 12:41:46 UTC 2009



Nathan Friend wrote:
> Here's my updated script.  It's working now.
...
> if["$EXITSTATUS"!="0"] then
> /bin/mail -s "Moodle db backup failed" root;
> fi
> 
> But I get line 9: syntax error near unexpected token 'fi'

Might it be the semicolon on the end of 'root;' - which I suspect is 
spurious or at least superfluous?  Probably a nervous tick from an too 
much C or Java programming.

Mike



More information about the Kent mailing list