<?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: Terminate process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568080#M227724</link>
    <description>thx Muthukumar's help ,&lt;BR /&gt;&lt;BR /&gt;may be my server have problem to run split , it pop the message "usage: kill [ -s signal | -p ] [ -a ] pid ..." , could suggest another simplier script ? thx&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Jun 2005 05:35:44 GMT</pubDate>
    <dc:creator>hangyu</dc:creator>
    <dc:date>2005-06-22T05:35:44Z</dc:date>
    <item>
      <title>Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568077#M227721</link>
      <description>We have a system user "oracle_usr" always run some process in the system , but sometimes , these processes will not stop automatically  until we terminate the process , can suggest the method how to terminate the process that is run by "oracle_usr" and run over 10 minutes ? thx</description>
      <pubDate>Tue, 21 Jun 2005 20:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568077#M227721</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-06-21T20:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568078#M227722</link>
      <description>Just determine the process id and then issue the kill -15 command (NOT kill -9) to terminate the process.&lt;BR /&gt; &lt;BR /&gt;It gets complicated if you want to do this automatically. There may be multiple processes, you wil have to verify you are killing the right process, etc,</description>
      <pubDate>Tue, 21 Jun 2005 22:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568078#M227722</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-06-21T22:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568079#M227723</link>
      <description>You can do it as,&lt;BR /&gt;&lt;BR /&gt;# ps -u oracle_usr | awk '!/PID/ { split($3,a,":");if (a[1]==10) { print $0 }}' &lt;BR /&gt;&lt;BR /&gt;To kill them then,&lt;BR /&gt;&lt;BR /&gt;# ps -u oracle_usr | awk '!/PID/ { split($3,a,":");if (a[1]==10) { print $1 }}' | xargs kill -9&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 00:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568079#M227723</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-22T00:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568080#M227724</link>
      <description>thx Muthukumar's help ,&lt;BR /&gt;&lt;BR /&gt;may be my server have problem to run split , it pop the message "usage: kill [ -s signal | -p ] [ -a ] pid ..." , could suggest another simplier script ? thx&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 05:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568080#M227724</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-06-22T05:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568081#M227725</link>
      <description>Ok ..&lt;BR /&gt;Another way of doing would like this:&lt;BR /&gt;1.&lt;BR /&gt;&lt;BR /&gt;# w&lt;BR /&gt;-bash-2.05b# w&lt;BR /&gt;  6:50am  up 1 day, 23:53,  2 users,  load average: 0.00, 0.00, 0.00&lt;BR /&gt;User     tty           login@  idle   JCPU   PCPU  what&lt;BR /&gt;oracle_usr     pts/ta        6:28am 23:59                -bash&lt;BR /&gt;root     pts/tb        6:50am                      w&lt;BR /&gt;&lt;BR /&gt;From the command above i know that oracle_usr is associated with terminal pts/ta&lt;BR /&gt;then do :&lt;BR /&gt;&lt;BR /&gt;2. &lt;BR /&gt;# ps -t pts/ta&lt;BR /&gt;-bash-2.05b# ps -tpts/ta&lt;BR /&gt;   PID TTY       TIME COMMAND&lt;BR /&gt;  6226 pts/ta    0:00 -bash&lt;BR /&gt;  6225 pts/ta    0:00 telnetd&lt;BR /&gt;-bash-2.05b#&lt;BR /&gt;This will display all the process associated with that user. Say i have to kill bash then:&lt;BR /&gt;3. &lt;BR /&gt;# kill -9 6226&lt;BR /&gt;&lt;BR /&gt;This should work.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 22 Jun 2005 05:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568081#M227725</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2005-06-22T05:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568082#M227726</link>
      <description>Try&lt;BR /&gt;&lt;BR /&gt;ps  -u oracle_user | grep -v PID | awk '{ split($3, a, ":"); if(a[1] &amp;gt; 10) print $1;}' | xargs kill -9</description>
      <pubDate>Wed, 22 Jun 2005 08:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminate-process/m-p/3568082#M227726</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-06-22T08:55:36Z</dc:date>
    </item>
  </channel>
</rss>

