<?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 the Process dynamically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246171#M330776</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As Dennis suggests, use the UNIX95 (XPG) behavior of 'ps' with '-C' to find the process you want.&lt;BR /&gt;&lt;BR /&gt;Finding a process with 'grep' can lead to false positives.  Using 'ps -C &lt;NAME&gt;' matches to the process's basename and is guaranteed not to yield false matches.&lt;BR /&gt;&lt;BR /&gt;Too, do NOT use 'kill -9' except as a very last resort.  A 'kill -9' can't be caught and hence your process will have no chance to cleanup temporary files and/or shared memory.&lt;BR /&gt;&lt;BR /&gt;Start with a 'kill -hup' then a 'kill -term' [the default] and then only as a last resort issue a 'kill -9'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;</description>
    <pubDate>Tue, 05 Aug 2008 12:44:47 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-08-05T12:44:47Z</dc:date>
    <item>
      <title>Kill the Process dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246167#M330772</link>
      <description>Hi Unix Gurus,&lt;BR /&gt;&lt;BR /&gt;I have sapdisp application, unfortunately this application doesnt have the utility to stop the application, every time i need to kill the process to stop this.&lt;BR /&gt;&lt;BR /&gt;So i need to make a script which can filter the PID of this application and kill the process dynamically. &lt;BR /&gt;&lt;BR /&gt;Please can any one help me on this....</description>
      <pubDate>Tue, 05 Aug 2008 06:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246167#M330772</guid>
      <dc:creator>UVA</dc:creator>
      <dc:date>2008-08-05T06:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Kill the Process dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246168#M330773</link>
      <description>Use ps:&lt;BR /&gt;&lt;BR /&gt;$ ps -ef | grep -v grep | grep syslog | awk '{print $2}'&lt;BR /&gt;963&lt;BR /&gt;$ ps -ef | grep 963&lt;BR /&gt;    root   963     1  0  Dec  3  ?         0:25 /usr/sbin/syslogd -D&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 05 Aug 2008 07:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246168#M330773</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-08-05T07:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Kill the Process dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246169#M330774</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '/sapdispdaemon/{ print "kill ",$2 }'|sh&lt;BR /&gt;&lt;BR /&gt;with -9:&lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '/sapdispdaemon/{ print "kill -9",$2 }'|sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds.</description>
      <pubDate>Tue, 05 Aug 2008 07:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246169#M330774</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-05T07:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Kill the Process dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246170#M330775</link>
      <description>You can use this to find and kill the process:&lt;BR /&gt;kill $(UNIX95=1 ps -C sapdispdaemon -opid=)&lt;BR /&gt;&lt;BR /&gt;You should test it first by adding an echo and then: ps -fp the-pid</description>
      <pubDate>Tue, 05 Aug 2008 12:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246170#M330775</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-05T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kill the Process dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246171#M330776</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As Dennis suggests, use the UNIX95 (XPG) behavior of 'ps' with '-C' to find the process you want.&lt;BR /&gt;&lt;BR /&gt;Finding a process with 'grep' can lead to false positives.  Using 'ps -C &lt;NAME&gt;' matches to the process's basename and is guaranteed not to yield false matches.&lt;BR /&gt;&lt;BR /&gt;Too, do NOT use 'kill -9' except as a very last resort.  A 'kill -9' can't be caught and hence your process will have no chance to cleanup temporary files and/or shared memory.&lt;BR /&gt;&lt;BR /&gt;Start with a 'kill -hup' then a 'kill -term' [the default] and then only as a last resort issue a 'kill -9'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-the-process-dynamically/m-p/4246171#M330776</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-05T12:44:47Z</dc:date>
    </item>
  </channel>
</rss>

