Chris G cl@isbd.net wrote:
However the cron job is failing and sending me the following mail:-
/bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file
So what's going wrong? It's almost as if the line is too long for cron but it's not *that* long. I have checked thoroughly that it really *is* one line. How can I diagnose what's going wrong?
Some crons seem to have a really short limit. I guess you could diagnose it if you run cron in a strace, but I'd just ignore it: put the complex command in a script and call that from crontab instead.
Hope that helps,