bhmusa Posted March 10, 2007 Share Posted March 10, 2007 I just received two emails with what looks like errors and I have no clue what to do. I checked the board with no answers so any help would be appreciated. First Email Subject: Cron | php -q /home/bhmusa/public_html/client/pipe/pipe.php /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `| php -q /home/bhmusa/public_html/client/pipe/pipe.php' Second Email Subject: Cron 0 9 * * * php -q /home/bhmusa/public_html/client/admin/cron.php /bin/sh: 0: command not found Thank you in advance for any help. 0 Quote Link to comment Share on other sites More sharing options...
Rae Posted March 10, 2007 Share Posted March 10, 2007 You will probably have to change the command so that it includes the path to php. Something like this: 0 9 * * * /usr/local/bin/php -q /home/bhmusa/public_html/client/admin/cron.php (make sure that it is on one line and doesn't wrap) --Rae 0 Quote Link to comment Share on other sites More sharing options...
bhmusa Posted March 15, 2007 Author Share Posted March 15, 2007 It seems I was able to fix the email part but I still have one problem with the other cron. I added the path to the php all on one line: 0 9 * * * /usr/bin/perl/php -q /home/bhmusa/public_html/client/admin/cron.php And I received this error via email /bin/sh: 0: command not found Any help would be appreciated. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 15, 2007 Share Posted March 15, 2007 Hey, Why not use php -q instead of /usr/what/ever? From, Adam 0 Quote Link to comment Share on other sites More sharing options...
bhmusa Posted March 15, 2007 Author Share Posted March 15, 2007 I was getting errors before so someone recommended the path be placed in. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 15, 2007 Share Posted March 15, 2007 Hey, 0 9 * * * php -q /home/bhmusa/public_html/client/admin/cron.php From, Adam 0 Quote Link to comment Share on other sites More sharing options...
bhmusa Posted March 15, 2007 Author Share Posted March 15, 2007 This is what I had before and got errors also. Please see first post of this thread. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted March 15, 2007 Share Posted March 15, 2007 0 9 * * * /usr/bin/perl/php -q s Is that really the path you used for the main cron? Perl shouldn't be in there. This is the cron command for piping mail: */5 * * * * php -q /home/username/public_html/whmcs/pipe/pop.php You've mixed that up with the email forwarder method of using the "|" pipe. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.