Quick question about killing process

From: SANTHAKUMAR Siva (siva.santhakumar@hsntech.com)
Date: Thu Aug 07 2003 - 23:15:18 EDT


Hi Managers,

When I run the following on the command line it works fine:

for mypid in `ps -ef |grep pattern |grep -v grep | awk ' {print $2}' ` ;do
 kill $mypid
done

But when I run it in a script it doesn't work. I have tried it with putting
a sleep inside without any success.

Thanks
Santhakumar
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:54 EDT