Results 1 to 5 of 5
Thread: PHP Cron Job
-
03-28-2009, 11:21 PM #1Disabled
- Join Date
- Mar 2009
- Posts
- 155
PHP Cron Job
I have this setup on CPanel
php -q /home/host/public_html/clients/admin/cron.php
but I get this:
sh: -t: command not found
sh: -t: command not found
sh: -t: command not found
sh: -t: command not found
Ideas?
-
03-29-2009, 05:35 AM #2Web Hosting Master
- Join Date
- Mar 2009
- Location
- Gods Own Country
- Posts
- 681
what happens when you run the command from command line?
-
03-29-2009, 07:36 AM #3Temporarily Suspended
- Join Date
- Feb 2004
- Location
- UK
- Posts
- 1,431
Hi
When running from the cron, you often need to supply the full path for PHP
/usr/bin/php ....
Hope that helps.
Thanks
-
03-29-2009, 07:42 AM #4Web Hosting Guru
- Join Date
- Apr 2006
- Location
- Williston Florida
- Posts
- 262
Here is a tutorial on the subject. Depends on how php is set up as to how you call the script:
http://htmlcenter.com/blog/running-p...pts-with-cron/WarPigW2-Old site for game I used to play, and other things along the way
TutorialMasters - Tutorials Designed for You
-
03-29-2009, 11:54 PM #5Disabled
- Join Date
- Mar 2009
- Posts
- 155
Using the full length method seemed to work. how do I link php to the new php binary?