On Tue, Sep 09, 2003 at 09:30:54PM +0200, Mariano Kamp wrote:
| Is there anyway, but a script, to mass renice process with some
| shared characteristics like the command?
What's wrong with a script?
for pid in `ps aux | awk '/foo/ {print $2}'` ; do renice 19 $pid ; done
or (since the renice command will accept multiple pids)
renice 19 `ps aux | awk '/foo/ {print $2}'`
For tasks like this, tools like grep, sed, and awk are just what you
need for automation.
-D
--
The crucible for silver and the furnace for gold,
but the Lord tests the heart.
Proverbs 17:3
http://dman13.dyndns.org/~dman/
Attachment:
pgpuM1myGvta1.pgp
Description: PGP signature