If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Mon Sep 17 06:38:54 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: rja.carnegie@excite.com (Robert Carnegie)
Newsgroups: comp.unix.sco.misc
Subject: Re: Users Process still active after logging out
Date: 17 Sep 2001 03:06:23 -0700
Organization: http://groups.google.com/
Lines: 30
Message-ID: <f3f18bc0.0109170206.5c85bfa2@posting.google.com>
References: <9nqncg$2nd$1@uranium.btinternet.com> <3ba17fa5$0$330$8eec23a@newsreader.tycho.net> <3BA142F7.B214F069@att.net> <GJnn8B.1o2@wjv.com>
NNTP-Posting-Host: 62.253.249.253
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1000721183 1650 127.0.0.1 (17 Sep 2001 10:06:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 17 Sep 2001 10:06:23 GMT
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103486
bill@wjv.com (Bill Vermillion) wrote in message news:<GJnn8B.1o2@wjv.com>...
> In article <3BA142F7.B214F069@att.net>, Steve Fabac <smfabac@att.net> wrote:
>
> >I have just started writing the following script to run from cron
> >to kill the orphaned processes. It's still in testing (just logging now
> >looking for inappropriate processes listed in killidle.log) but when I
> >tried uncommenting the system( "kill " $2 ) command, it killed the
> >specified process.
>
> >My question is why system( "kill -15 " $2 ) results in a usage message
> >for kill? The "kill " $2 by itself worked but may be more severe than
> >I want. I'd prefer to run "kill -15 " $2 followed with a sleep and then
> >"kill -9 " $2 to cache any process that ignores the -15 signal.
>
> Actually the prefered order is typically is SIGTERM - aka 15 - a
> software-termination signal, then a SIGINT - aka 1 - interupt
> the program - before you perform a SIGKILL - aka 9 - terminate with
> extreme prejudice.
"kill" by default is "kill -15" which we all agree is preferred.
As to why an error message, evidently something is wrong when it
gets to the awk line "bob = system( "kill -15 " $2 )" but I can't
read awk. Is it possible that $2 is coming up empty sometimes?
"kill" and "kill -15" with no other parameters both get the message
"Bad argument count" on our OpenServer 5.0.6A.
You don't have a stray quote mark in the rest of the awk script?
Those have fascinating consequences. I don't think a separate
script, or function, or single-word alias for "kill -1", &c.,
is the way to go. (But feel free.)
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 1 | 2 | 2 | 149 | 1,102 |
/Bofcusm/505.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Add your comments
comment on this page here