Cron error

Greg Rundlett greg at freephile.com
Fri Nov 7 09:50:44 EST 2003


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.

Do I simply need to put double quotes around the whole thing to get past 
the space character in the backticked section?

Thanks,
Greg




More information about the gnhlug-discuss mailing list