> if [ "$notset" = "1" ] ; then > if ps h $pid>/dev/null 2>&1; then > # TERM first, then KILL if not dead > kill -TERM $pid > usleep 100000 > if ps h $pid >/dev/null 2>&1 ; then > sleep 1 > if ps h $pid >/dev/null 2>&1 ; then > sleep 3 > if ps h $pid >/dev/null 2>&1 ; then > kill -KILL $pid > fi > fi > fi > fi Yes, this seems like the proper way to do it. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
- [HACKERS] How to shoot yourself in the foot: kill -9 post... Tom Lane
- [HACKERS] Re: How to shoot yourself in the foot: kil... Thomas Swan
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Lamar Owen
- Re: [HACKERS] How to shoot yourself in the foot:... Tom Lane
- Re: [HACKERS] How to shoot yourself in the f... Bruce Momjian
- Re: [HACKERS] How to shoot yourself in the foot:... Bruce Momjian
- Re: [HACKERS] How to shoot yourself in the f... Tom Lane
- Re: [HACKERS] How to shoot yourself in t... Lamar Owen
- Re: [HACKERS] How to shoot yourself... Bruce Momjian
- Re: [HACKERS] How to shoot your... Lamar Owen
- Re: [HACKERS] How to shoot yourself... Tom Lane
- Re: [HACKERS] How to shoot your... Lamar Owen
- Re: [HACKERS] How to shoot ... Tom Lane
- Re: [HACKERS] How to shoot ... Lamar Owen
- Re: [HACKERS] How to shoot ... Tom Lane
- Re: [HACKERS] How to shoot ... Lamar Owen
- Re: [HACKERS] How to shoot ... Tom Lane
- Re: [HACKERS] How to shoot ... Bruce Momjian
- Re: [HACKERS] How to shoot ... Lamar Owen