kill a process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ALL
 
I have to kill all processes which has owner as tester, If  there any specific command to that or i have to write script, if i read a PID into variable i cant kill the processes its not  getting killed below is the script.
 
 #!/bin/bash
ps -ef |grep bdctest | grep -v root | awk '{print $2}'>out

while read line
do
kill -9  $line ; echo $?
done
 
the process id is not moved to  the variable
 
Kaushal

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux