<?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 processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059349#M491271</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have listed the processes using the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep aceitala | more&lt;/LI-CODE&gt;&lt;P&gt;I wonder if this command will work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep report | awk '{print $10;}' | grep aceitala |xargs kill&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 09:21:13 GMT</pubDate>
    <dc:creator>NDO</dc:creator>
    <dc:date>2019-08-21T09:21:13Z</dc:date>
    <item>
      <title>killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059224#M491267</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bunch of processes, that I have to kill them, :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;report 22523     1  0  Oct  4  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report 22526 22523  0  Oct  4  ?         0:00 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 29079 29057  0  Oct  2  ?        28:09 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 24838 24836  0  Oct 10  ?        28:38 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 23313 23258  0  Oct 17  ?        28:16 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report  5875  5872  0  Oct  8  ?         0:00 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 26097     1  0  Oct  5  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  5235     1  0  Oct 20  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  2879  2878  0  Oct 24  ?         0:00 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report  4770     1  0  Oct  6  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  6240     1  0  Sep 28  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  2881  2879  0  Oct 24  ?        27:49 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 13433 13429  0  Oct 13  ?        28:52 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report  5238  5235  0  Oct 20  ?         0:00 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report  3072     1  0  Oct 12  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  5872     1  0  Oct  8  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh
  report  5926  5875  0  Oct  8  ?        28:24 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report  5264  5238  0  Oct 20  ?        27:53 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 22764 22761  0  Oct 15  ?         0:00 /usr/bin/ksh /home/report/aceitala/aceitala_load.ksh
  report 25189     1  0  Oct 22  ?         0:00 sh -c /home/report/aceitala/aceitala_load.ksh&lt;/LI-CODE&gt;&lt;P&gt;How can I kill them all once, instead of one by one?&lt;/P&gt;&lt;P&gt;all of them have a name in common, but PID is different.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 09:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059224#M491267</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2019-08-20T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059303#M491268</link>
      <description>&lt;P&gt;&amp;gt; How can I kill them all once, instead of one by one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you mean at exactly the same time, or using one command to do them&lt;BR /&gt;all, or what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Use a "kill" command with a list of the PID values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; man kill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How did you produce that report, some kind of "ps" command?&amp;nbsp; Are you&lt;BR /&gt;really asking how to extract the PID values from the "ps" output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Possibly interesting:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ echo '  report  5872     1  0 ' | sed -e 's/ *[^ ]* *\([^ ]*\) .*/\1/'
