On Fri, Nov 07, 2003 at 09:50:44AM -0500, Greg Rundlett wrote:
Does anyone see why this command
/usr/bin/webalizer -c /var/www/html/intranet.buzgate.org/stats/webalizer/webalizer.www.conf /var/log/httpd/www_logs/www.`date --date=yesterday +%Y%m%d`.gz


works from the shell, but errors in cron with this error message:

/var/www/html/intranet.buzgate.org/stats/webalizer/webalizer.www.conf /var/log/httpd/www_logs/www.`date
--date=yesterday +


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

I don't know why it says there is an EOF marker. The command is 'one line' cut and pasted directly from the shell.

$ man 5 crontab
...
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.



-- Bob Bell _______________________________________________ gnhlug-discuss mailing list [EMAIL PROTECTED] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss

Reply via email to