Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 18:40:46 -0700
From:      Samuel J.Greear <dragonk@evilcode.net>
To:        "Peter Avalos" <pavalos@theshell.com>, <FreeBSD-standards@freebsd.org>
Subject:   Re: renice
Message-ID:  <20011212014429.2775220F31@ns1.infowest.com>
In-Reply-To: <001201c182ac$7357e350$0401a8c0@tequila>
References:  <001201c182ac$7357e350$0401a8c0@tequila>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 December 2001 06:29 pm, Peter Avalos wrote:
> I was looking into adding the -n option to renice, but I got a little
> confused when I read about it. Is renice supposed to only accept the -n
> option, or is it supposed to be compatible with how it's done now, and
> have -n just be an additional option?
>
> Reference:
> http://www.opengroup.org/onlinepubs/7908799/xcu/renice.html
>
> If someone could clear that up for me, I'll go ahead and volunteer to
> implement it.
>
> --Pete
>

http://cvs.evilbsd.org/cgi-bin/cvsweb.cgi/evilbsd/usr.bin/renice/renice.c?rev=1.2

I've done this.   It's compatible with the current behavior, as well as
accepting -n (just strips the -n if it exists).    I also added an -a option,
which allows you to renice multiple processes matching a name,
similar to killall.

bash-2.05$ ./renice -n 10 [ -a ] bash
6583: old priority 0, new priority 10
4849: old priority 0, new priority 10
4145: old priority 0, new priority 10

for example...     But I wanted to do a little work to the manpage yet...
I've also done several others..  nice, wc, uudecode, and had planned on
doing several more.

Sam


>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS/MU d-(+) s:+> a-- C++$ UBL++++$ P+ L- E- W+(--) N+ o? K? w(++) O M-
> V- PS+ PE++ Y+ PGP t+ 5 X- R- tv+ b++ DI- D---- G e++ h-- r++ y++
> ------END GEEK CODE BLOCK------
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-standards" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212014429.2775220F31>