-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathps-list.node.txt
33 lines (29 loc) · 1.69 KB
/
ps-list.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
┏━━━━━━━━━━━━━┓
┃ PS-LIST ┃
┗━━━━━━━━━━━━━┛
ALTERNATIVES ==> #Cross-OS:
# - ps-list (preferred)
# - process-exists: only check existence, based on ps-list
# - ps-tree
# - pidtree: include descendants
# - pid-from-port: get by port
#Unix only:
# - ps
#Windows only:
# - tasklist (preferred): more features
# - fastlist: faster, but is in C
VERSION ==> #8.1.1
PS-LIST([OPTS])->PROMISE_OBJ_ARR #Returns list of processes:
# - on Unix, uses `ps wwxo pid,comm,args,ppid,%cpu,%mem`
# - on Windows, uses FASTLIST (see its doc)
#OPTS (Unix only):
# - all BOOL: if true (def), uses `ps awwxo` instead `ps wwxo`
#OBJ_ARR:
# - name STR
# - pid NUM
# - ppid NUM
# (Unix only)
# - cmd STR
# - cpu NUM
# - memory NUM
# - uid NUM