Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Auto-renicer

by RMGir (Prior)
on Jul 25, 2002 at 17:52 UTC ( [id://185260]=note: print w/replies, xml ) Need Help??


in reply to Auto-renicer

I'm not clear on how
sub get_procs { # we don't consider root-owned processes either. return split(/\n/, `$ps | sed 's/^ *//'`); }
would avoid root-owned processes?

I guess that explains why I'm not hanging out on sedmonks.org :)
--
Mike

Replies are listed 'Best First'.
Re: Re: Auto-renicer
by hawson (Monk) on Jul 26, 2002 at 19:09 UTC
    That line, to be fair, doesn't deal with root-owned procs. Root processes are skipped in the next if ($user eq "root") line earlier in the code. That's an old comment. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://185260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found