<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change system time via crontab? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342574#M190916</link>
    <description>hai,&lt;BR /&gt; &lt;BR /&gt; cron will be working based on time and date informations. If we change the time and date with a script, in a cronjob, it will make effects on other jobs and crontab too.&lt;BR /&gt; &lt;BR /&gt; I have checked the accuracy of date change on command line as,&lt;BR /&gt; &lt;BR /&gt;  # time date 073117342004&lt;BR /&gt;  unable to write utmps record to wtmps database&lt;BR /&gt;  unable to write utmps record to wtmps database&lt;BR /&gt;  Sat Jul 31 17:34:00 PDT 2004&lt;BR /&gt;  &lt;BR /&gt;  real        0.0&lt;BR /&gt;  user        0.0&lt;BR /&gt;  sys         0.0&lt;BR /&gt;&lt;BR /&gt;  It cannot write time into logs. But the amount of time needed to change the date and time is in 1 second (average) period only. So you can very well proceed on shell with super privillaged user.&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Jul 2004 22:55:02 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-07-27T22:55:02Z</dc:date>
    <item>
      <title>change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342570#M190912</link>
      <description>change date of a HPUX 11i server via crontab:&lt;BR /&gt;&lt;BR /&gt;I have a shell script which I want to run by crontab :&lt;BR /&gt;like &lt;BR /&gt;start:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;date 07311600&lt;BR /&gt;end&lt;BR /&gt;to change date of server to July 31 2004 and I set job to run at &lt;BR /&gt;00 16 * * 2 /usr/local/bin/timescript&lt;BR /&gt;However the system time does not change.&lt;BR /&gt;Why would that be?</description>
      <pubDate>Tue, 27 Jul 2004 15:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342570#M190912</guid>
      <dc:creator>Mike_Ca Li</dc:creator>
      <dc:date>2004-07-27T15:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342571#M190913</link>
      <description>You can do anything witha s script. I don't think its a good practice to change system time with a cron script triggered by system time.&lt;BR /&gt;&lt;BR /&gt;You can inadvertantly cause a loop.&lt;BR /&gt;&lt;BR /&gt;Best that be done manually or via ntp(network time protocol).&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 27 Jul 2004 15:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342571#M190913</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-27T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342572#M190914</link>
      <description>I need to change the date and not the time. &lt;BR /&gt;wouldn't running &lt;BR /&gt;&lt;BR /&gt;00 17 * * 2 /usr/local/bin/changetimescript&lt;BR /&gt;&lt;BR /&gt;changetimescript:&lt;BR /&gt;date 07311700&lt;BR /&gt;&lt;BR /&gt;provide a more accurate time change than doing typing command&lt;BR /&gt;date 07311700 at 16:59:50 from keyboard?&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jul 2004 15:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342572#M190914</guid>
      <dc:creator>Mike_Ca Li</dc:creator>
      <dc:date>2004-07-27T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342573#M190915</link>
      <description>Why not set up NTP to bounce of your router. It will take less than 5 minutes to set up. &lt;BR /&gt;&lt;BR /&gt;If you have databases on your system, they don't take too kindly to have the time changed, forwards or backwards.</description>
      <pubDate>Tue, 27 Jul 2004 16:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342573#M190915</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-07-27T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342574#M190916</link>
      <description>hai,&lt;BR /&gt; &lt;BR /&gt; cron will be working based on time and date informations. If we change the time and date with a script, in a cronjob, it will make effects on other jobs and crontab too.&lt;BR /&gt; &lt;BR /&gt; I have checked the accuracy of date change on command line as,&lt;BR /&gt; &lt;BR /&gt;  # time date 073117342004&lt;BR /&gt;  unable to write utmps record to wtmps database&lt;BR /&gt;  unable to write utmps record to wtmps database&lt;BR /&gt;  Sat Jul 31 17:34:00 PDT 2004&lt;BR /&gt;  &lt;BR /&gt;  real        0.0&lt;BR /&gt;  user        0.0&lt;BR /&gt;  sys         0.0&lt;BR /&gt;&lt;BR /&gt;  It cannot write time into logs. But the amount of time needed to change the date and time is in 1 second (average) period only. So you can very well proceed on shell with super privillaged user.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jul 2004 22:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342574#M190916</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-27T22:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: change system time via crontab?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342575#M190917</link>
      <description>seriously consider NTP. it's automatic, simple to configure and avoids that nasty tendancy of database to melt down when somewhat changes the system time. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ntp.org" target="_blank"&gt;http://www.ntp.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;all you should have to do is create a /etc/ntp.conf with a single line similar to the following&lt;BR /&gt;&lt;BR /&gt;Server SourceNTP.Server.net&lt;BR /&gt;&lt;BR /&gt;where sourcentp.server.net is the ip or DNS name of a NTP provider, probably within your company.&lt;BR /&gt;&lt;BR /&gt;then start the deamon (/usr/local/bin/ntpd if i am not mistaken) and let it adjust the time.&lt;BR /&gt;&lt;BR /&gt;as for accuracy, i have close to 400 NTP clients in this building, and none of them are more then 10 ms off from the atomic time.</description>
      <pubDate>Wed, 28 Jul 2004 07:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-system-time-via-crontab/m-p/3342575#M190917</guid>
      <dc:creator>Thomas Bianco</dc:creator>
      <dc:date>2004-07-28T07:53:43Z</dc:date>
    </item>
  </channel>
</rss>

