<?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: kill script -- in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118262#M150258</link>
    <description>John, &lt;BR /&gt;&lt;BR /&gt;Good point on trap siglevel.. the items we were "killing" we wanted dead, dead.. I do believe adding the traps for additional levels will definitely add something to this script and reduce possible problems. &lt;BR /&gt;&lt;BR /&gt;Thanks.. &lt;BR /&gt;&lt;BR /&gt;Rex &lt;BR /&gt;</description>
    <pubDate>Thu, 13 Nov 2003 09:48:14 GMT</pubDate>
    <dc:creator>rmueller58</dc:creator>
    <dc:date>2003-11-13T09:48:14Z</dc:date>
    <item>
      <title>kill script --</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118258#M150254</link>
      <description>If you want to kill all processes related to a specific user we set up the following.. &lt;BR /&gt;&lt;BR /&gt;# killit /usr/local/bin/killit &lt;BR /&gt;# ESU#3 - Systems and Networking &lt;BR /&gt;# rcm(10/03/2001) &lt;BR /&gt;# this script was written to kill hung users &lt;BR /&gt;#&lt;BR /&gt;#==============================================&lt;BR /&gt;# BEGIN SCRIPT &lt;BR /&gt;ps -ef |grep -v -f /usr/local/bin/patt.1 |grep $1 &amp;gt; temp.1&lt;BR /&gt;kill -9 `awk '{print $2}' temp.1`&lt;BR /&gt;rm temp.1&lt;BR /&gt;# END SCRIPT &lt;BR /&gt;#==============================================&lt;BR /&gt;&lt;BR /&gt;note ** /usr/local/bin/patt.1 file contains patterns that you want to avoid. it allows you to exclude items that you want to avoid killing.. &lt;BR /&gt;&lt;BR /&gt;Hope it helps.. &lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2003 09:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118258#M150254</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2003-11-13T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: kill script --</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118259#M150255</link>
      <description>Why not something like this:&lt;BR /&gt;su &lt;USER&gt; -c kill -9 -1 ?&lt;BR /&gt;&lt;BR /&gt;Only make sure user is not root, otherwise it will kill a bit too much... ;-)&lt;/USER&gt;</description>
      <pubDate>Thu, 13 Nov 2003 09:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118259#M150255</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-13T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: kill script --</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118260#M150256</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Why do a 'kill -9'?  Why take a chance on hosing up your system with the most dangerous kill signal first?&lt;BR /&gt;&lt;BR /&gt;I'd suggest doing a 'kill -15' first, testing for the result, and then doing a 'kill -9' if that fails.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2003 09:45:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118260#M150256</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-11-13T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: kill script --</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118261#M150257</link>
      <description>Elmer, &lt;BR /&gt;&lt;BR /&gt;I was posting to another thread.. creating this new thread was a mistake.  the problem they were having was specific to certain processes.. &lt;BR /&gt;&lt;BR /&gt;I appreciate the script you posted I will add it to my library and will definitely use it.. It will come in handy. Thanks!! Rex &lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2003 09:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118261#M150257</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2003-11-13T09:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: kill script --</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118262#M150258</link>
      <description>John, &lt;BR /&gt;&lt;BR /&gt;Good point on trap siglevel.. the items we were "killing" we wanted dead, dead.. I do believe adding the traps for additional levels will definitely add something to this script and reduce possible problems. &lt;BR /&gt;&lt;BR /&gt;Thanks.. &lt;BR /&gt;&lt;BR /&gt;Rex &lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2003 09:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-script/m-p/3118262#M150258</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2003-11-13T09:48:14Z</dc:date>
    </item>
  </channel>
</rss>

