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