for i in `cat /proc/vz/veinfo | awk ‘{print $1}’|egrep -v ‘^0$’`; do echo “Container $i”; vzctl exec $i w ; done
vzctl run on all containers
Leave a reply
for i in `cat /proc/vz/veinfo | awk ‘{print $1}’|egrep -v ‘^0$’`; do echo “Container $i”; vzctl exec $i w ; done