inspec/test/unit/mock/cmd/ps-busybox
Adam Leff 939ee5ecfc processes resource: support busybox ps (#2222)
This change enhances the processes resource to support the busybox
ps command which is common on Alpine, for example. The way we
map ps fields to the structs needed by FilterTable have also been
refactored to be more flexible so we can support multiple formats
in the future.

Also, the processes resource now allows the grep argument to be optional
thus allowing a user to query all resources without passing in a
match-all regex.

Signed-off-by: Adam Leff <adam@leff.co>
2017-10-06 19:32:39 +02:00

3 lines
172 B
Text

PID VSZ RSS TT STAT TIME RUSER COMMAND
1 1536 4 136,0 S 0:00 root /bin/sh
5 1528 4 136,0 R 0:00 joe /some/other/coolprogram