Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 11:06:42 PM

Pages: [1]   Go Down
  Print  
Author Topic: Cron running on GMT?  (Read 4296 times)
hairboy
Intergalactic Cowboy
*****
Offline Offline

Posts: 56


If all else fails, become a dolphin


WWW
« on: August 25, 2011, 11:33:39 PM »

Hey,

I know that there are options when setting up CRON on the server to run CRONs based on GMT.

Is it possible to do this with LPCP on a shared hosting environment?
I'm guessing I can't login via shell to set it up.... are there any ways to trigger it within the web interface?

If not.....any other suggestions? (Aside from remembering to adjust the CRON twice a year for daylight savings!   Hypno
Logged

hairboy
Intergalactic Cowboy
*****
Offline Offline

Posts: 56


If all else fails, become a dolphin


WWW
« Reply #1 on: August 28, 2011, 08:11:00 PM »

OK......what I'm going with for now is that I will have the CRON run every hour of the day, and if the time is the correct day/time GMT then it will execute, otherwise it will silently exit.

I would really appreciate if anyone can offer a better alternative - particularly how to setup CRONs to run on GMT triggers instead of local server time (assuming the shared hosting & LPCP constraints)
Logged

lonniefilkins
Pong! (the videogame) Master
*****
Offline Offline

Posts: 27


« Reply #2 on: February 28, 2012, 10:23:19 PM »

I think  you need to convert your server time to GMT and specify it in cron jobs. There is no direct method to select GMT.

____________
Ares Download
Logged

MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #3 on: March 29, 2012, 10:28:02 AM »

If you're on a shared server, you will not be able to change the system clock or time zone. The best you can do is set your desired (GMT) cron event time to the server's time zone (PST/PDT for Lunarpages), provided you don't mind a one hour offset part of the year. If this is unacceptable (it absolutely has to be at the same GMT each day), you could trigger on both the hours (2 per day) and pick whichever one is the correct GMT (depending on whether DST is in effect). That would be a little less load on the server than running cron hourly.

VPS might be able to run on GMT. Dedicated servers probably can.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: