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 renice_classic.sh ===============
#!/bin/sh

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

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

============= end renice_classic.sh ===============



[ 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 | # ]