<?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: how to set time backwards using scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775232#M75779</link>
    <description>Setting your system clock backwards can have side effects like you might have guessed (eg: crontab jobs). I would try to avoid doing so unless you have other processes in place to handle the cron entries after the clock changed. Active/open files may be written with the old timestamp, acive spooler jobs may get hung, among other things I can think of.</description>
    <pubDate>Tue, 30 Jul 2002 03:29:22 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-07-30T03:29:22Z</dc:date>
    <item>
      <title>how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775228#M75775</link>
      <description>Hi, &lt;BR /&gt;I'm a DBA .... my application requirements are that every friday night i've to load the Development and Test databases with the PRODuction data ... all three databases reside in three different servers ... after loading the databases before restarting the database i need to set the system date to April 01, 2002 ... this is our business requirement to evaluate the application ....&lt;BR /&gt;&lt;BR /&gt;I had automated the shutdown of databases, taking cold backup of PROD, ftp the files across the servers and recreate the development &amp;amp; test databases using create control file option using scripts ....&lt;BR /&gt;&lt;BR /&gt;i created a cron entry to do this and activate it on every friday when my application team wants to have new set of data ...&lt;BR /&gt;&lt;BR /&gt;My question is how to set the system date to april 01, 2002 thru scripts ....&lt;BR /&gt;&lt;BR /&gt;i tried 'date 040104002002' as example ... but since i'm setting it backwards it asks for confirmation 'YES' from me .... how do i pass the 'yes' into my script which sets the date backwards ?????&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;-bala-</description>
      <pubDate>Tue, 30 Jul 2002 01:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775228#M75775</guid>
      <dc:creator>Bala_8</dc:creator>
      <dc:date>2002-07-30T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775229#M75776</link>
      <description>You could try something like this:&lt;BR /&gt;&lt;BR /&gt;date 040104002002 &amp;lt;&amp;lt; EOF&lt;BR /&gt;YES&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;I don't know for sure that this will work, but it's worth a shot.</description>
      <pubDate>Tue, 30 Jul 2002 02:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775229#M75776</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-07-30T02:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775230#M75777</link>
      <description>Yes,what patrick suggested will work.&lt;BR /&gt;&lt;BR /&gt;#script&lt;BR /&gt;&lt;BR /&gt;date 040104002002 &amp;lt;&lt;END&gt;&lt;/END&gt;yes&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 02:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775230#M75777</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-07-30T02:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775231#M75778</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for your fast response ....&lt;BR /&gt;&lt;BR /&gt;i created a script with :&lt;BR /&gt;&lt;BR /&gt;date 0401`date +%H%M` &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;yes&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and it works... i use the inner date command to preserve the time ....&lt;BR /&gt;&lt;BR /&gt;I've lot of jobs running using crontab, such as daily cold backup of database, clearing log files, pinning objects into oracle SGA, etc.&lt;BR /&gt;&lt;BR /&gt;Will this change in date affect my crontab entries from running ???&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;-bala-&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 03:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775231#M75778</guid>
      <dc:creator>Bala_8</dc:creator>
      <dc:date>2002-07-30T03:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775232#M75779</link>
      <description>Setting your system clock backwards can have side effects like you might have guessed (eg: crontab jobs). I would try to avoid doing so unless you have other processes in place to handle the cron entries after the clock changed. Active/open files may be written with the old timestamp, acive spooler jobs may get hung, among other things I can think of.</description>
      <pubDate>Tue, 30 Jul 2002 03:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775232#M75779</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-30T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to set time backwards using scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775233#M75780</link>
      <description>Yes, please be careful if you set the time backward.  Be especially careful with things like incremental backups!  Other interesting things can happen with dependencies with 'make' and friends.  Also, some versions of pwgrd are known to go into semi-infinite loops when time goes backwards.  Beware if you are running that.</description>
      <pubDate>Wed, 31 Jul 2002 05:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-time-backwards-using-scripts/m-p/2775233#M75780</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2002-07-31T05:25:55Z</dc:date>
    </item>
  </channel>
</rss>

