<?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: &amp;quot;wait&amp;quot; in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718783#M62495</link>
    <description>Hi Ross,&lt;BR /&gt;&lt;BR /&gt;"sleep 10" is how to "pause" execution of a script for 10 seconds.&lt;BR /&gt;&lt;BR /&gt;If you want to run several commands concurrently and wait for them to finish before doing something else, use "wait".  For example:&lt;BR /&gt;&lt;BR /&gt;command1 &amp;amp;&lt;BR /&gt;command2 &amp;amp;&lt;BR /&gt;command3 &amp;amp;&lt;BR /&gt;wait&lt;BR /&gt;command4&lt;BR /&gt;&lt;BR /&gt;This script runs commands 1 - 3 in the background then waits until they all complete before running command4.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Tue, 07 May 2002 17:03:11 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2002-05-07T17:03:11Z</dc:date>
    <item>
      <title>"wait" in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718780#M62492</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to write a simple little script&lt;BR /&gt;I need to wait for 5-10 seconds before the next&lt;BR /&gt;command goes.  what is the proper syntax to &lt;BR /&gt;put a wait command in a script???&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;hanson</description>
      <pubDate>Tue, 07 May 2002 16:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718780#M62492</guid>
      <dc:creator>ROSS HANSON</dc:creator>
      <dc:date>2002-05-07T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: "wait" in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718781#M62493</link>
      <description>Hi Ross:&lt;BR /&gt;&lt;BR /&gt;I think you need to use 'sleep' command:&lt;BR /&gt;&lt;BR /&gt;sleep 10 ( wait for 10 seconds)&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Tue, 07 May 2002 16:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718781#M62493</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-07T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: "wait" in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718782#M62494</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "waiting for 10 seconds..."&lt;BR /&gt;sleep 10&lt;BR /&gt;echo "all done!"&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...or to wait for a background task (job) to complete:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;sleep 10&amp;amp;&lt;BR /&gt;PID=$!&lt;BR /&gt;echo "...waiting for background task..."&lt;BR /&gt;wait $PID&lt;BR /&gt;echo "all done!"&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 07 May 2002 16:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718782#M62494</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-07T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: "wait" in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718783#M62495</link>
      <description>Hi Ross,&lt;BR /&gt;&lt;BR /&gt;"sleep 10" is how to "pause" execution of a script for 10 seconds.&lt;BR /&gt;&lt;BR /&gt;If you want to run several commands concurrently and wait for them to finish before doing something else, use "wait".  For example:&lt;BR /&gt;&lt;BR /&gt;command1 &amp;amp;&lt;BR /&gt;command2 &amp;amp;&lt;BR /&gt;command3 &amp;amp;&lt;BR /&gt;wait&lt;BR /&gt;command4&lt;BR /&gt;&lt;BR /&gt;This script runs commands 1 - 3 in the background then waits until they all complete before running command4.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 07 May 2002 17:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-wait-quot-in-a-script/m-p/2718783#M62495</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-05-07T17:03:11Z</dc:date>
    </item>
  </channel>
</rss>

