<?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 program / Wrapper Needed to gracefully shutdown the session gracefully in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960202#M415508</link>
    <description>Basically, I want to trap the signals (9,15)on the qmadmin command and make it quit gracefully.</description>
    <pubDate>Thu, 16 Feb 2006 00:01:46 GMT</pubDate>
    <dc:creator>Hunki</dc:creator>
    <dc:date>2006-02-16T00:01:46Z</dc:date>
    <item>
      <title>Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960199#M415505</link>
      <description>I have been working on tuxedo for the past two months, and there we have this queue admin utility called qmadmin, which if it recieves a signal 9 , 15 ,1,2,6...( when it is open )it makes the tuxedo hung up and no processing of the queue is carried out. &lt;BR /&gt;From a Unix perspective when I asked one of the system admin , he told me the following :&lt;BR /&gt;"Basically run a C wrapper (or shell???) program around the qmadmin command that catches any shell disconnect/kill signal...then within that function it disconnects/exits the qmadmin session gracefully."&lt;BR /&gt;&lt;BR /&gt;As I am very limited on C , what are the options open to me to actually make this happen through a shell script.&lt;BR /&gt;We have to do a quit in the qmadmin utility to gracefully shut it down.&lt;BR /&gt;&lt;BR /&gt;Thanks to all nice and smart samaritans.</description>
      <pubDate>Wed, 15 Feb 2006 17:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960199#M415505</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-15T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960200#M415506</link>
      <description># man trap&lt;BR /&gt;&lt;BR /&gt;Multiple signal numbers can be placed on the same trap command. For example,&lt;BR /&gt;&lt;BR /&gt;trap 'rm $TMP' 0 1 2 3 15&lt;BR /&gt;&lt;BR /&gt;executes the rm $TMP command if any one of the 0, 1, 2, 3, or 15 signals are caught.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2006 19:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960200#M415506</guid>
      <dc:creator>paolo barila</dc:creator>
      <dc:date>2006-02-15T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960201#M415507</link>
      <description>I am aware of trap, but I am looking for a more exhaustive input , if you look at my post what I am looking for is a wrapper that trigers a function to exit the qmadmin session gracefully.It does not work well with the 15 signal.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2006 19:36:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960201#M415507</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-15T19:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960202#M415508</link>
      <description>Basically, I want to trap the signals (9,15)on the qmadmin command and make it quit gracefully.</description>
      <pubDate>Thu, 16 Feb 2006 00:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960202#M415508</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-16T00:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960203#M415509</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It's very simple.&lt;BR /&gt;&lt;BR /&gt;# cat qrnadmin_start&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;trap "[shutdown qrnadmin commands]" 9 15&lt;BR /&gt;[start qrnamdin commands]&lt;BR /&gt;&lt;BR /&gt;You can then start you qrnadmin session with the qrnamdin_start script.  The script catches either sig 9 or sig 15, it will execute the shutdown commands.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 16 Feb 2006 12:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960203#M415509</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2006-02-16T12:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960204#M415510</link>
      <description>Qmadmin can be quit through the session only.What I mean is that through pressing q ( for quit ) to quit the session.There is not command to actually shut it down.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2006 15:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960204#M415510</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-16T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960205#M415511</link>
      <description>When I do a truss qmadmin , the following is the output when I key in q ( for quit ) :&lt;BR /&gt;&lt;BR /&gt;truss qmadmin &lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;read(0, " q\n", 1024) = 2&lt;BR /&gt;_exit(0)&lt;BR /&gt;&lt;BR /&gt;When I did a man kill , I found this info :&lt;BR /&gt;&lt;BR /&gt;exit_status&lt;BR /&gt;A decimal integer specifying a signal number or &lt;BR /&gt;the exit status of a process terminated by a signal.&lt;BR /&gt;&lt;BR /&gt;Can any of the stuff that is there in "truss qmadmin" be passed thru to kill ( or any other means ) that it gracefully shuts down the process.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 16 Feb 2006 15:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960205#M415511</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-16T15:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960206#M415512</link>
      <description>Temp Closing.&lt;BR /&gt;Opened a Case with BEA.</description>
      <pubDate>Tue, 21 Feb 2006 13:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-program-wrapper-needed-to-gracefully-shutdown-the-session/m-p/4960206#M415512</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-02-21T13:07:42Z</dc:date>
    </item>
  </channel>
</rss>

