Heres what i'm trying to do. $proc=exec('ps aux | grep proc'); if ($proc != "") { echo "True"; } if ($proc == "") { echo "False"; } but some time's it show's the ps aux so I dont get a true reading. Anybody have a way that I might be able to extract this out of there to get a true reading to find out if the process is running?