Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class DaemonRunner{
- public static function findPID($query) {
- return exec("ps -aux | egrep '" . $query . "' | awk 'NR==1{print $2}'", $op);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement