<?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: Killing multiple processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026824#M909877</link>
    <description>The attached script might help.  It is quite powerful, use it wisely.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 17 Jul 2003 19:09:25 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-07-17T19:09:25Z</dc:date>
    <item>
      <title>Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026823#M909876</link>
      <description>I have a script that loops which sends out constant processes called "filesystem alert" which is the name of my script. How do i go about killing all processes running that are named filesystem alert? This is pretty urgent, thanks to anybody that can help!!! &lt;BR /&gt;&lt;BR /&gt;Kyle</description>
      <pubDate>Thu, 17 Jul 2003 19:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026823#M909876</guid>
      <dc:creator>Kyle D. Harris</dc:creator>
      <dc:date>2003-07-17T19:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026824#M909877</link>
      <description>The attached script might help.  It is quite powerful, use it wisely.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 17 Jul 2003 19:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026824#M909877</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-17T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026825#M909878</link>
      <description>ps -ef | grep filesystem| awk '{print $2}' &amp;gt; pids&lt;BR /&gt;&lt;BR /&gt;then vi the file pids to put kill -9&lt;BR /&gt;(or whatever) at the begining of every line&lt;BR /&gt;&lt;BR /&gt;:%s/^/kill -9 /&lt;BR /&gt;&lt;BR /&gt;make it exacutable&lt;BR /&gt;&lt;BR /&gt;chmod 775 pids&lt;BR /&gt;&lt;BR /&gt;then run it&lt;BR /&gt;&lt;BR /&gt;./pids&lt;BR /&gt;&lt;BR /&gt;Then don't run that script again :)</description>
      <pubDate>Thu, 17 Jul 2003 19:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026825#M909878</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-07-17T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026826#M909879</link>
      <description>Hi Kyle,&lt;BR /&gt;&lt;BR /&gt;The safest, but not easiest or fastest way, is to determine all the PIDS by&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -i "filesystem alert"&lt;BR /&gt;&lt;BR /&gt;Then&lt;BR /&gt;&lt;BR /&gt;kill PID(s)&lt;BR /&gt;&lt;BR /&gt;So let's say that PIDs 1065 6544 8732 1208 are all "filesystem alert" PIDs.&lt;BR /&gt;&lt;BR /&gt;kill 1065 6544 8732 1208&lt;BR /&gt;&lt;BR /&gt;I don't like to do "mass" kills via a script or one-liner unless I'm 100% sure the PIDs will all &amp;amp; always be correct. You kill the wrong PID &amp;amp; you can really mess up a system.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 17 Jul 2003 19:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026826#M909879</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-07-17T19:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026827#M909880</link>
      <description>Hi Kyle:&lt;BR /&gt;&lt;BR /&gt;SWIth rgard to the 'kill' avoid using a 'kill -9' if at all possible!  Use it only as a last resort.  'kil -9' cang't be caught and thus gives a process no chance to cleanup files and remove shared memory segments.&lt;BR /&gt;&lt;BR /&gt;Start with a simple 'kill'.  If that doesn't work, try again with 'kill -hup'.  As a last resort (only) issue 'kill -9'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Jul 2003 19:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026827#M909880</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-07-17T19:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Killing multiple processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026828#M909881</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;ps -ef | grep "filesystem alert" | awk '{print $2}' | xargs kill&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Thu, 17 Jul 2003 19:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-multiple-processes/m-p/3026828#M909881</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-17T19:34:27Z</dc:date>
    </item>
  </channel>
</rss>

