File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,20 @@ if($process){
66
66
[cpu_time] => 0:00:00
67
67
[window_title] => N/A
68
68
)
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
+ )
69
83
*/
70
84
}else{
71
85
// process was not found.
Original file line number Diff line number Diff line change 7
7
$ process ->start ();
8
8
$ pid = $ process ->getPid ();
9
9
echo $ pid ;
10
- $ process = $ processHandler ->getProcess (12796 );
10
+ echo "\n" ;
11
+ $ process = $ processHandler ->getProcess ($ pid );
11
12
print_r ($ process );
12
13
print_r ($ process ->isRunning ());
13
14
print_r ($ process ->getWindowTitle ());
You can’t perform that action at this time.
0 commit comments