Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'shell script to renice Classic' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
shell script to renice Classic
Authored by: Anonymous on Dec 29, '00 03:33:59PM

I wrote a simple shell script that does this for you:

============= begin ===============

set -- `ps -x -o pid,command | egrep ' (Classic|TruBlueEnvironme)$'`

while [ $# -gt 0 ]
echo "renice +15 $1"
shift; shift

============= end ===============

[ Reply to This | # ]
shell script to renice Classic
Authored by: bozhe_moy on Dec 19, '01 04:09:11PM

This script doesn't work on my system. It finds PID correctly but just
produces the echo of the command like renice +15 301 and nothing happens. Give me prompt back but it doesn't execute anything.
What is wrong?

Ia lso had to use ps -xc instead of ps -x isnce it produces long paths
for porcesses

[ Reply to This | # ]