Finding a process in *nix
| From: | Rob W. | Date: | Mon, 20 Mar 2006 08:22:05 +0000 |
| Subject: | Finding a process in *nix | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-41548@lists.php.net to get a copy of this message | ||
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?