<?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: Scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261641#M333025</link>
    <description>If you add a script to output dots then all you are showing is that the script outputting dots is making good progress at doing nothing.&lt;BR /&gt;If that helps your end users feeling better about the system, then fine. &lt;BR /&gt;Personally I would want to see honest progress otherwise I still need to resort to top or ps | grep to 'see' that it might be working.&lt;BR /&gt;Maybe a dot for each 10O MB processed? Or every 100 files compiled, every 1000 primes calculated, every 10,000 IOs does, every 5 seconds CPU burned, or whatever the task on hand might be&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Sep 2008 12:28:31 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-09-02T12:28:31Z</dc:date>
    <item>
      <title>Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261637#M333021</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;This is quite an obscure question but would love to know how to do this. If I am writing a script which is interactive I want to show that the script is processing at certain points. In otherwords for example the script will say "Gathering Info....." what I wanted to know is how can I show the script is processing such as adding an additional dot every 10 secs. I hope this makes sense.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Tue, 02 Sep 2008 09:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261637#M333021</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2008-09-02T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261638#M333022</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;echo .&lt;BR /&gt;sleep 10&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Lots of ways to do this.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 02 Sep 2008 10:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261638#M333022</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-09-02T10:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261639#M333023</link>
      <description>Hi Adam:&lt;BR /&gt;&lt;BR /&gt;To create a progress bar (dots, a spinning widget, etc.) in a shell script, you build a function that paints the bar with small sleep intervals between each point.  You launch this piece as a background task while processing to do the real work of your script.  When the real work is done, you kill the background process having captured its pid when you launched it.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 Sep 2008 10:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261639#M333023</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-02T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261640#M333024</link>
      <description>You could do the reverse of JRF's solution and put the process the that does the work in the background and use SEP's sleep echo ".\c" to print out the dots.&lt;BR /&gt;You can use "kill -0 $SAVE_PID" (where you saved $! from the background job) to know when to quit the loop.</description>
      <pubDate>Tue, 02 Sep 2008 11:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261640#M333024</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-02T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261641#M333025</link>
      <description>If you add a script to output dots then all you are showing is that the script outputting dots is making good progress at doing nothing.&lt;BR /&gt;If that helps your end users feeling better about the system, then fine. &lt;BR /&gt;Personally I would want to see honest progress otherwise I still need to resort to top or ps | grep to 'see' that it might be working.&lt;BR /&gt;Maybe a dot for each 10O MB processed? Or every 100 files compiled, every 1000 primes calculated, every 10,000 IOs does, every 5 seconds CPU burned, or whatever the task on hand might be&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2008 12:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/4261641#M333025</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-09-02T12:28:31Z</dc:date>
    </item>
  </channel>
</rss>

