Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 02-18-2008, 10:00 AM
Pseudonyme
Newsgroup Contributor
 
Posts: n/a
[Expert] Time zone change confuses cron


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




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 02-18-2008, 10:00 AM
  #2 (permalink)  
Old 02-18-2008, 11:01 PM
Bill Marcum
Newsgroup Contributor
 
Posts: n/a
Re: [Expert] Time zone change confuses cron

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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the Time Zone on VISTA from Command Line DAFFODIL_FOR_FORUM Windows Vista 7 12-23-2007 05:20 AM
Expert Zone Chat in one hour (10 AM Pacific) Mark L. Ferguson Windows XP 0 06-05-2007 09:20 AM
Script to change time zone? mlcooper@yahoo.com Windows XP 6 04-07-2007 10:15 AM
cannot change Time Zone Eli Windows XP 2 01-17-2007 10:45 PM
Tablet PC Expert Zone Chat going on now Lora Tablet PC - In The News 0 03-02-2005 10:43 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:24 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0