Skip to content

Commit 16a1c9e

Browse files
committed
Added reniceall
1 parent e230cdf commit 16a1c9e

File tree

5 files changed

+481
-0
lines changed

5 files changed

+481
-0
lines changed

reniceall/README

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
reniceall 0.1 Feb 02 2002
2+
--------------------------
3+
4+
5+
ABOUT RENICEALL
6+
7+
reniceall is a simple shell script that calls pidof to get
8+
a list of all processes sharing a given program name, then
9+
calls renice on each of them to change their nice value.
10+
11+
This is basically the same as what killall does in comparison
12+
to kill.
13+
14+
So what you can do would look like this:
15+
16+
[esser@dual esser]$ reniceall 5 bash
17+
8490: old priority 0, new priority: 5
18+
2059: old priority 0, new priority: 5
19+
2041: old priority 0, new priority: 5
20+
2023: old priority 0, new priority: 5
21+
22+
If you happen to forget the order of the arguments, call it
23+
with -h or --help:
24+
25+
[esser@dual esser]$ reniceall -h
26+
reniceall renices several processes with same name.
27+
Syntax: reniceall nicevalue name
28+
29+
When called as root, you can set negative values, just the
30+
same way you could do that manually with renice.
31+
32+
33+
INSTALLING
34+
35+
To install the tool, simply untar the archive and call the
36+
install.sh script. Note: The install script will not check
37+
if you have pidof, but the reniceall script will not work if
38+
it isn't available.
39+
40+
41+
CREDITS
42+
43+
There's a man page that I created with manedit,
44+
http://wolfpack.twu.net/ManEdit/
45+
46+
47+
COPYRIGHT
48+
49+
(c) Copyright 2002 Hans-Georg E�er <h.g.esser@gmx.de>
50+
Since it has become standard, this script is GPL'd (see
51+
license file gpl.txt).
52+
If reniceall blows away your system (which seems unlikely),
53+
I claim to be kept free from any responsibility.
54+
(See section "NO WARRANTY" in gpl.txt)
55+
56+
57+
TELL ME
58+
59+
If _anyone_ ever uses this script, would you tell me?
60+
Have fun :)

0 commit comments

Comments
 (0)