inspec/test/unit/mock/cmd/ps-aux
Stephan Renatus 7a1cd660c3 [resources/processes] add users, states attribute; update docs
processes('bash').user does not actually make much sense for a resource
that is a list -- different entries can belong to different users.
Analogous for processes('bash').state.

The attributes 'users' and 'states' expose the unique values
corresponding to that property of entries in the process list.

Fixes #295.
2015-12-08 13:06:27 +01:00

5 lines
358 B
Text

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 18084 3228 ? Ss 14:15 0:00 /bin/bash
root 13 0.0 0.0 15284 2148 ? R+ 15:08 0:00 ps aux
noot 19 0.0 0.0 24521 1536 s001 Ss 09:23 0:00 svc
noot 23 0.0 0.0 25044 1908 s000 S 08:46 0:00 svc