Lunarpages Web Hosting Forum

Web Hosting Guidance and Advice => LPCP Control Panel Help and Tips => Topic started by: hairboy on August 25, 2011, 10:33:39 PM

Title: Cron running on GMT?
Post by: hairboy on August 25, 2011, 10: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:
Title: Re: Cron running on GMT?
Post by: hairboy on August 28, 2011, 07: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)
Title: Re: Cron running on GMT?
Post by: lonniefilkins 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.

____________
<spam link removed>
Title: Re: Cron running on GMT?
Post by: MrPhil on March 29, 2012, 09: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.
Title: Re: Cron running on GMT?
Post by: gingir on May 31, 2013, 10:36:43 PM
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.

I am trying to achieve the same as hairboy ... however I don't know how/where do I set the cron?
Title: Re: Cron running on GMT?
Post by: MrPhil on June 01, 2013, 05:10:10 AM
You can either: