<?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 hpux Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167670#M896773</link>
    <description>Here is an example-&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;trap "a=1" 2&lt;BR /&gt;a=0&lt;BR /&gt;while [[ "$a" = 0 ]] ; do&lt;BR /&gt;echo hello&lt;BR /&gt;done&lt;BR /&gt;echo fini&lt;BR /&gt; &lt;BR /&gt;This will loop echoing "hello" until the ctrl-c is pressed. The trap statement will set a=1 and the while loop will exit.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
    <pubDate>Mon, 19 Jan 2004 12:32:05 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2004-01-19T12:32:05Z</dc:date>
    <item>
      <title>Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167663#M896766</link>
      <description>Hello !&lt;BR /&gt;How can I quit a loop like "while" simply pushing a keyboard key whith HPUX V11.0 shell ?&lt;BR /&gt;&lt;BR /&gt;Is it possible ? so what is the command ?&lt;BR /&gt;&lt;BR /&gt;Thank's</description>
      <pubDate>Mon, 19 Jan 2004 11:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167663#M896766</guid>
      <dc:creator>M. FRANGEUL</dc:creator>
      <dc:date>2004-01-19T11:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167664#M896767</link>
      <description>If your script is running interactive you can do a &lt;CTRL&gt;&lt;C&gt;.&lt;BR /&gt;If it's in the background just kill it.&lt;BR /&gt;kill &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Peter&lt;/PID&gt;&lt;/C&gt;&lt;/CTRL&gt;</description>
      <pubDate>Mon, 19 Jan 2004 11:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167664#M896767</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-01-19T11:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167665#M896768</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;enter stty&lt;BR /&gt;and you *should* see that&lt;BR /&gt;intr = Contol-C&lt;BR /&gt;&lt;BR /&gt;you may map this differently if you want - at your own risk...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Mon, 19 Jan 2004 11:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167665#M896768</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2004-01-19T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167666#M896769</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can type "ctrl-c" to quit the loop. If it didn't work try "ctrl-\".&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 19 Jan 2004 11:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167666#M896769</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-01-19T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167667#M896770</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Besides ^C for interrupt you can try the quit sequence which is typically ctrl-backslash or the kill sequence which is typically ^U&lt;BR /&gt;Run&lt;BR /&gt;stty -a &lt;BR /&gt;to get the mappings for your current term type &amp;amp; session.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 19 Jan 2004 11:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167667#M896770</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-01-19T11:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167668#M896771</link>
      <description>If you want to quite the loop, yet continue with the rest of the script, then use "trap" to catch ctrl-c, set a flag, and test for the flag within your while loop.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 19 Jan 2004 11:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167668#M896771</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-01-19T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167669#M896772</link>
      <description>Thank's Rod,&lt;BR /&gt;Excuse me for my english, I'm french&lt;BR /&gt;your solution is better for me, but can you please give me an example.&lt;BR /&gt;&lt;BR /&gt;Thank's again.</description>
      <pubDate>Mon, 19 Jan 2004 12:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167669#M896772</guid>
      <dc:creator>M. FRANGEUL</dc:creator>
      <dc:date>2004-01-19T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167670#M896773</link>
      <description>Here is an example-&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;trap "a=1" 2&lt;BR /&gt;a=0&lt;BR /&gt;while [[ "$a" = 0 ]] ; do&lt;BR /&gt;echo hello&lt;BR /&gt;done&lt;BR /&gt;echo fini&lt;BR /&gt; &lt;BR /&gt;This will loop echoing "hello" until the ctrl-c is pressed. The trap statement will set a=1 and the while loop will exit.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 19 Jan 2004 12:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167670#M896773</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-01-19T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167671#M896774</link>
      <description>Merci beaucoup Rod.</description>
      <pubDate>Mon, 19 Jan 2004 12:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167671#M896774</guid>
      <dc:creator>M. FRANGEUL</dc:creator>
      <dc:date>2004-01-19T12:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shell hpux Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167672#M896775</link>
      <description>If this solution does what you were looking for, then assign points 8-10 to my reply.&lt;BR /&gt; &lt;BR /&gt;This helps other users looking for similar solutions...&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 19 Jan 2004 13:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-hpux-question/m-p/3167672#M896775</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-01-19T13:56:11Z</dc:date>
    </item>
  </channel>
</rss>

