<?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: How to pause a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946030#M114751</link>
    <description>If you want something what will also work on other systems ( I use this on sun systems ) you can do something like this:&lt;BR /&gt;....&lt;BR /&gt;        echo "Choose:y|n \c"&lt;BR /&gt;&lt;BR /&gt;RET=`((sleep 20; echo timeout)&amp;amp; cat -u 2&amp;gt;&amp;amp;-) | (read xxx;echo "$xxx")`&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;case $RET in&lt;BR /&gt;        y|Y) do_something ;;&lt;BR /&gt;        n|N) do_somthing ;;&lt;BR /&gt;        timeout ) default ;;&lt;BR /&gt;esac&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;That about the same as line -t</description>
    <pubDate>Thu, 10 Apr 2003 12:43:53 GMT</pubDate>
    <dc:creator>RolandH</dc:creator>
    <dc:date>2003-04-10T12:43:53Z</dc:date>
    <item>
      <title>How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946021#M114742</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Anyone any idea how to build a pause into a shell-script.&lt;BR /&gt;I know, bad example, but Windows command "pause" says: "Press any key to continue" I'dd like to make it work within a shell script as well.&lt;BR /&gt;&lt;BR /&gt;pause within unix is a C-call, so I can't use it. Thanks for your help in advance.&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Tue, 08 Apr 2003 11:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946021#M114742</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-04-08T11:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946022#M114743</link>
      <description>use read&lt;BR /&gt;&lt;BR /&gt;$ read&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Tue, 08 Apr 2003 11:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946022#M114743</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-08T11:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946023#M114744</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;use &lt;BR /&gt;&lt;BR /&gt;read&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 08 Apr 2003 11:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946023#M114744</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-04-08T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946024#M114745</link>
      <description>Hi David:&lt;BR /&gt;&lt;BR /&gt;This will work:&lt;BR /&gt;&lt;BR /&gt;# echo "Press Enter to continue...\c"&lt;BR /&gt;# read BITBUCKET&lt;BR /&gt;&lt;BR /&gt;...or if you merely wish to "pause" for some number of seconds"&lt;BR /&gt;&lt;BR /&gt;# echo "waiting a bit..."&lt;BR /&gt;# sleep 10&lt;BR /&gt;&lt;BR /&gt;...or an HP extension:&lt;BR /&gt;&lt;BR /&gt;# echo "waiting 10 seconds or your response"&lt;BR /&gt;# REPLY=`line -t 10`&lt;BR /&gt;&lt;BR /&gt;...in the above, REPLY will be empty if you don't respond in 10-seconds.  Otherwise it will be equivalent to a 'read REPLY'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Apr 2003 11:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946024#M114745</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-04-08T11:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946025#M114746</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;that's a really great answer for a kinda simple question.&lt;BR /&gt;&lt;BR /&gt;Gotta learn that from you.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Tue, 08 Apr 2003 11:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946025#M114746</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-08T11:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946026#M114747</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;This looks very good.&lt;BR /&gt;Never knew the REPLY one, great !!&lt;BR /&gt;&lt;BR /&gt;Everybody else, thanks for your quick response !&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Tue, 08 Apr 2003 12:08:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946026#M114747</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-04-08T12:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946027#M114748</link>
      <description>David:&lt;BR /&gt;&lt;BR /&gt;I agree with everyone, but I have to mention that James answer is a good one. I will add that one to my collection. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Tue, 08 Apr 2003 12:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946027#M114748</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-04-08T12:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946028#M114749</link>
      <description>Hi (again) David:&lt;BR /&gt;&lt;BR /&gt;I would be remiss if I didn't point out that the man pages for 'line' make this warning:&lt;BR /&gt;&lt;BR /&gt;"This command is likely to be withdrawn from X/Open standards. Applications using this command might not be portable to other vendors' systems. As an alternative read is recommended."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 08 Apr 2003 12:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946028#M114749</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-04-08T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946029#M114750</link>
      <description>Yep, you're right. We'll use the read one then, but the "line -t &amp;lt;.&amp;gt;" is defintly a to_know one.&lt;BR /&gt;&lt;BR /&gt;Many thanks mister Olympian! :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Tue, 08 Apr 2003 12:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946029#M114750</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-04-08T12:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pause a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946030#M114751</link>
      <description>If you want something what will also work on other systems ( I use this on sun systems ) you can do something like this:&lt;BR /&gt;....&lt;BR /&gt;        echo "Choose:y|n \c"&lt;BR /&gt;&lt;BR /&gt;RET=`((sleep 20; echo timeout)&amp;amp; cat -u 2&amp;gt;&amp;amp;-) | (read xxx;echo "$xxx")`&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;case $RET in&lt;BR /&gt;        y|Y) do_something ;;&lt;BR /&gt;        n|N) do_somthing ;;&lt;BR /&gt;        timeout ) default ;;&lt;BR /&gt;esac&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;That about the same as line -t</description>
      <pubDate>Thu, 10 Apr 2003 12:43:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-pause-a-script/m-p/2946030#M114751</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-04-10T12:43:53Z</dc:date>
    </item>
  </channel>
</rss>

