note 125729 added to function.proc-terminate
| From: | smcbride at msn dot com | Date: | Wed, 27 Jan 2021 17:35:19 +0000 |
| Subject: | note 125729 added to function.proc-terminate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216241@lists.php.net to get a copy of this message | ||
Just a small note so people don't have to look elsewhere
To get the list of processes or find a process by name, use
$proclist = shell_exec('ps -elF') for linux
$proclist = shell_exec('tasklist') for windows
After that, you can use php normal parsing functions to get the pid
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.166 (proxied: 166.216.158.43)
----
Manual Page -- http://php.net/manual/en/function.proc-terminate.php
Edit -- https://master.php.net/note/edit/125729
Del: integrated -- https://master.php.net/note/delete/125729/integrated
Del: useless -- https://master.php.net/note/delete/125729/useless
Del: bad code -- https://master.php.net/note/delete/125729/bad+code
Del: spam -- https://master.php.net/note/delete/125729/spam
Del: non-english -- https://master.php.net/note/delete/125729/non-english
Del: in docs -- https://master.php.net/note/delete/125729/in+docs
Del: other reasons-- https://master.php.net/note/delete/125729
Reject -- https://master.php.net/note/reject/125729
Search -- https://master.php.net/manage/user-notes.php