On Sun, Jul 04, 2010 at 01:47:30PM +0000, Debian bug at v.nix.is wrote: > On Wed, Jun 30, 2010 at 20:15, Christian Garbs <mi...@cgarbs.de> wrote:
> > To sum it up: > > > > * ps -e should be chosen automatically when you are root > > * changing other users' processes as non-root should throw errors > > * for now I'd like to stick with ps(1) > > > > Could you please confirm the first two? > cgarbs.de's httpd was returning connection refused when this is > written. So I couldn't test your new version. But the above looks > good, and does what I want. Unfortunately, I'm currently having some hosting related trouble... > I just wanted to point out that if the ps format was completely > customizable it might be easier for people who like a ps invocation > that doesn't start with "ps H -eo lwp," to use the program, > e.g. someone that wants to write regexes against "ps auxf". "ps auxf" would not work, the "-o lwp," is needed because the script needs to know the PID of the target process, so it has to be the first column in the output. When the PID is missing (or moved to some other column) I'm running into parsing trouble. > But that's at your discretion, this works for me and solves the bug, > thanks. Great, then I'll close this bug with the next release which will happen when my server is online again. The next reniced version will also include an option to control OOM killer behaviour via /proc/$PID/oom_adj Regards Christian -- ....Christian.Garbs.....................................http://www.cgarbs.de Schlimmer sind die, welche ALLES GROSS SCHREIBEN. Und da gibt's sogar PROFESSOREN. Ich musste neulich ein GROSS GESCHRIEBENES SKRIPT über Areosolteilchen lesen, au weia! (Stefan Heimers in dcoul.misc)
signature.asc
Description: Digital signature