Jump to content

Cron Errors


bhmusa

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated