Changes
→"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>