Home > Archive > Unix Programming > February 2008 > [Expert] Time zone change confuses cron
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[Expert] Time zone change confuses cron
|
|
| Pseudonyme 2008-02-18, 7:21 pm |
|
Paris,
18 Feb 2008,
Dear all,
We receive a highly anormal volume of connexions from agregated nodes,
or unknown IP's. That organization is particulary unclear to me :
http://www.ripe.net/ripe/index.html.
Having a problem to generate trace files.
-
Ever had a Crontab that does not obey the Unix Time Zone ?
Unix/Fedora core 2/Apache/2.0.50 (Fedora) for pc-linux-gnu on i686
mysqladmin Ver 8.23 Distrib 3.23.58,
Date (ssh command : date) is : Mon Feb 18 18:43:17 CET 2008
BUT in crontab events :
34 23 * * * run-parts [Volume 1]
3 3 * * 5 run-parts [Volume 2]
33 02 * * * run-parts [Volume 3]
55 * * * * sh /etc/cron-scri/backmaker [Volume 4]
*/5 * * * * sh /etc/cron-scri/restoresql2 [Volume 5]
Events are not respecting the Unix time !
As an example :
* */3 * * * run-parts [Volume 10]
That script should be run every 3 HOURS, whatever the Time Zone is.
On another server set on the default Miami time, everything was runing
fine. But set up in the Western-Europe time that script is runing
every minute.
Do you know how to get the CRONTAB respecting the UNIX time ?
Many thanks for any advices from your knowledge and experience.
cougloff
| |
| Bill Marcum 2008-02-19, 4:34 am |
| f["Followup-To:" header set to comp.os.linux.setup.]
On 2008-02-18, Pseudonyme <norman_cougloff@2cuk.co.uk> wrote:
>
>
>
> Paris,
> 18 Feb 2008,
>
> Dear all,
>
> We receive a highly anormal volume of connexions from agregated nodes,
> or unknown IP's. That organization is particulary unclear to me :
> http://www.ripe.net/ripe/index.html.
>
> Having a problem to generate trace files.
> -
>
> Ever had a Crontab that does not obey the Unix Time Zone ?
>
> Unix/Fedora core 2/Apache/2.0.50 (Fedora) for pc-linux-gnu on i686
> mysqladmin Ver 8.23 Distrib 3.23.58,
>
> Date (ssh command : date) is : Mon Feb 18 18:43:17 CET 2008
>
> BUT in crontab events :
>
> 34 23 * * * run-parts [Volume 1]
> 3 3 * * 5 run-parts [Volume 2]
> 33 02 * * * run-parts [Volume 3]
> 55 * * * * sh /etc/cron-scri/backmaker [Volume 4]
> */5 * * * * sh /etc/cron-scri/restoresql2 [Volume 5]
>
> Events are not respecting the Unix time !
>
> As an example :
> * */3 * * * run-parts [Volume 10]
> That script should be run every 3 HOURS, whatever the Time Zone is.
>
No! It will run every minute of every third hour. Specify a minute if
you want it to run once every three hours.
Is there any problem with the other crontab lines?
|
|
|
|
|