kill all – killing all the process of certain user under Solaris

This is a quick post on kill based on the trial and discussion when David, Daniel and myself were trying to kill all the abnormal process of Daniel under a Solaris 8 Ultra-80 server. The most tough thing was the evil father would fork his evil child, who would fork his own evil son very soon, and then evil’s evil’s evil’s…into a never-gonna-stop evil forking recursion, which would exhaust the resource of this machine.  Currently, only item 1 could counterstrike the recursive evil forking case mentioned above. Though some other traditional SHELL ways are listed as well, none of them would work for this case but only for static case.

kill -9 -1

kill `ps -fu user_name | awk ‘NR != 1 {print $2}’`

pkill -U user_name

killall process_name (Linux)

kill -9 `ps -ef | grep process_name | grep -v grep | awk ‘{print $2}’`

About daveti

Interested in kernel hacking, compilers, machine learning and guitars.
This entry was posted in Programming and tagged , , . Bookmark the permalink.

1 Response to kill all – killing all the process of certain user under Solaris

  1. Herb Stouall says:

    A pity, but I disagree with this unique information. I do get pleasure from your particular blogging site though and may continue to keep coming again for updates.

Leave a Reply to Herb Stouall Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.