Changes

Jump to: navigation, search

Processes scope and visibility

212 bytes added, 16:17, 1 July 2011
"Poor man's vzps in bash"
exit 0
fi
</pre>
 
A faster version:
 
<pre>
#! /bin/bash
# Usage: ovzps <CTID> [ps flags ...]
 
ctid=${1:-0}
shift
 
ps $* -p $(grep -l "^envID:[[:space:]]*$ctid\$" /proc/[0-9]*/status |
sed -e 's=/proc/\([0-9]*\)/.*=\1=')
</pre>
Anonymous user

Navigation menu