Login  Register

Re: Linux kill all user process without own session

Posted by ErmanArslansOracleBlog on Nov 26, 2014; 6:21am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Linux-kill-all-user-process-without-own-session-tp132p133.html

are you connecting via root? I mean from root using su - youruser  ?

25 Kas 2014 21:52 tarihinde "Eren [via Erman Arslan's Oracle Forum]" <[hidden email]> yazdı:
Hi Erman,

How to kill all user process without kill the shell that is running the script?

I tried sth;

kill -9 `ps -ef |grep erenu|grep -v grep |grep -v $$ |awk '{print $2}'`

this one also kill my own shell,
I need to kill all process without kill my login session


If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/Linux-kill-all-user-process-without-own-session-tp132.html
To start a new topic under Linux, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML