Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

crontab line: 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1

Posted on 2007-10-03
3
Medium Priority
?
1,101 Views
Last Modified: 2013-12-27
I have an old system that, if patched, we loose support on an ancient  application. So we don't patch.
I would like to move the clock for DST with a cronjob but I thought it would conflict with the line:
crontab line: 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1

Even thought this is in cron I can't find "rtc" on the system. I can't find it on any of my systems. Is this missing only on my systems or do you all notice it gone too?

Would there be any reason I shouldn't rem this out since I specifically want to move the clock myself?
0
Comment
Question by:jjc_mn
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 20009565
rtc isn't generally installed on most Solaris systems, so commenting out the cronjob will make no difference as it doesn't run anyway.
0
 

Author Comment

by:jjc_mn
ID: 20009853
So what do the new systems use to know when to change for  DST?
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 2000 total points
ID: 20009969
Unix/Linux systems use timezone files.

See  /usr/share/lib/zoneinfo/src/README

Solaris (and all other Unix flavours) produce patches whenever there are changes in DST.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question