[Sunhelp] Problem on creating a script to kill processes.

Ramji Venkateswaran rv at gxn.net
Thu Jan 20 14:11:36 CST 2000


>>>>> "Walte" == Walter Trush <wtrush at uswest.com> writes:

    Walter> Miguel, try

    Walter> for input in `ps -ef | grep "name" |awk '{print $2}` do kill -9
    Walter> $input done

Or even:

ps -efl | grep process_name | awk '{print $2}' | xargs kill -SIG


-- 
Ramji Venkateswaran		   			   GX Networks 






More information about the SunHELP mailing list