<?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: script to change date in my crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694546#M247916</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;Time Server is the way to go!&lt;BR /&gt;&lt;BR /&gt;YOu must configure you servers to synchronize their date/times with that of the Time Server.&lt;BR /&gt;&lt;BR /&gt;You will be more accurate/scientific&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Mon, 19 Dec 2005 23:22:38 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2005-12-19T23:22:38Z</dc:date>
    <item>
      <title>script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694541#M247911</link>
      <description>i have a script in the crontab to change the system date, but not work because is waiting for the answer to response... my script is as follows:&lt;BR /&gt;&lt;BR /&gt;##############&lt;BR /&gt;month=12&lt;BR /&gt;day=19&lt;BR /&gt;hour=`date |cut -c 12-13`&lt;BR /&gt;min=`date |cut -c 15-16`&lt;BR /&gt;min=`expr $min - 5`&lt;BR /&gt;year=2005&lt;BR /&gt;chardate=$month$day$hour$min$year&lt;BR /&gt;date $chardate&lt;BR /&gt;##############&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;how to make to date command not ask for time backwards?&lt;BR /&gt;&lt;BR /&gt;date: do you really want to run time backwards?[yes/no]Only "yes" will make it take!&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 19 Dec 2005 19:16:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694541#M247911</guid>
      <dc:creator>aretana</dc:creator>
      <dc:date>2005-12-19T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694542#M247912</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;why do you want to change the date / time using the cron.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 19 Dec 2005 19:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694542#M247912</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-12-19T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694543#M247913</link>
      <description>because i have to synchronize my system with other box after the cold backup (at 4:15 a.m)</description>
      <pubDate>Mon, 19 Dec 2005 19:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694543#M247913</guid>
      <dc:creator>aretana</dc:creator>
      <dc:date>2005-12-19T19:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694544#M247914</link>
      <description>The question is asked for a good reason...setting the date/time backwards can break a lot of date-dependent functions including cron and especially database applications. Changing time/date is so disruptive for many applications that many system adminstrators disable date changes with a command wrapper. Perhaps you can explain the reason to change the time/date at all.</description>
      <pubDate>Mon, 19 Dec 2005 19:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694544#M247914</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-12-19T19:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694545#M247915</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To keep your servers with consistent, correct time, use 'xntpd' (NTP = Network Time Protocol).&lt;BR /&gt;&lt;BR /&gt;You can configure this via SAM or by editing a few simple configuration files.&lt;BR /&gt;&lt;BR /&gt;There is an excellent guide in the "Installing and Administering Internet &lt;BR /&gt;Services" manual in chapter-7.&lt;BR /&gt;&lt;BR /&gt;You can find an external source to which to synchronize your server, here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ntp.isc.org/bin/view/Servers/WebHome" target="_blank"&gt;http://ntp.isc.org/bin/view/Servers/WebHome&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2005 19:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694545#M247915</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-19T19:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694546#M247916</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Time Server is the way to go!&lt;BR /&gt;&lt;BR /&gt;YOu must configure you servers to synchronize their date/times with that of the Time Server.&lt;BR /&gt;&lt;BR /&gt;You will be more accurate/scientific&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 19 Dec 2005 23:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694546#M247916</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-12-19T23:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694547#M247917</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;see also:&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;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 19 Dec 2005 23:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694547#M247917</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-12-19T23:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694548#M247918</link>
      <description>You got the problem when changing the time in the machine using cron tab? If you want to do after that then,&lt;BR /&gt;&lt;BR /&gt;##############&lt;BR /&gt;month=12&lt;BR /&gt;day=19&lt;BR /&gt;hour=`date |cut -c 12-13`&lt;BR /&gt;min=`date |cut -c 15-16`&lt;BR /&gt;min=`expr $min - 5`&lt;BR /&gt;year=2005&lt;BR /&gt;chardate=$month$day$hour$min$year&lt;BR /&gt;date $chardate&amp;lt;&amp;lt;-EOF&lt;BR /&gt;yes&lt;BR /&gt;EOF&lt;BR /&gt;##############&lt;BR /&gt;&lt;BR /&gt;will do it.&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
      <pubDate>Tue, 20 Dec 2005 00:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694548#M247918</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-20T00:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694549#M247919</link>
      <description>Muthu, this is exactly what i want... &lt;BR /&gt;thank yuo all for the comments and solutions</description>
      <pubDate>Tue, 20 Dec 2005 08:53:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694549#M247919</guid>
      <dc:creator>aretana</dc:creator>
      <dc:date>2005-12-20T08:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: script to change date in my crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694550#M247920</link>
      <description>the reason for make the script is because the server are advanced 5 minuts of the other server, and have a database store procedure that insert data in the other server, but the store procedure validates that the date is not going to be greater than the system date.&lt;BR /&gt;This script only will be executed one time, after will be removed from crontab...</description>
      <pubDate>Tue, 20 Dec 2005 09:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-change-date-in-my-crontab/m-p/3694550#M247920</guid>
      <dc:creator>aretana</dc:creator>
      <dc:date>2005-12-20T09:08:20Z</dc:date>
    </item>
  </channel>
</rss>

