[Sunhelp] kill script

Brian Scanlan singer at redbrick.dcu.ie
Tue Aug 15 03:47:07 CDT 2000


On Tue, Aug 15, 2000 at 09:13:32AM +0000, Ben Dougherty wrote:
> Does anyone have a kill script which will kill all the processes for a user?

Run "kill -9 -1" as the user. If you're looking to kill specific processes,
the "pgrep" and "pkill" commands that ship with Solaris 7 and later might be
of use. Otherwise, something along these lines might be of use.

ps -u user | grep process | awk '{print $1}' | xargs kill 

Brian.
-- 
Columnated ruins domino,
Canvas the town and brush the backdrop.
Are you sleeping?





More information about the SunHELP mailing list