antonioa Posted July 21, 2015 Posted July 21, 2015 Question: how do I get the cron jobs to run at a set time eastern? My scripts tell me the server is on pacific time so, I'm adjusting for that.But, I've seen the scripts say the server is in the europe/paris TZ. Note: current cmd is something like: php /home/username/public_html/myphpscript.phpQuoteMultiQuoteEdit
ChuckRoss Posted July 24, 2015 Posted July 24, 2015 One might use a curl to gather a time server function and send the resultant to yourself or save the resultant to your space to view later matching the time placed vs the time suggested finding a difference and note the longitudinal difference between one's perceived location.
antonioa Posted July 24, 2015 Author Posted July 24, 2015 Thanks for the suggestion.I've seen similar comments on the web - basically, run job hourly & only process at the relevant time.Unfortunately, with the free account (i'm a cheapo hobbyist), I'm limited to 2 cron jobs a day.
wolstech Posted July 24, 2015 Posted July 24, 2015 As you're aware, the server is Pacific time. I live in Eastern Time as well. Just subtract 3 hours when setting it. To set for once a day, enter an hour and minute, and put * in the day/weekday/month fields. Note that crons are on a 24 hour clock too. I have a 4:18EDT cron, which is scheduled as 13 hours 18 minutes (1:18PM PT), with * in the other fields. Also, I recommend not running crons on the hour or half/quarter hour since the servers tend to run a lot of them at those times. Schedule it for a random minute like 3:07 if you can.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now