<?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: shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780613#M77075</link>
    <description>I can think of 3 methods instantly:&lt;BR /&gt;&lt;BR /&gt;I. Start all 3 jobs simultaneously but have the third job loop with a sleep until two files have been written (by jobs 1 &amp;amp; 2). Job 3 then removes these files and starts processing.&lt;BR /&gt;&lt;BR /&gt;2) 1 cronjob that does this:&lt;BR /&gt;&lt;BR /&gt;   job1 &amp;amp;&lt;BR /&gt;   job2 &amp;amp;&lt;BR /&gt;   wait&lt;BR /&gt;   start job 3 processing.&lt;BR /&gt;&lt;BR /&gt;The wait command will wait fore all background processes to complete.&lt;BR /&gt;&lt;BR /&gt;C) You could have job2 issue an at command:&lt;BR /&gt;   e.g. at /usr/local/bin/myfile.sh at now + 5 minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My preference is 2.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Aug 2002 14:30:08 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-08-06T14:30:08Z</dc:date>
    <item>
      <title>shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780612#M77074</link>
      <description>One of my users wants to have 2 cron jobs&lt;BR /&gt;running at the same time.  She wants to &lt;BR /&gt;start a third cron job after both are complete.&lt;BR /&gt;&lt;BR /&gt;How can I make it so the third job will begin&lt;BR /&gt;after there is a confirmation that the first&lt;BR /&gt;two jobs have completed.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 06 Aug 2002 14:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780612#M77074</guid>
      <dc:creator>David Peacock</dc:creator>
      <dc:date>2002-08-06T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780613#M77075</link>
      <description>I can think of 3 methods instantly:&lt;BR /&gt;&lt;BR /&gt;I. Start all 3 jobs simultaneously but have the third job loop with a sleep until two files have been written (by jobs 1 &amp;amp; 2). Job 3 then removes these files and starts processing.&lt;BR /&gt;&lt;BR /&gt;2) 1 cronjob that does this:&lt;BR /&gt;&lt;BR /&gt;   job1 &amp;amp;&lt;BR /&gt;   job2 &amp;amp;&lt;BR /&gt;   wait&lt;BR /&gt;   start job 3 processing.&lt;BR /&gt;&lt;BR /&gt;The wait command will wait fore all background processes to complete.&lt;BR /&gt;&lt;BR /&gt;C) You could have job2 issue an at command:&lt;BR /&gt;   e.g. at /usr/local/bin/myfile.sh at now + 5 minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My preference is 2.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 14:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780613#M77075</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-06T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780614#M77076</link>
      <description>I'd like A. Clay Stephenson's second method.  It is reliable and does simplify the job controlling (all the three jobs are launched from one cron script.)&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Tue, 06 Aug 2002 14:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780614#M77076</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-06T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780615#M77077</link>
      <description>&lt;BR /&gt;Just create a simple script that is started from cron that starts the first two "jobs" then checks the return status of each before launching the third.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 06 Aug 2002 15:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2780615#M77077</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-06T15:07:28Z</dc:date>
    </item>
  </channel>
</rss>

