Skip to content

Commit 996d6aa

Browse files
committed
Update test code and readme.md
1 parent 77f231d commit 996d6aa

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ if($process){
6666
[cpu_time] => 0:00:00
6767
[window_title] => N/A
6868
)
69+
70+
returns the following on macOS
71+
[0] => Array
72+
(
73+
[name] => (sh)
74+
[pid] => 62951
75+
[session_name] =>
76+
[session] => 0
77+
[mem_used] => 0 KB
78+
[status] => RUNNING
79+
[username] => username
80+
[cpu_time] => 0:00.00
81+
[window_title] =>
82+
)
6983
*/
7084
}else{
7185
// process was not found.

test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$process->start();
88
$pid = $process->getPid();
99
echo $pid;
10-
$process = $processHandler->getProcess(12796);
10+
echo "\n";
11+
$process = $processHandler->getProcess($pid);
1112
print_r($process);
1213
print_r($process->isRunning());
1314
print_r($process->getWindowTitle());

0 commit comments

Comments
 (0)