Hi ,
I have a file like this
parentid process id
45 3456
1 7898
45 7890
1 6789
45 7597
now i need to loop through this and if parentid != 45 , then i ned to kill this process.
How to go through this is a problem.
what i thought is this--
while read line
do
if [ parentid -ne 45 ];
then
kill -9 processid
fi
done
Thanks