<?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: time difference in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104581#M689130</link>
    <description>What's your timezone?  TZ=IST=-5:30 ?&lt;BR /&gt;If so, that maybe the difference between 7 AM and 9:30 PM, EDT.&lt;BR /&gt;So, you need to export TZ to your correct timezone.</description>
    <pubDate>Mon, 21 Apr 2008 09:31:18 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-04-21T09:31:18Z</dc:date>
    <item>
      <title>time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104578#M689127</link>
      <description>Hi friends,&lt;BR /&gt; &lt;BR /&gt;I've scheduled to export oracle DB everyday at 7AM, by executing the script given below:&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/bash&lt;BR /&gt;&lt;BR /&gt;exportORACLE_HOME=/a1/app/oracle/product/10.1.0&lt;BR /&gt;flnm=bkp`date +%a_%H%M`.dat&lt;BR /&gt;echo "Exporting Backup to : $flnm on `date +%d/%m/%Y-%H:%M:%S`" &amp;gt;&amp;gt; /home/ora/backup.log&lt;BR /&gt;if [ $UID == 255 ]; then&lt;BR /&gt;     $ORACLE_HOME/bin/exp system/mastermind@ems file=(/a2/ora/1_$flnm,/a2/ora/2_$flnm,/a2/ora/3_$flnm) filesize=4G owner=(nabad,abc_dev) triggers=y compress=y rows=y statistics=none log=/home/ora/logbkp.log1&lt;BR /&gt;     &lt;BR /&gt;else&lt;BR /&gt;echo "You must logged in as ORACLE user"&lt;BR /&gt;fi&lt;BR /&gt;echo "====== Backup Completed on `date +%d/%m/%Y-%H:%M:%S` =====" &amp;gt;&amp;gt; /home/ora/backup.log&lt;BR /&gt;echo "====== Backup transfer start  `date +%d/%m/%Y-%H:%M:%S` =====" &amp;gt;&amp;gt; /home/ora/backup.log&lt;BR /&gt;&lt;BR /&gt;Its running fine.&lt;BR /&gt;&lt;BR /&gt;As I'm running this script at 7AM, the file names generated should be bkpMon_0700.dat but  I'm getting a file name of bkpSun_2130.dat&lt;BR /&gt;&lt;BR /&gt;In /var/adm/cron/log, it shows that the script runs at 7Am.&lt;BR /&gt;Can anybody help me out?</description>
      <pubDate>Mon, 21 Apr 2008 08:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104578#M689127</guid>
      <dc:creator>akarayil</dc:creator>
      <dc:date>2008-04-21T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104579#M689128</link>
      <description>Hi,&lt;BR /&gt;There is nothing wrong in the script.The date format also ok.&lt;BR /&gt;Please check your system date.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;&lt;BR /&gt;Aashique</description>
      <pubDate>Mon, 21 Apr 2008 08:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104579#M689128</guid>
      <dc:creator>Aashique</dc:creator>
      <dc:date>2008-04-21T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104580#M689129</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The time you get is, when the backup has last finished.</description>
      <pubDate>Mon, 21 Apr 2008 08:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104580#M689129</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-04-21T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104581#M689130</link>
      <description>What's your timezone?  TZ=IST=-5:30 ?&lt;BR /&gt;If so, that maybe the difference between 7 AM and 9:30 PM, EDT.&lt;BR /&gt;So, you need to export TZ to your correct timezone.</description>
      <pubDate>Mon, 21 Apr 2008 09:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104581#M689130</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-21T09:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104582#M689131</link>
      <description>Dear ashique,&lt;BR /&gt;&lt;BR /&gt;system date&amp;amp;time is running fine. In the cron log file, exact time is showing. It starts at 7AM &amp;amp; takes 30 to 45 minutes to complete the process.&lt;BR /&gt;&lt;BR /&gt;my time zone is IST-5:30</description>
      <pubDate>Mon, 21 Apr 2008 09:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104582#M689131</guid>
      <dc:creator>akarayil</dc:creator>
      <dc:date>2008-04-21T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104583#M689132</link>
      <description>&amp;gt;my time zone is IST-5:30&lt;BR /&gt;&lt;BR /&gt;Then you'll have to export it in your cronjob:&lt;BR /&gt;export TZ=IST-5:30</description>
      <pubDate>Mon, 21 Apr 2008 09:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104583#M689132</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-21T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104584#M689133</link>
      <description>&amp;gt; Ahsan&lt;BR /&gt;&amp;gt; The time you get is, when the backup has last finished.&lt;BR /&gt;&lt;BR /&gt;this is not true. The name of the file is generated prior to the execution of the EXP command. So it should be close to the time the script is scheduled for execution.&lt;BR /&gt;&lt;BR /&gt;See above:&lt;BR /&gt;flnm=bkp`date +%a_%H%M`.dat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is definitely related to the timezone settings of the user who has the script scheduled in its crontab.&lt;BR /&gt;&lt;BR /&gt;Please verify as per Dennis post above.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104584#M689133</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-04-21T09:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104585#M689134</link>
      <description>&amp;gt;ME: Then you'll have to export it in your cronjob:&lt;BR /&gt;&lt;BR /&gt;Or you can put it in your crontab entry:&lt;BR /&gt;00 07 * * * TZ=IST-5:30 backup_script ...</description>
      <pubDate>Mon, 21 Apr 2008 09:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104585#M689134</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-21T09:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104586#M689135</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;check your users time zone. e.g. root, oracle&lt;BR /&gt;&lt;BR /&gt;from root user&lt;BR /&gt;#echo $TZ&lt;BR /&gt;&lt;BR /&gt;from oracle user&lt;BR /&gt;#echo $TZ&lt;BR /&gt;&lt;BR /&gt;I guess that earlier in my prfevious post.&lt;BR /&gt;If i'm not wrong, from the user you run this script is only using that users date.&lt;BR /&gt;&lt;BR /&gt;BTW, what is findings?</description>
      <pubDate>Mon, 21 Apr 2008 10:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104586#M689135</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-04-21T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104587#M689136</link>
      <description>Hi,&lt;BR /&gt;try with this:&lt;BR /&gt;top of the script put your TZ value and then export TZ it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards</description>
      <pubDate>Mon, 21 Apr 2008 11:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104587#M689136</guid>
      <dc:creator>Aashique</dc:creator>
      <dc:date>2008-04-21T11:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104588#M689137</link>
      <description>Hi friends,&lt;BR /&gt;&lt;BR /&gt;Script is run by oracle user.&lt;BR /&gt;For oracle user also the TZ is IST-5:30.&lt;BR /&gt;&lt;BR /&gt;As you instructed,TZ has been exported in the script. Lets see tomorrow 7AM, whether this will solve the problem or not.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I</description>
      <pubDate>Tue, 22 Apr 2008 05:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104588#M689137</guid>
      <dc:creator>akarayil</dc:creator>
      <dc:date>2008-04-22T05:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104589#M689138</link>
      <description>Hi,&lt;BR /&gt;After export it to the script it will work coz i also face this problem and i solved this in this way.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 22 Apr 2008 06:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104589#M689138</guid>
      <dc:creator>Aashique</dc:creator>
      <dc:date>2008-04-22T06:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: time difference</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104590#M689139</link>
      <description>Thanks for all of your help.&lt;BR /&gt;&lt;BR /&gt;your suggestion is working fine. the problem is solved by exporting the TZ in the script.</description>
      <pubDate>Wed, 23 Apr 2008 04:57:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-difference/m-p/5104590#M689139</guid>
      <dc:creator>akarayil</dc:creator>
      <dc:date>2008-04-23T04:57:59Z</dc:date>
    </item>
  </channel>
</rss>

