Cron Problems

Christian Campbell ccampbell at brueggers.com
Fri Jun 27 15:35:57 UTC 2008


> I'm running a php script from a cronjob and receive the following
> output when it runs:
> 
> /bin/sh: -c: line 0: syntax error near unexpected token `newline'
> /bin/sh: -c: line 0: `php /var/www/html/cacti/poller.php > /dev/null
> 2>&'
> 
> My cron entry is:  */5 * * * * root php /var/www/html/cacti/poller.php >
/dev/null 2>&
> 

Apologies for replying to my own post, but sometimes asking the question
get's you closer to the answer.

In this case, I missed the '1' after '2>&'.

All is well.  Sorry for the noise...

Christian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3090 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20080627/cf1c98a3/attachment.bin>


More information about the redhat-sysadmin-list mailing list