<?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 process in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107812#M63200</link>
    <description>&amp;gt;I use the script in linux&lt;BR /&gt;&lt;BR /&gt;Since this is linux specific, you should have created a thread in that forum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it may be kill its current process before kill other process but other process is still in the system, so can advise how to force the user can kill all process at the same time?&lt;BR /&gt;&lt;BR /&gt;As I mentioned the first time, use nohup:&lt;BR /&gt;$ nohup your_script &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;(If you don't redirect the output, it will be placed in nohup.out.)</description>
    <pubDate>Tue, 27 Nov 2007 05:13:45 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-11-27T05:13:45Z</dc:date>
    <item>
      <title>kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107807#M63195</link>
      <description>I have a script ( run by user ) that can find some user dead process ( like below ) , then another script will kill all these process, however , I found that one of these process is the user self login process ( pid : 58741 ) , therefore , when the script try to kill these dead process , it may be kill the user login process , if it is the case , then the user will logout and DO NOT kill other process ( of course , the user is logged out , all user's command will be stopped ) , can advise if I want to make sure it can kill ALL process , what can I do ? thx &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;58741  &amp;lt;-- the user login process&lt;BR /&gt;82587&lt;BR /&gt;58412&lt;BR /&gt;47521&lt;BR /&gt;87934&lt;BR /&gt;25462&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Nov 2007 22:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107807#M63195</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-26T22:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107808#M63196</link>
      <description>Do you want it to kill the "user login process"?  Or skip that and kill the rest.&lt;BR /&gt;&lt;BR /&gt;If the former, you may need to use nohup to prevent the killing process from dying.&lt;BR /&gt;If the latter, you need to filter out that specific process.</description>
      <pubDate>Mon, 26 Nov 2007 23:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107808#M63196</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-26T23:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107809#M63197</link>
      <description>Hi,&lt;BR /&gt;Can you post the script ,  how u r finding that these are the dead process????&lt;BR /&gt;if u are doin some grep...&lt;BR /&gt;why u using two scripts???&lt;BR /&gt;ps -ef|grep &amp;lt;&amp;gt;|awk ....|xargs kill&lt;BR /&gt;&lt;BR /&gt;may help!!!1&lt;BR /&gt;More infomation is needed.&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
      <pubDate>Mon, 26 Nov 2007 23:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107809#M63197</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2007-11-26T23:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107810#M63198</link>
      <description>The problem is a little confusing. If the script that is supposed to report 'dead' processes reports an 'active' user login process, then something needs to be corrected in the script itself.</description>
      <pubDate>Mon, 26 Nov 2007 23:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107810#M63198</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2007-11-26T23:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107811#M63199</link>
      <description>thx replies, &lt;BR /&gt;&lt;BR /&gt;I would like to clearly state what I want , I use the script in linux , in linux , there is a path /proc , that have all user process (as below) , I have a script to kill this process by user themself , but when the user kill its process , it may be kill its current process before kill other process , then the user have logged out but other process is still in the system , so can advise how to force the user can kill all process at the same time ? thx&lt;BR /&gt;&lt;BR /&gt;cd /proc&lt;BR /&gt;ll |grep test_user&lt;BR /&gt;dr-xr-xr-x    3 test_user    EDP            0 Nov 27 17:20 10437&lt;BR /&gt;dr-xr-xr-x    3 test_user    EDP            0 Nov 27 17:20 10587</description>
      <pubDate>Tue, 27 Nov 2007 04:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107811#M63199</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-27T04:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107812#M63200</link>
      <description>&amp;gt;I use the script in linux&lt;BR /&gt;&lt;BR /&gt;Since this is linux specific, you should have created a thread in that forum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it may be kill its current process before kill other process but other process is still in the system, so can advise how to force the user can kill all process at the same time?&lt;BR /&gt;&lt;BR /&gt;As I mentioned the first time, use nohup:&lt;BR /&gt;$ nohup your_script &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;(If you don't redirect the output, it will be placed in nohup.out.)</description>
      <pubDate>Tue, 27 Nov 2007 05:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107812#M63200</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-27T05:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: kill process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107813#M63201</link>
      <description>Don't use '/proc' like that.  There are better ways.&lt;BR /&gt;&lt;BR /&gt;If you are that user, the 'ps -u'.&lt;BR /&gt;&lt;BR /&gt;If you aren't that user, then 'ps -U &lt;USER&gt;' instead.&lt;/USER&gt;</description>
      <pubDate>Wed, 28 Nov 2007 04:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-process/m-p/4107813#M63201</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-11-28T04:30:40Z</dc:date>
    </item>
  </channel>
</rss>

