another cron...

Status
Not open for further replies.

kr3v3tkus

New Member
Messages
5
Reaction score
0
Points
0
sry 4 my bad english... i found in site search many questions about cron jobs and i tryed different advices but cron wont getting start :(
i have a php script in /public_html/php_scripts/
i tryed with 0 0 * * *
php-cron /home/anonbank/public_html/php_scripts/insert_currency.php

php /home/anonbank/public_html/php_scripts/insert_currency.php

/home/anonbank/public_html/php_scripts/insert_currency.php
what can i do else?
Edit:
noone knows? :(((
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
To get a script to run at midnight every day use this:
0 0 * * * php-cron /home/anonbank/public_html/php_scripts/insert_currency.php
Remember the servers may not be in the same timezone as you so you will need to give it at least 24 hours to make sure it has had time to run.
 

kr3v3tkus

New Member
Messages
5
Reaction score
0
Points
0
thanks, but i tryed to do that way... if there any possibility to check server's time zone? Maybe i make a script to run every one hour to check working of cron?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
The server's time at the moment is 2:25 PM. The server's time zone is 'New York'.
Yes, you can run the script every hour, or even every 5 minutes to check that it is working.
 

kr3v3tkus

New Member
Messages
5
Reaction score
0
Points
0
yeah! its working :DD finally nyhahahahah :D big thanks :) our gmt is really too different, servers -5, and i have +3 (
 
Status
Not open for further replies.
Top