Login  Register

Linux kill all user process without own session

Posted by Eren on Nov 25, 2014; 7:45pm
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Linux-kill-all-user-process-without-own-session-tp132.html

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