Hi Managers, Thanks to Attila to reminding me about the xargs. Working solution: ps -ef |grep pattern |grep -v grep | awk ' {print $2}' | xargs kill >/dev/null Thanks to others also for taking time to reply. PS: pgrep and grep -v doesn't work here. Cheers Santhakumar _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Fri Aug 8 02:43:01 2003
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:17 EST