CronJob

zx123

Senior Member
Joined
Feb 26, 2009
Messages
1,184
Reaction score
887
I have a php script that I want run every 65minutes
how I can write the cronjob value?

I opened /etc/crontab and add the following line but I think that this is wrong ;)
Code:
65 * * * * php /home/blabla/script.php

please help me
 
I have a php script that I want run every 65minutes
how I can write the cronjob value?

I opened /etc/crontab and add the following line but I think that this is wrong ;)
Code:
65 * * * * php /home/blabla/script.php
please help me

Code:
65 * * * * /home/blabla/script.php
Why do you have
the PHP in front of the dir?
 
Code:
65 * * * * /home/blabla/script.php
is wrong :)

now I try
Code:
*/65 * * * * php /home/blabla/script.php
"php" is for run php code :)

for example to run a shell script for restart webserver when down I use
Code:
*/5 * * * * root /root/restartWEBscript.sh >/dev/null 2>&1
 
I don't think 65 is a valid value?

5 * * * * /path/script.php

will tell cron to run every 5 minutes past the hour.
 
I'm almost positive I don't have php infront of my cronjob on my server. When I get back on the work PC. I'll check it out. I'm prob wrong.
 
Back
Top