I'm trying to write a script that will take the output from running 'ps aux|grep httpd' and 'ps aux|grep named' and store them in an array. Then parse the lines in the arrays and make sure that apache and named are running. Any ideas? I'm stuck on how to read the lines and make sure the processes are running, and differentiating between a running process and my grep process.