<?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: Shut multiple processes at the same time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642634#M666124</link>
    <description>you mean something like&lt;BR /&gt;&lt;BR /&gt;listofpid content the list of pid to wait&lt;BR /&gt;&lt;BR /&gt;( sleep 10 ;echo 10) &amp;amp;&lt;BR /&gt;listofpid=$!&lt;BR /&gt;( sleep 11 ;echo 11) &amp;amp;&lt;BR /&gt;listofpid="$listofpid $!"&lt;BR /&gt;( sleep 12 ;echo 12) &amp;amp;&lt;BR /&gt;listofpid="$listofpid $!"&lt;BR /&gt;typeset -i nb=0&lt;BR /&gt;for p in $listofpid&lt;BR /&gt;do&lt;BR /&gt;   echo $p&lt;BR /&gt;   kill -2 $p&lt;BR /&gt;   while :&lt;BR /&gt;    do&lt;BR /&gt;       kill -0 $p 2&amp;gt;/dev/null &amp;amp;&amp;amp; break&lt;BR /&gt;       sleep 1&lt;BR /&gt;    done &amp;amp;&lt;BR /&gt;    nb=nb+1&lt;BR /&gt;   echo $nb&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;wait&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Jun 2010 16:10:53 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2010-06-04T16:10:53Z</dc:date>
    <item>
      <title>Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642630#M666120</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;I have 2 nodes in a cluster and a package with a lot of processes (around 30) running on one of the nodes. When I'm halting the package with cmhaltpkg it takes around 20 minutes to stop, probably due to many processes waiting to stop one at a time. Is there any way that I can make it stop multiple processes at the same time?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 04 Jun 2010 10:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642630#M666120</guid>
      <dc:creator>WW443777</dc:creator>
      <dc:date>2010-06-04T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642631#M666121</link>
      <description>What kind of processes are these? Are they all from the same environment such as an oracle database? Are they all independent of each other? You can't just go in and start kill processes at will. They need to be gracefully shutdown. And if they are part of the same environment, they may have to be shutdown in a sequence. You need to provide more details about the processes.</description>
      <pubDate>Fri, 04 Jun 2010 10:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642631#M666121</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-06-04T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642632#M666122</link>
      <description>They are all from the same environment. The package I was refering to is an application. This application has individual packages that run some processes each one of them. When one of the package is trying to stop, it waits for all of its processes to stop and then ends succesfully. Meanwhile the other packages are waiting for the previous to stop its processes in order to start their procedure. I was wondering if there is a way to make all the packages stop their child-processes at the same time. There is no dependency issues between the packages.</description>
      <pubDate>Fri, 04 Jun 2010 11:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642632#M666122</guid>
      <dc:creator>WW443777</dc:creator>
      <dc:date>2010-06-04T11:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642633#M666123</link>
      <description>As long as we talk about an unspecified application probably nobody can really help.</description>
      <pubDate>Fri, 04 Jun 2010 11:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642633#M666123</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-06-04T11:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642634#M666124</link>
      <description>you mean something like&lt;BR /&gt;&lt;BR /&gt;listofpid content the list of pid to wait&lt;BR /&gt;&lt;BR /&gt;( sleep 10 ;echo 10) &amp;amp;&lt;BR /&gt;listofpid=$!&lt;BR /&gt;( sleep 11 ;echo 11) &amp;amp;&lt;BR /&gt;listofpid="$listofpid $!"&lt;BR /&gt;( sleep 12 ;echo 12) &amp;amp;&lt;BR /&gt;listofpid="$listofpid $!"&lt;BR /&gt;typeset -i nb=0&lt;BR /&gt;for p in $listofpid&lt;BR /&gt;do&lt;BR /&gt;   echo $p&lt;BR /&gt;   kill -2 $p&lt;BR /&gt;   while :&lt;BR /&gt;    do&lt;BR /&gt;       kill -0 $p 2&amp;gt;/dev/null &amp;amp;&amp;amp; break&lt;BR /&gt;       sleep 1&lt;BR /&gt;    done &amp;amp;&lt;BR /&gt;    nb=nb+1&lt;BR /&gt;   echo $nb&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;wait&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2010 16:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642634#M666124</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-06-04T16:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642635#M666125</link>
      <description>&amp;gt; When one of the package is trying to stop, it waits for all of its processes to stop and then ends succesfully&lt;BR /&gt;&lt;BR /&gt;That would be the normal way to stop "a package".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Meanwhile the other packages...&lt;BR /&gt;&lt;BR /&gt;It depends. Are these packages independent of one another? And do you have separate shutdown scripts for *each* package that are run in sequence? &lt;BR /&gt;&lt;BR /&gt;If each package is independent of the others, you should be able to run the shutdown process for each package separately. There may be an impact to the server when all these are shutting down - there are probably doing a lot of processing and i/o during shutdown but that can be tested.&lt;BR /&gt;But you are still not providing enough  details.</description>
      <pubDate>Mon, 07 Jun 2010 12:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642635#M666125</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-06-07T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642636#M666126</link>
      <description>Sorry for the inconvenience I'm causing but I'm new to hp-ux and maybe I don't get exactly what kind of info you need me to provide... Pls can you make a list so as to be clear for me and you can give me a clear answer?? Thanks and sorry again</description>
      <pubDate>Mon, 07 Jun 2010 16:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642636#M666126</guid>
      <dc:creator>WW443777</dc:creator>
      <dc:date>2010-06-07T16:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shut multiple processes at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642637#M666127</link>
      <description>You can start by telling us which "package" is this. Someone here may know this package in detail.&lt;BR /&gt;&lt;BR /&gt;Also, you mentioned while the first package is shutting down and the others are waiting...&lt;BR /&gt;&lt;BR /&gt;Well, this shutdown script that halts the packages in sequence, can it be broken down into several halt scripts, one shutdown script for each package? If these packages are not dependent on each other, maybe you can schedule separate shutdown scripts to run at the same time.</description>
      <pubDate>Tue, 08 Jun 2010 16:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shut-multiple-processes-at-the-same-time/m-p/4642637#M666127</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-06-08T16:08:50Z</dc:date>
    </item>
  </channel>
</rss>

