On 15:04 08 Sep 2003, Stuart Stephen <[EMAIL PROTECTED]> wrote: | | Thanks Ben, that worked. | | The script editing was pretty straight forward. I just changed the following | line "ps ax --width=1000 | grep "[j]ava -server com.stevie.ChatServer.Start" | | awk '{ system("kill " $1) }'" and added the -9 after the kill in awk.
Can I suggest that this is a very bad idea? There's a reason -9 is not the default: it's because -15 (TERM, the default) can be caught, which lets the target process do necessary cleanup (if any), such as removing temp files, removing .pid files etc etc. -9 is meant as a _last_ resort, after the process has proven intransigent. You _never_ use it as the _first_ attempt to shut something down. It's on par with pulling the power cord from your PC every night instead of doing a clean shutdown. Cheers, -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ Wouldn't it be great if the insurance company would fix your bike to the tune of $3300, then have an adjuster escort you and supervise while you inflict $3300 worth of non-insurable damage to his truck? - Dave Svoboda, [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list