5872&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 05:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059303#M491268</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2019-08-21T05:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059332#M491269</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;all of them have a name in common, but PID is different.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How did you get the list of processes ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;SPAN&gt;How can I stop them all once, instead of one by one?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can get PID of procsses from "ps -ef" command and then use a script to terminate the PIDs.&lt;/P&gt;
&lt;P&gt;Please check following discussion links on similar query :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hpe.com/t5/System-Administration/how-to-kill-all-the-process/td-p/4574416#.XVzrJiMzY2w" target="_blank" rel="noopener"&gt;https://community.hpe.com/t5/System-Administration/how-to-kill-all-the-process/td-p/4574416#.XVzrJiMzY2w&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/how-to-kill-all-process-by-a-script/td-p/4661960#.XVzriCMzY2w" target="_blank" rel="noopener"&gt;https://community.hpe.com/t5/Languages-and-Scripting/how-to-kill-all-process-by-a-script/td-p/4661960#.XVzriCMzY2w&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 11:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059332#M491269</guid>
      <dc:creator>MK_J</dc:creator>
      <dc:date>2022-06-29T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059347#M491270</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to use one command to kill them all.&lt;/P&gt;&lt;P&gt;What I have done so far is to use the kill command plus the PID like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;kill 11458 4385 5245 21619 23436&lt;/LI-CODE&gt;&lt;P&gt;but there are so many of them&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 09:13:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059347#M491270</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2019-08-21T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059349#M491271</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have listed the processes using the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep aceitala | more&lt;/LI-CODE&gt;&lt;P&gt;I wonder if this command will work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep report | awk '{print $10;}' | grep aceitala |xargs kill&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 09:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059349#M491271</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2019-08-21T09:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059487#M491272</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You might find it easier to use 'ps' in the 'UNIX Standard' mode:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have listed the processes using the following command:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep aceitala | more&lt;/LI-CODE&gt;&lt;P&gt;(can't quote code block?)&lt;/P&gt;&lt;P&gt;... like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ host ~ ] $ ps -aef | grep cimprovagt
    root  2046  2035  0  Jan  7  ?         1:02 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXSASIndicationProviderModule
    root  2045  2035  0  Jan  7  ?         0:21 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXSASNativeIndicationProviderModule
    root  2044  2035  0  Jan  7  ?         1:02 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXRAIDSAIndicationProviderModule
    root  2043  2035  0  Jan  7  ?         0:21 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXRAIDSANativeIndicationProviderModule
    root  2042  2035  0  Jan  7  ?         0:06 /opt/wbem/lbin/cimprovagt 0 4 9 root EMSHAProviderModule
    root  2037  2035  0  Jan  7  ?        259:51 /opt/wbem/lbin/cimprovagt 0 4 9 root SFMProviderModule
    root  2041  2035  0  Jan  7  ?        19:23 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXLANIndicationProviderModule
    root  2047  2035  0  Jan  7  ?         1:23 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXFCIndicationProviderModule
    root  2104  2035  0  Jan  7  ?         1:05 /opt/wbem/lbin/cimprovagt 0 4 8 root HPUXLANProviderModule
    root  2052  2035  0  Jan  7  ?         0:06 /opt/wbem/lbin/cimprovagt 0 4 9 root SGProvidersModule
    root  2051  2035  0  Jan  7  ?         1:16 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXStorageNativeProviderModule
    root  2050  2035  0  Jan  7  ?        11:40 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXStorageIndicationProviderModule
    root  2049  2035  0  Jan  7  ?        3070:24 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXIOTreeIndicationProviderModule
    root  2048  2035  0  Jan  7  ?         0:22 /opt/wbem/lbin/cimprovagt 0 4 9 root HPUXFCNativeIndicationProviderModule
    user 16346 15263  0 14:28:37 pts/0     0:00 grep cimprovagt
[ host ~ ] $ env UNIX95=1 ps -C cimprovagt -o pid
  PID
 2046
 2045
 2044
 2043
 2042
 2037
 2041
 2047
 2104
 2052
 2051
 2050
 2049
 2048&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I wonder if this command will work:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep report | awk '{print $10;}' | grep aceitala |xargs kill&lt;/LI-CODE&gt;&lt;P&gt;could be a little more precise with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ host ~ ] $ env UNIX95=1 ps -C cimprovagt -o pid | grep -v PID | xargs kill
kill: 2046: permission denied
kill: 2045: permission denied
kill: 2044: permission denied
kill: 2043: permission denied
kill: 2042: permission denied
kill: 2037: permission denied
kill: 2041: permission denied
kill: 2047: permission denied
kill: 2104: permission denied
kill: 2052: permission denied
kill: 2051: permission denied
kill: 2050: permission denied
kill: 2049: permission denied
kill: 2048: permission denied&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059487#M491272</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2019-08-22T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059490#M491273</link>
      <description>&lt;P&gt;Your command will list all the processes owned by user cimprovagt, but I just to want to delete a partcular processes of user report not all of them, that is why I use the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ps -ef | grep aceitala | more&lt;/LI-CODE&gt;&lt;P&gt;because I want to kill alll processes that involve "aceitala" string from user report.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059490#M491273</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2019-08-22T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: killing processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059537#M491274</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/863806"&gt;@NDO&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Your command will list all the processes owned by user cimprovagt&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;no&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-processes/m-p/7059537#M491274</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2019-08-22T15:13:22Z</dc:date>
    </item>
  </channel>
</rss>

