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.
1.
kill -9 -1
2.
kill `ps -fu user_name | awk ‘NR != 1 {print $2}’`
3.
pkill -U user_name
4.
killall process_name (Linux)
5.
kill -9 `ps -ef | grep process_name | grep -v grep | awk ‘{print $2}’`
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.