Finding a process in *nix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux