
A. Pagaltzis wrote:
* Perry Lorier <perry(a)coders.net> [2004-04-05 05:09]:
fuser -9 -k -v -m /mnt/nfs
will send everything that is using /mnt/nfs deadly sig 9 :)
ObCaveat: you should not send SIGKILL unless the process refuses to react to friendlier signals. To quote the venerable Randal Schwartz:
| No no no. Don't use kill -9. | | It doesn't give the process a chance to cleanly: | | 1) shut down socket connections | | 2) clean up temp files | | 3) inform its children that it is going away | | 4) reset its terminal characteristics | | and so on and so on and so on. | | Generally, send 15, and wait a second or two, and if that | doesn't work, send 2, and if that doesn't work, send 1. If | that doesn't, REMOVE THE BINARY because the program is badly | behaved! | | Don't use kill -9. Don't bring out the combine harvester just | to tidy up the flower pot.
I was about to ask if there was a command that does all that automatically for users who don't care (or wouldn't understand) about all that but just need to stop an errant program but then I remembered ksysguard. I wonder how the kill button in ksysguard does it? g -- Glenn Ramsey <glenn(a)componic.co.nz> 07 8627077 http://www.componic.co.nz