<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563841#M227014</link>
    <description>Hi Zee,&lt;BR /&gt;&lt;BR /&gt;It is best to setup two cron jobs under the circumstances unless you want to run one at 8:00am and the other at xx:00 AM/PM.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Jun 2005 09:36:03 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2005-06-14T09:36:03Z</dc:date>
    <item>
      <title>cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563835#M227008</link>
      <description>I need to run a job twice every day,  first at 08.00AM and then again at 05.30PM&lt;BR /&gt;&lt;BR /&gt;I know i can do these ..&lt;BR /&gt;&lt;BR /&gt;00 08 * * * /jobname&lt;BR /&gt;30 17 * * * /jobname &lt;BR /&gt;&lt;BR /&gt;But is there any way i can set it to run first at 0800 and then at 1730 in once cron command ? &lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Zee. &lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 09:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563835#M227008</guid>
      <dc:creator>Zee</dc:creator>
      <dc:date>2005-06-14T09:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563836#M227009</link>
      <description>Zee,&lt;BR /&gt;if the start time was 17:00 you could with:&lt;BR /&gt;00 08,17 * * * /jobname&lt;BR /&gt;&lt;BR /&gt;Otherwise you could use a conditional at in the 08:00 run&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 14 Jun 2005 09:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563836#M227009</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-06-14T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563837#M227010</link>
      <description>Hi Zee,&lt;BR /&gt;&lt;BR /&gt;Sure - use the at command.&lt;BR /&gt;Just make the last command in the cron job an at command timed for 17:30 that day.&lt;BR /&gt;&lt;BR /&gt;man 1 at&lt;BR /&gt;&lt;BR /&gt;for details.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 14 Jun 2005 09:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563837#M227010</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2005-06-14T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563838#M227011</link>
      <description>No, if you tried to combine your commands into something like&lt;BR /&gt;00,30 08,17 * * * /jobname then the command would execute 4 times per day. You could put an "at" command in /jobname but that would be more complicated and error prone that your current method.</description>
      <pubDate>Tue, 14 Jun 2005 09:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563838#M227011</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-14T09:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563839#M227012</link>
      <description>You could cron it to run at 8:00 and put an at statement to kick it off again at 5:30:&lt;BR /&gt;&lt;BR /&gt;echo "full_path_name_of_job" |at 1730 today&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 14 Jun 2005 09:32:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563839#M227012</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-14T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563840#M227013</link>
      <description>or...if job name is a script...&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Loop &lt;BR /&gt;#&lt;BR /&gt;          count=1&lt;BR /&gt;          _ret=1&lt;BR /&gt;          while [ $count -le 2 -a $_ret != 0 ]&lt;BR /&gt;          do&lt;BR /&gt;&lt;BR /&gt;            your commands...&lt;BR /&gt;          &lt;BR /&gt;          count=$((count + 1 ))&lt;BR /&gt;          sleep 34200&lt;BR /&gt;          done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or something like that...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 14 Jun 2005 09:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563840#M227013</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-06-14T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563841#M227014</link>
      <description>Hi Zee,&lt;BR /&gt;&lt;BR /&gt;It is best to setup two cron jobs under the circumstances unless you want to run one at 8:00am and the other at xx:00 AM/PM.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 09:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563841#M227014</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-06-14T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563842#M227015</link>
      <description>You may be better off using the 2 lines in the cron.&lt;BR /&gt;&lt;BR /&gt;Nice idea though</description>
      <pubDate>Tue, 14 Jun 2005 09:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563842#M227015</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-06-14T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: cron help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563843#M227016</link>
      <description>thank you all.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 10:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-help/m-p/3563843#M227016</guid>
      <dc:creator>Zee</dc:creator>
      <dc:date>2005-06-14T10:20:04Z</dc:date>
    </item>
  </channel>
</rss>

