help for a script

From: Gerard Henry (Gerard.Henry@cmi.univ-mrs.fr)
Date: Tue Apr 22 2003 - 12:56:59 EDT


hello,
on my solaris 8 server, netscape often consumes a lot of cpu and i have to kill it .
I try to write a little script, based on this line:
CPU=`prstat 1 1 | grep netscape | awk '{print $9}' |awk -F% '{print $1}'`
this line read percentage of CPU, and after i have to kill the right process, not only 'pkill netscape'
Does anybody already make it? is it a good idea to use prstat, i think it is not portable
thanks in advance,

-- 
Gerard HENRY
LATP UMR 6632
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:14 EDT