Monday, December 5, 2011

VBOX check the state of a VM

text=`vboxmanage showvminfo MACHINE_NAME | grep State: | awk '{print $2}'` ; if [ $text == "running" ] ; then echo OK ; else echo "NOTOK" ; fi

No comments:

Post a Comment