<?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 KILL PROCESS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535022#M222182</link>
    <description>HI,&lt;BR /&gt;I need make a shell for kill two process for PID in my system but i dont know if the command awk is possible.&lt;BR /&gt;Do you have any example for this&lt;BR /&gt;&lt;BR /&gt;May you help me?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Apr 2005 11:50:28 GMT</pubDate>
    <dc:creator>Adrian_72</dc:creator>
    <dc:date>2005-04-29T11:50:28Z</dc:date>
    <item>
      <title>KILL PROCESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535022#M222182</link>
      <description>HI,&lt;BR /&gt;I need make a shell for kill two process for PID in my system but i dont know if the command awk is possible.&lt;BR /&gt;Do you have any example for this&lt;BR /&gt;&lt;BR /&gt;May you help me?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2005 11:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535022#M222182</guid>
      <dc:creator>Adrian_72</dc:creator>
      <dc:date>2005-04-29T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: KILL PROCESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535023#M222183</link>
      <description>Yes...&lt;BR /&gt;&lt;BR /&gt;kill `ps -ef |grep process |awk '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or use UNIX95:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.interex.org/pubcontent/enterprise/nov01/qabh1101.jsp" target="_blank"&gt;http://www.interex.org/pubcontent/enterprise/nov01/qabh1101.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Bill's Q&amp;amp;A from Interex...near the bottom is a script...&lt;BR /&gt;&lt;BR /&gt;Rgds..Geoff</description>
      <pubDate>Fri, 29 Apr 2005 12:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535023#M222183</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-29T12:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: KILL PROCESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535024#M222184</link>
      <description>One problem with:&lt;BR /&gt;&lt;BR /&gt;  kill `ps -ef |grep process |awk '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;is, this will kill all processes that has the word &lt;BR /&gt;"process" in it's "ps -ef" output. This means, if you &lt;BR /&gt;are trying to kill a process named "roo", you will end&lt;BR /&gt;of killing all the root processes :-)&lt;BR /&gt;&lt;BR /&gt;A better solution is:&lt;BR /&gt;&lt;BR /&gt;# kill $(ps -e | grep " process$" | awk '{print $1}')&lt;BR /&gt;&lt;BR /&gt;Note the black space in " process$" search string.&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2005 13:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535024#M222184</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-29T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: KILL PROCESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535025#M222185</link>
      <description>Actually, there is no better solution than to let ps find your processes by name. ps and grep is a very unstable way to locate processes by name because grep does not know where the process name is located and does a simple string match. The UNIX95 option will not only enable the -C option but also allow you to show just the fields you need for your script.&lt;BR /&gt; &lt;BR /&gt;But we need additional information. Do you know the names of the two processes? Are these names the same or different? Will there always be exactly two of these processes or will there be one or many more?</description>
      <pubDate>Sat, 30 Apr 2005 13:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kill-process/m-p/3535025#M222185</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-04-30T13:32:37Z</dc:date>
    </item>
  </channel>
</rss>

