<?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: Terminating multiple processes query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973406#M418382</link>
    <description>Some time,&lt;BR /&gt;&lt;BR /&gt;kill -15 &lt;PID&gt; is better for that. &lt;BR /&gt;&lt;BR /&gt;Try that.&lt;BR /&gt;&lt;BR /&gt;else do a ps -ef |awk '{print $2} &amp;gt;/tmp/pids&lt;BR /&gt;for i in $(cat /tmp/pids)&lt;BR /&gt;do&lt;BR /&gt;kill -9/15 $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Chan&lt;/PID&gt;</description>
    <pubDate>Wed, 12 Apr 2006 09:37:20 GMT</pubDate>
    <dc:creator>Chan 007</dc:creator>
    <dc:date>2006-04-12T09:37:20Z</dc:date>
    <item>
      <title>Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973404#M418380</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Server running HPUX 11.00:&lt;BR /&gt;&lt;BR /&gt;User: bh has logged off but has left about 100 processes running (ps -ef | grep bh).  I have tried killing these off from the bottom up, to no avail (kill &amp;amp; kill -9).  They seem to be respawned under a new pid each time.&lt;BR /&gt;&lt;BR /&gt;When I run the 'top' command I usually receive several of these 'bh' processes within the top ten.  They are not always the same ones though.&lt;BR /&gt;&lt;BR /&gt;Rebooting is a last resort in this case.  Any suggestions on locating the origin of this problem?&lt;BR /&gt;&lt;BR /&gt;Much appreciated.</description>
      <pubDate>Wed, 12 Apr 2006 09:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973404#M418380</guid>
      <dc:creator>ITeam</dc:creator>
      <dc:date>2006-04-12T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973405#M418381</link>
      <description>Look for the parent's PID (PPID) and try to kill that process.</description>
      <pubDate>Wed, 12 Apr 2006 09:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973405#M418381</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-04-12T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973406#M418382</link>
      <description>Some time,&lt;BR /&gt;&lt;BR /&gt;kill -15 &lt;PID&gt; is better for that. &lt;BR /&gt;&lt;BR /&gt;Try that.&lt;BR /&gt;&lt;BR /&gt;else do a ps -ef |awk '{print $2} &amp;gt;/tmp/pids&lt;BR /&gt;for i in $(cat /tmp/pids)&lt;BR /&gt;do&lt;BR /&gt;kill -9/15 $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Chan&lt;/PID&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973406#M418382</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-04-12T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973407#M418383</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps -l -u bh&lt;BR /&gt;&lt;BR /&gt;Try killing the PPID before the PID if it is not 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise post the ps output&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Wed, 12 Apr 2006 09:37:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973407#M418383</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2006-04-12T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973408#M418384</link>
      <description>Is the parent PID always the same?&lt;BR /&gt;If so, kill it &amp;amp; it may take all it's children with it.&lt;BR /&gt;Just don't kill PID #1&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 12 Apr 2006 09:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973408#M418384</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-04-12T09:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973409#M418385</link>
      <description>Thanks for the prompt responses.&lt;BR /&gt;&lt;BR /&gt;It seems there are more than one or two parent processes.  When I try to locate &amp;amp; kill them, I seem to get nowhere.&lt;BR /&gt;&lt;BR /&gt;Please see the attached list using:&lt;BR /&gt;'ps -l -u bh'&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Wed, 12 Apr 2006 10:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973409#M418385</guid>
      <dc:creator>ITeam</dc:creator>
      <dc:date>2006-04-12T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973410#M418386</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it looks like someone wrote a script containing&lt;BR /&gt;a line&lt;BR /&gt;*&lt;BR /&gt;or something like that which matches itself and breaks your system.&lt;BR /&gt;&lt;BR /&gt;I would temp. move 'bash' to a different place,&lt;BR /&gt;try to kill the remaining processes and have a serious discussion with this user.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 12 Apr 2006 10:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973410#M418386</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-04-12T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973411#M418387</link>
      <description>Tried moving bash to another location &amp;amp; killed the pid spawned by pid: 1.  Checked &amp;amp; another one was spawned by pid: 1.  I could not removed the bash file outright as it was shown as in use.</description>
      <pubDate>Wed, 12 Apr 2006 11:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973411#M418387</guid>
      <dc:creator>ITeam</dc:creator>
      <dc:date>2006-04-12T11:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973412#M418388</link>
      <description>Okay let's try something a little different and hopefully all these processes share a common process group:&lt;BR /&gt;&lt;BR /&gt;Do a:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -ej | pg&lt;BR /&gt;&lt;BR /&gt;and note the PGID value for these runaway shells. Again, hopefully these bad boys share a common PGID (2nd column) or these processes use a small set of common PGID's:&lt;BR /&gt;&lt;BR /&gt;What you want to do is send a signal (via kill) to this process group. This is done&lt;BR /&gt;by rather than sending kill -PGID to the process group.&lt;BR /&gt;&lt;BR /&gt;For example if we want to send signal 11 (SIGSEGV) to add the members of PGID 3005 then "kill -11 -3005" would do that. Note that kill -11 is almost as deadly as kill -9 but does cleanup. Kill -ll is my "next to weapon of last resort".</description>
      <pubDate>Wed, 12 Apr 2006 11:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973412#M418388</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-04-12T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973413#M418389</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would definitly try this more than once and with different signals:&lt;BR /&gt;&lt;BR /&gt;kill `UNIX95=1 ps -u bh -C bash -o pid=`&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 12 Apr 2006 11:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973413#M418389</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-04-12T11:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973414#M418390</link>
      <description>To terminate all processes for a user, you can do the following-&lt;BR /&gt; &lt;BR /&gt;export UNIX95=1 ; ps -u rbadmin -o pid= | xargs -n1 kill -9&lt;BR /&gt; &lt;BR /&gt;This will get all the pids for a user and feed it to "xargs" who will execute a kill -9 on each of them.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 12 Apr 2006 14:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973414#M418390</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-04-12T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973415#M418391</link>
      <description>Those commands look like they will do the trick.  Unfortunately, it seems that I need to install a patch to enable use of the -o &amp;amp; -j for the ps command.  This will require a reboot which I need to avoid (today at least)!&lt;BR /&gt;&lt;BR /&gt;Is there any other way to see the PGID column?&lt;BR /&gt;&lt;BR /&gt;Also, Rodney: I am confused by the rbadmin part of the command you wrote.  What part of the command do I need to add the user details 'bh' to?&lt;BR /&gt;&lt;BR /&gt;Many thanks.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Thu, 13 Apr 2006 04:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973415#M418391</guid>
      <dc:creator>ITeam</dc:creator>
      <dc:date>2006-04-13T04:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973416#M418392</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;did you really call the 'ps' with UNIX95-environment set? If not, the option(s) will not be recognized as valid.&lt;BR /&gt;Call the ps-command(s) (without the 'kill'-part) exactly as noted!&lt;BR /&gt;&lt;BR /&gt;Another try: remove the execute-flag from 'bash'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 13 Apr 2006 04:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973416#M418392</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-04-13T04:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating multiple processes query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973417#M418393</link>
      <description>Problem resolved - thanks ever so much everyone!&lt;BR /&gt;&lt;BR /&gt;I used the command:&lt;BR /&gt;&lt;BR /&gt;export UNIX95=1&lt;BR /&gt;ps -u bh -o pid= | xargs -n1 kill -9&lt;BR /&gt;&lt;BR /&gt;Killed all the required processes.  Tried a kill &amp;amp; kill -11 first with no success.&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
      <pubDate>Thu, 13 Apr 2006 05:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminating-multiple-processes-query/m-p/4973417#M418393</guid>
      <dc:creator>ITeam</dc:creator>
      <dc:date>2006-04-13T05:21:12Z</dc:date>
    </item>
  </channel>
</rss>

