Here's a script we use at out site for identifying "haywire" processes. It's written for a Solaris 2.x based system, so you may need to tweak it for HP-UX.<br><FONT FACE=monospace><br>#!/bin/sh<br>#<br># Show processes with greater than 0.99% processor usage.<br><br># Weed out processes with 0.xx% processor usage.<br>PS='ps -ef -o user -o pid -o pcpu -o ppid -o comm ¦ egrep -v " 0\.0¦[0-9] 0\."'<br><br>if [ "X$1" = "X-r" ]<br>then<br> # Refresh option selected.<br> while true<br> do<br> ps -ef -o user -o pid -o pcpu -o tty -o ppid -o comm ¦ egrep -v <br>" 0\.0¦[0-9] 0\."<br> # ${PS}<br> sleep 5<br> clear<br> done<br>else<br><br> # Weed out processes with 0.xx% processor usage.<br> ps -ef -o user -o pid -o pcpu -o tty -o ppid -o comm ¦ egrep -v " 0\.0¦[<br>0-9] 0\."<br>fi<br></font><br><br>If you run the script with a "-r" argument, it will keep repeating at 5 second intervals until you press ^C to interrupt it. (Or whatever your interrupt key is.)<br><br>Hope it helps. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits