FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Cron Jobs Problem.

 


gerpg
Ok, i have tried all sorts of combinations of cron commands and still can't get it to run..

The only thing i keep getting from the cron is:
Quote:
/bin/sh: line 1: /usr/bin/php: No such file or directory


Iv'e tried using lines like:
Code:
usr/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php

Code:
usr/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php > /dev/null

Code:
usr/bin/php -f /home/USER/domains/gerpg.com/SCRIPT.php

Code:
usr/bin/php -f /home/USER/domains/gerpg.com/SCRIPT.php > /dev/null


Is there anything i'm not doing right?

Louis.
gerpg
I found the problem, the line i needed to use was:

Code:
/usr/local/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php


It needed the 'local' part.

Louis.
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.