crontab errors

/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of file

If you receive this error, you may have a % character in your crontab that has not been escaped.

From the crontab(5) manpage:
Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.

Back to brandonhutchinson.com.
Last modified: 06/16/2003