error message from kill


What is this stuff?

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


Hate these ads?



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.



My Unix and Linux Troubleshooting E-Book will show you how to solve tough system problems!










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.)










-
Google Friend Connect users can
comment on this page here


ad

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
122149 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.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://www.schewanick.com SCO Unix, Solaris, Linx (various), PHP, MySQL, Apache, uniBasic, dL4, Perl, System Administration and more....


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering



Twitter
  • Dec 4 07:16
    Being tired will cost me at Poker tonight but I don't see how I can squeeze in a nap.
  • Dec 4 04:06
    Wife had a nightmare at 2:00 AM; I never got back to sleep. Gave up at 4:00 and got up.









Change Congress