<?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: User defined key for interrupting a infinite loop script ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782129#M77433</link>
    <description>POSIX shell is fine, the good "old" Bourne shell has to go.&lt;BR /&gt;I don't see the problem.&lt;BR /&gt;sh        Bourne-shell command programming language and commands&lt;BR /&gt;                     interpreter residing in file /usr/old/bin/sh.  Can&lt;BR /&gt;                     execute commands read from a terminal or a file.  This&lt;BR /&gt;                     shell lacks many features contained in the POSIX and&lt;BR /&gt;                     Korn shells.  The Bourne shell will be obsoleted.&lt;BR /&gt;                     Users are strongly encouraged to switch to the POSIX&lt;BR /&gt;                     shell.  The Bourne shell will still be available as&lt;BR /&gt;                     /usr/old/bin/sh, for those users have to use it.&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
    <pubDate>Fri, 09 Aug 2002 07:39:59 GMT</pubDate>
    <dc:creator>Jean-Luc Oudart</dc:creator>
    <dc:date>2002-08-09T07:39:59Z</dc:date>
    <item>
      <title>User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782124#M77428</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Any idea on implementing a user defined key e.g. "q" to interrupt a ever running while loop script ?&lt;BR /&gt;&lt;BR /&gt;The reason for my question is that I want to write a script to continuosuly check some process until the user click on the "q" in the keyboard.&lt;BR /&gt;&lt;BR /&gt;Appreciated it if you can give me some hints.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 08 Aug 2002 10:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782124#M77428</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2002-08-08T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782125#M77429</link>
      <description>What shell do you plan on using? Or will you be using perl?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 08 Aug 2002 10:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782125#M77429</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-08T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782126#M77430</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;Why dont you use the unitl loop for this purpose?&lt;BR /&gt;&lt;BR /&gt;-Bonny-</description>
      <pubDate>Thu, 08 Aug 2002 10:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782126#M77430</guid>
      <dc:creator>Bonny Jose_1</dc:creator>
      <dc:date>2002-08-08T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782127#M77431</link>
      <description>Hope this help :&lt;BR /&gt;============================================&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;trap 'echo bye &amp;amp;&amp;amp; stty intr ^C &amp;amp;&amp;amp; exit' 2&lt;BR /&gt;stty intr q&lt;BR /&gt;while [ true ]&lt;BR /&gt;do  &lt;BR /&gt;  date&lt;BR /&gt;  sleep 1&lt;BR /&gt;done&lt;BR /&gt;============================================&lt;BR /&gt;I changed the interruption to the letter "q" and back to ^C when we quit the program.&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 08 Aug 2002 10:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782127#M77431</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-08-08T10:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782128#M77432</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I would like to use Bourn shell.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Chris,</description>
      <pubDate>Thu, 08 Aug 2002 14:45:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782128#M77432</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2002-08-08T14:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: User defined key for interrupting a infinite loop script !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782129#M77433</link>
      <description>POSIX shell is fine, the good "old" Bourne shell has to go.&lt;BR /&gt;I don't see the problem.&lt;BR /&gt;sh        Bourne-shell command programming language and commands&lt;BR /&gt;                     interpreter residing in file /usr/old/bin/sh.  Can&lt;BR /&gt;                     execute commands read from a terminal or a file.  This&lt;BR /&gt;                     shell lacks many features contained in the POSIX and&lt;BR /&gt;                     Korn shells.  The Bourne shell will be obsoleted.&lt;BR /&gt;                     Users are strongly encouraged to switch to the POSIX&lt;BR /&gt;                     shell.  The Bourne shell will still be available as&lt;BR /&gt;                     /usr/old/bin/sh, for those users have to use it.&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Fri, 09 Aug 2002 07:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-defined-key-for-interrupting-a-infinite-loop-script/m-p/2782129#M77433</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-08-09T07:39:59Z</dc:date>
    </item>
  </channel>
</rss>

