Cron Jobs..

Corey

New member
Joined
Jan 23, 2007
Messages
4
Ive been trying to get a cron job to run a PHP file for AGES now, and it will NOT work. Could someone please tell me exactly what to enter in to get it to run a php file located in public_html every hour.

Thanks.
 
Have you tried using
Code:
/usr/local/bin/php /home/*username*/domains/*domain*/public_html/file.php
for the command your cronjob runs?
 
Have you tried using
Code:
/usr/local/bin/php /home/*username*/domains/*domain*/public_html/file.php
for the command your cronjob runs?

No, I haved used
Code:
php q- /home/*username*/etc...

I will try what you have suggested, thanks!
 
It depends on the script that is being run. It needs to be able to accept extra information from standard input.
 
The script I've installed suggest to use this command:
Code:
25 * * * * curl --user login:pass http://www.zyx.com/blog/wp-content/update-feeds.php -d update=quiet
or
Code:
25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php
How can I translate this command to be used in direct admin?
 
Back
Top