<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863964#M772909</link>
    <description>You have to write a script to check 1st and 3rd thursday for every month since cron is not user friendly.&lt;BR /&gt;&lt;BR /&gt;For Ex:&lt;BR /&gt;&lt;BR /&gt;15 4 * * 4 /usr/sbin/shutdown -ry 0 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Which will reboot server Every Thursday at 4:15am &lt;BR /&gt;&lt;BR /&gt;see more details at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/crontab.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/crontab.1.html&lt;/A&gt;</description>
    <pubDate>Sat, 16 Sep 2006 23:42:25 GMT</pubDate>
    <dc:creator>IT_2007</dc:creator>
    <dc:date>2006-09-16T23:42:25Z</dc:date>
    <item>
      <title>cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863961#M772906</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to enter one entry in cron where it will reboot the server on First and Third thursday of every month. Can anyone suggest on this.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Sat, 16 Sep 2006 22:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863961#M772906</guid>
      <dc:creator>Ramnath S</dc:creator>
      <dc:date>2006-09-16T22:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863962#M772907</link>
      <description>what time you want to reboot the server?</description>
      <pubDate>Sat, 16 Sep 2006 23:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863962#M772907</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-16T23:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863963#M772908</link>
      <description>04:15 IST time.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Sat, 16 Sep 2006 23:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863963#M772908</guid>
      <dc:creator>Ramnath S</dc:creator>
      <dc:date>2006-09-16T23:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863964#M772909</link>
      <description>You have to write a script to check 1st and 3rd thursday for every month since cron is not user friendly.&lt;BR /&gt;&lt;BR /&gt;For Ex:&lt;BR /&gt;&lt;BR /&gt;15 4 * * 4 /usr/sbin/shutdown -ry 0 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Which will reboot server Every Thursday at 4:15am &lt;BR /&gt;&lt;BR /&gt;see more details at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/crontab.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/crontab.1.html&lt;/A&gt;</description>
      <pubDate>Sat, 16 Sep 2006 23:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863964#M772909</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-16T23:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863965#M772910</link>
      <description>Best way is use Clay's script to do your cronjob. See the link for more details.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=371092" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=371092&lt;/A&gt;</description>
      <pubDate>Sat, 16 Sep 2006 23:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863965#M772910</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-16T23:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863966#M772911</link>
      <description>Thanks for your replies.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Sun, 17 Sep 2006 00:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863966#M772911</guid>
      <dc:creator>Ramnath S</dc:creator>
      <dc:date>2006-09-17T00:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863967#M772912</link>
      <description>If you feel, this forum answered your questions, please assign points and close the thread.</description>
      <pubDate>Sun, 17 Sep 2006 19:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863967#M772912</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-17T19:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863968#M772913</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Schedule this to run every Thursday:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;DATE=$(date +u"%d")&lt;BR /&gt;TH1=$(cal | awk '{if ($5 != "Th" &amp;amp;&amp;amp; $5 != "") print $5}' | head -1)&lt;BR /&gt;TH3=$(cal | awk '{if ($5 != "Th" &amp;amp;&amp;amp; $5 != "") print $5}' | head -3 | tail -1)&lt;BR /&gt;if [ "${DATE}x" = "${TH1}x" -o "${DATE}x" = "${TH3}x" ]&lt;BR /&gt;then&lt;BR /&gt;   shutdown -r -y now&lt;BR /&gt;fi&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;A sample crontab entry (which runs every Thursday at 1:00am):&lt;BR /&gt;0 1 * * 4 reboot-1st-3rd-th.sh&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Sun, 17 Sep 2006 21:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3863968#M772913</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-17T21:16:51Z</dc:date>
    </item>
  </channel>
</rss>

