<?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: cron check script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049471#M136227</link>
    <description>Hi Con,&lt;BR /&gt;&lt;BR /&gt;For DAY_NO less then 10 we get DAY as for&lt;BR /&gt;example:&lt;BR /&gt;# date "+%a %b %d"&lt;BR /&gt;Wed Aug 06&lt;BR /&gt;&lt;BR /&gt;August 6 comes as 06 and as the /var/adm/cron/log doesn't has 06 pattern it ignores the croncheck of August 6.&lt;BR /&gt;&lt;BR /&gt;How can I make the date to display as Wed Aug 6 and not as Wed Aug 06? &lt;BR /&gt;&lt;BR /&gt;Here your double space option doesn't help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Aug 2003 02:36:38 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2003-08-15T02:36:38Z</dc:date>
    <item>
      <title>cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049466#M136222</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Here is a script which sends an alert to me if the cronjob fails for today.&lt;BR /&gt;&lt;BR /&gt;It has been observed that it doesn't give the cron status from Dates 2 to 9 but it works fine for the other dates. What needs to be done to make it work for dates 2 to 9?&lt;BR /&gt;&lt;BR /&gt;Also I would like this script to give the cron status of only yesterdays cron jobs. What changes needs to be done for this?&lt;BR /&gt;&lt;BR /&gt;*************&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;admin1=ss1@abc.com&lt;BR /&gt;admin2=ss2@abc.com&lt;BR /&gt;&lt;BR /&gt;host_name=`hostname`&lt;BR /&gt;&lt;BR /&gt;DAY=$(date "+%a %b %d") &lt;BR /&gt;grep "rc=" /var/adm/cron/log | awk '/'"$DAY"'/ {print $0}' &amp;gt; /tmp/cronerrors.log&lt;BR /&gt;&lt;BR /&gt;ERROR=`cat /tmp/cronerrors.log | wc -l` &lt;BR /&gt;&lt;BR /&gt;if [ $ERROR -gt 0 ]&lt;BR /&gt; then&lt;BR /&gt; elm -s "ALERT!: $host_name: Cronjob failed !!" $admin1  elm -s "ALERT!: $host_name: Cronjob failed !!" $admin2  else&lt;BR /&gt; echo "Cronjob has run successfully"&lt;BR /&gt;fi&lt;BR /&gt;*******************&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 14 Aug 2003 23:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049466#M136222</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-14T23:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049467#M136223</link>
      <description>Hi Sanjiv&lt;BR /&gt;&lt;BR /&gt;My guess is that if you look closely at the cron log all single digit days have a double space between the Month &amp;amp; Day, therefore awk is not matching anything for 1-9.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;root 22368 c Sat Aug  2&lt;BR /&gt;root 13313 c Fri Aug 15&lt;BR /&gt;&lt;BR /&gt;Not sure if it shows clearly here but there is a double space between "Aug" &amp;amp; "2".&lt;BR /&gt;&lt;BR /&gt;You need to adjust the pattern match in awk to account for this.  Hope that makes sense!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 00:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049467#M136223</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-15T00:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049468#M136224</link>
      <description>Hi Con,&lt;BR /&gt;&lt;BR /&gt;Yes. It makes sense. But how to adjust it to incorporates for the dates from 2 to 9.&lt;BR /&gt;&lt;BR /&gt;I have received the cron status for date 1 but I am not sure how and why.&lt;BR /&gt;&lt;BR /&gt;What about the cron status for the yesterday only?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 00:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049468#M136224</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T00:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049469#M136225</link>
      <description>Hi Sanjiv,&lt;BR /&gt;  I hope this script meets all your requirement. Why don't you try this.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;month=`date +%m`&lt;BR /&gt;day=`date +%d`&lt;BR /&gt;year=`date +%Y`&lt;BR /&gt;&lt;BR /&gt;month=`expr $month + 0`&lt;BR /&gt;&lt;BR /&gt;day=`expr $day - 1`&lt;BR /&gt;&lt;BR /&gt;if [ $day -eq 0 ]; then&lt;BR /&gt;&lt;BR /&gt;  month=`expr $month - 1`&lt;BR /&gt;&lt;BR /&gt;  if [ $month -eq 0 ]; then&lt;BR /&gt;    month=12&lt;BR /&gt;    day=31&lt;BR /&gt;    year=`expr $year - 1`&lt;BR /&gt;  else&lt;BR /&gt;    case $month in&lt;BR /&gt;      1|3|5|7|8|10|12) day=31;;&lt;BR /&gt;      4|6|9|11) day=30;;&lt;BR /&gt;      2)&lt;BR /&gt;        if [ `expr $year % 4` -eq 0 ]; then&lt;BR /&gt;          if [ `expr $year % 400` -eq 0 ]; then&lt;BR /&gt;            day=29&lt;BR /&gt;          elif [ `expr $year % 100` -eq 0 ]; then&lt;BR /&gt;            day=28&lt;BR /&gt;          else&lt;BR /&gt;            day=29&lt;BR /&gt;          fi&lt;BR /&gt;        else&lt;BR /&gt;          day=28&lt;BR /&gt;        fi&lt;BR /&gt;      ;;&lt;BR /&gt;    esac&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;case $month in&lt;BR /&gt;1) mon=Jan;;&lt;BR /&gt;2) mon=Feb;;&lt;BR /&gt;3) mon=Mar;;&lt;BR /&gt;4) mon=Apr;;&lt;BR /&gt;5) mon=May;;&lt;BR /&gt;6) mon=Jun;;&lt;BR /&gt;7) mon=Jul;;&lt;BR /&gt;8) mon=Aug;;&lt;BR /&gt;9) mon=Sep;;&lt;BR /&gt;10) mon=Oct;;&lt;BR /&gt;11) mon=Nov;;&lt;BR /&gt;12) mon=Dec;;&lt;BR /&gt;esac&lt;BR /&gt;x=`expr length "$day"`&lt;BR /&gt;if&lt;BR /&gt;[ $x -eq 1 ]&lt;BR /&gt;then&lt;BR /&gt; Day="${mon}  ${day}"&lt;BR /&gt;else&lt;BR /&gt; Day="${mon} ${day}"&lt;BR /&gt;fi&lt;BR /&gt;cat /var/adm/cron/log|awk '/'"$Day"'/ &amp;amp;&amp;amp; /'"$year"'/ &amp;amp;&amp;amp; /'"rc="'/{print $0}' &amp;gt;/tmp/cronerr.log&lt;BR /&gt;mailx -s " Alert: Cron status" you@yourdomain.com &amp;lt; /tmp/cronerr.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 00:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049469#M136225</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2003-08-15T00:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049470#M136226</link>
      <description>Hi &lt;BR /&gt;Very crude method, I'm sure others have a better idea:&lt;BR /&gt;&lt;BR /&gt;//&lt;BR /&gt;DAY_NO=$(date +%d)&lt;BR /&gt;if [ $DAY_NO -lt 10 ]&lt;BR /&gt;then &lt;BR /&gt;  DAY=$(date "+%a %b  %d")  # double space after %b&lt;BR /&gt;else &lt;BR /&gt;  DAY=$(date "+%a %b %d")&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;grep "rc=" ........ etc etc&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;Note the double space on first DAY variable setting in the "if" statement.&lt;BR /&gt;&lt;BR /&gt;Haven't tested it but may work.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Fri, 15 Aug 2003 00:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049470#M136226</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-15T00:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049471#M136227</link>
      <description>Hi Con,&lt;BR /&gt;&lt;BR /&gt;For DAY_NO less then 10 we get DAY as for&lt;BR /&gt;example:&lt;BR /&gt;# date "+%a %b %d"&lt;BR /&gt;Wed Aug 06&lt;BR /&gt;&lt;BR /&gt;August 6 comes as 06 and as the /var/adm/cron/log doesn't has 06 pattern it ignores the croncheck of August 6.&lt;BR /&gt;&lt;BR /&gt;How can I make the date to display as Wed Aug 6 and not as Wed Aug 06? &lt;BR /&gt;&lt;BR /&gt;Here your double space option doesn't help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 02:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049471#M136227</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T02:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049472#M136228</link>
      <description>Sanjiv,&lt;BR /&gt;&lt;BR /&gt;Use %e instead of %d. It will give date output in character with leading space not like decimel.&lt;BR /&gt;&lt;BR /&gt;So you need to execute DAY=$(date "+%a %b %e")to get proper output.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Dip</description>
      <pubDate>Fri, 15 Aug 2003 02:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049472#M136228</guid>
      <dc:creator>sdip</dc:creator>
      <dc:date>2003-08-15T02:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049473#M136229</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;What about&lt;BR /&gt;DAY_NO=$(date +%d | sed 's/^0//')&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Fri, 15 Aug 2003 02:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049473#M136229</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-15T02:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049474#M136230</link>
      <description>date "+%a %b %e"&lt;BR /&gt;&lt;BR /&gt;does not use the leading "0" on dates 1-9, but DOES use a leading space.&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;date "+%a %b %d"|sed "s/\ 0/\ /g"&lt;BR /&gt;&lt;BR /&gt;Maybe one of these will help.&lt;BR /&gt;&lt;BR /&gt;Rob&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 02:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049474#M136230</guid>
      <dc:creator>Rob_132</dc:creator>
      <dc:date>2003-08-15T02:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049475#M136231</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;Yes. %e has helped.&lt;BR /&gt;&lt;BR /&gt;Can we modify this script and make it to check the cron jobs which has run yesterday only?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 02:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049475#M136231</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T02:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049476#M136232</link>
      <description>@#$%#$^!!!!&lt;BR /&gt;&lt;BR /&gt;Thought I might have an answer worth points, but 2 people type faster than me!!&lt;BR /&gt;&lt;BR /&gt;8-O</description>
      <pubDate>Fri, 15 Aug 2003 03:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049476#M136232</guid>
      <dc:creator>Rob_132</dc:creator>
      <dc:date>2003-08-15T03:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049477#M136233</link>
      <description>Sanjiv,&lt;BR /&gt;&lt;BR /&gt;Yes you can.&lt;BR /&gt;&lt;BR /&gt;In your script just add following lines.&lt;BR /&gt;&lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;.....................&lt;BR /&gt;  Execute all the commands...&lt;BR /&gt;&lt;BR /&gt;In last line.&lt;BR /&gt;  export TZ=$OLDTZ&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Dip&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 03:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049477#M136233</guid>
      <dc:creator>sdip</dc:creator>
      <dc:date>2003-08-15T03:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049478#M136234</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think this is dangerous.&lt;BR /&gt;&lt;BR /&gt;When we execute &lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;The date changes to the previous date and hence till the completion of the script it remains the same.&lt;BR /&gt;&lt;BR /&gt;During this gap all the transation in the system will be as of yesterday's date. Don't you feel so.&lt;BR /&gt;&lt;BR /&gt;Pls. correct me if I am wrong or else let us find out some other solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049478#M136234</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049479#M136235</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think this is dangerous.&lt;BR /&gt;&lt;BR /&gt;When we execute &lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;The date changes to the previous date and hence till the completion of the script it remains the same.&lt;BR /&gt;&lt;BR /&gt;During this gap all the transation in the system will be as of yesterday's date. Don't you feel so.&lt;BR /&gt;&lt;BR /&gt;Pls. correct me if I am wrong or else let us find out some other solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049479#M136235</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049480#M136236</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think it is dangerous.&lt;BR /&gt;&lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;This will set the date one day before and all the transation till the script executes fully will be as of yesterday's date.&lt;BR /&gt;&lt;BR /&gt;Correct me of I am wrong or else let us look for some other method..&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049480#M136236</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049481#M136237</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think it is dangerous.&lt;BR /&gt;&lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;This will set the date one day before and all the transation till the script completes fully will be as of yesterday's date.&lt;BR /&gt;&lt;BR /&gt;Correct me of I am wrong or else let us look for some other method..&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049481#M136237</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049482#M136238</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think it is dangerous.&lt;BR /&gt;&lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;This will set the date one day before and all the transation till the script completes fully will be as of yesterday's date.&lt;BR /&gt;&lt;BR /&gt;Correct me if I am wrong or else let us look for some other method..&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049482#M136238</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049483#M136239</link>
      <description>Hi Dip,&lt;BR /&gt;&lt;BR /&gt;I think it is dangerous.&lt;BR /&gt;&lt;BR /&gt;OLDTZ=`echo $TZ`&lt;BR /&gt;export TZ=MET+24 # It would set one day before date.&lt;BR /&gt;&lt;BR /&gt;This will set the date one day before and all the transation till the script completes fully will be as of yesterday's date.&lt;BR /&gt;&lt;BR /&gt;Correct me if I am wrong or else let us look for some other method..&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 15 Aug 2003 04:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049483#M136239</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T04:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049484#M136240</link>
      <description>Hi Sanjiv &lt;BR /&gt;&lt;BR /&gt;I also use this TZ variable manipulation in my scripts. It shouldn't cause any problems. Don't export the TZ variable. Just set TZ back 24hours, then run your "date" commands and set TZ back to today.&lt;BR /&gt;&lt;BR /&gt;EG:&lt;BR /&gt;TZ=EST+13EDT    # Sets it back 24hrs&lt;BR /&gt;Run date commnads&lt;BR /&gt;TZ=EST-10EDT   #Sets it to back to today&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Fri, 15 Aug 2003 05:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049484#M136240</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-15T05:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: cron check script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049485#M136241</link>
      <description>Hi Con,&lt;BR /&gt;&lt;BR /&gt;I have used the TZ variable as advised by you but the time doesn't goes 24 hrs back nor it comes back to the original time.&lt;BR /&gt;&lt;BR /&gt;# echo $TZ&lt;BR /&gt;SST-8&lt;BR /&gt;# date&lt;BR /&gt;Fri Aug 15 15:51:18 SST 2003&lt;BR /&gt;# TZ=EST+13EDT&lt;BR /&gt;# date&lt;BR /&gt;Thu Aug 14 19:51:31 EDT 2003&lt;BR /&gt;# TZ=EST-10EDT&lt;BR /&gt;# date&lt;BR /&gt;Fri Aug 15 17:52:14 EST 2003&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 06:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-check-script/m-p/3049485#M136241</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-08-15T06:55:09Z</dc:date>
    </item>
  </channel>
</rss>

