I have an intermittent problem whereby a process respawns itself and causes the system to lock up. Can someone please tell me how to monitor this process in a ksh script. I'm thinking I could use ps -ef|grep <processname>|wc -l. If the number returned by this command exceeds 175 I want to be paged. How can I write a korn shell script to accomplish this?????? Thanks in advance