<?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 ksh script question:ONTIMEOUT .. ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-question-ontimeout/m-p/2512149#M595776</link>
    <description>I am looking for a way to trap timeout event in ksh script, how can I do that?  ie is there an equivalent ON TIMEOUT GOTO ... statement in ksh shell script.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Apr 2001 03:34:06 GMT</pubDate>
    <dc:creator>mooi-kuan</dc:creator>
    <dc:date>2001-04-02T03:34:06Z</dc:date>
    <item>
      <title>ksh script question:ONTIMEOUT .. ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-question-ontimeout/m-p/2512149#M595776</link>
      <description>I am looking for a way to trap timeout event in ksh script, how can I do that?  ie is there an equivalent ON TIMEOUT GOTO ... statement in ksh shell script.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2001 03:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-question-ontimeout/m-p/2512149#M595776</guid>
      <dc:creator>mooi-kuan</dc:creator>
      <dc:date>2001-04-02T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script question:ONTIMEOUT .. ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-question-ontimeout/m-p/2512150#M595777</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can execute a script based on trap 0, which occurs when a shell times out eg.&lt;BR /&gt;&lt;BR /&gt;trap "/opt/scripts/myscript" 0&lt;BR /&gt;&lt;BR /&gt;When the period specified in the TMOUT variable expires, your /opt/scripts/myscript will be executed.&lt;BR /&gt;&lt;BR /&gt;Note however that by specifying a script for 0, you are overriding the global default action specified in /etc/profile which is: &lt;BR /&gt;&lt;BR /&gt;trap "echo logout" 0&lt;BR /&gt;&lt;BR /&gt;To set the TMOUT variable, eg.&lt;BR /&gt;&lt;BR /&gt;In sh, ksh, bash: export TMOUT=300 (ie. 300 seconds)&lt;BR /&gt;&lt;BR /&gt;In csh, tcsh: setenv TMOUT 300&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Mon, 02 Apr 2001 05:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-question-ontimeout/m-p/2512150#M595777</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-04-02T05:42:37Z</dc:date>
    </item>
  </channel>
</rss>

