LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2012, 05:31 AM   #1
raj47
Member
 
Registered: Jan 2011
Posts: 47

Rep: Reputation: 2
Cronjob issue


Hi There,

I am very pleased by this forum so someone would answer my question

I have couple of cron jobs running in my servers

My server currently in PDT but when i check the /var/log/cron

its running at different time

thanks
Raj
 
Old 05-10-2012, 06:30 AM   #2
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
give output of crontab -e
 
Old 05-10-2012, 07:00 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by centos123 View Post
give output of crontab -e
That probably should not be an issue,
but the current Timezone set on server.
And when changed it would help if Crond is restarted too, to pick-up the time/date.
 
Old 05-10-2012, 11:17 PM   #4
raj47
Member
 
Registered: Jan 2011
Posts: 47

Original Poster
Rep: Reputation: 2
Quote:
That probably should not be an issue,
but the current Timezone set on server.
And when changed it would help if Crond is restarted too, to pick-up the time/date
lithos,

I have restarted the cron multiple times but the time remaining the same. Its weird my cron never pickups the PDT

thanks
Puspharaj
 
Old 05-14-2012, 06:09 AM   #5
raj47
Member
 
Registered: Jan 2011
Posts: 47

Original Poster
Rep: Reputation: 2
Some one please answer to this thread

I think cron running on its own UTC timezone
 
Old 05-14-2012, 06:22 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,224

Rep: Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834Reputation: 6834
how did you restart the cron daemon?
 
Old 05-14-2012, 11:09 PM   #7
raj47
Member
 
Registered: Jan 2011
Posts: 47

Original Poster
Rep: Reputation: 2
/etc/init.d/crond restart
 
Old 05-15-2012, 12:04 AM   #8
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
Is there ntp configured on your server, if yes/no, stop ntp service. it could be reasone one...
 
Old 05-15-2012, 11:10 PM   #9
raj47
Member
 
Registered: Jan 2011
Posts: 47

Original Poster
Rep: Reputation: 2
Deepak,

Ohh!!! i cant stop the ntp on my server apps need that

thanks
Raj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CronJob jboy4 Linux - Newbie 3 02-27-2012 05:03 PM
cronjob xser Linux - Software 6 07-27-2008 09:38 PM
cronjob ugob Linux - Software 0 03-03-2004 09:20 AM
Su in a cronjob michedlp Programming 3 11-06-2003 08:30 AM
cronjob FastEddy Linux - General 1 04-12-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration