The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings

Snippet Library

checkvm.sh

Type:
Function
Category:
Unix Admin
License:
GNU General Public License
Language:
Unix Shell

Description:
test de la vm virtualbox

Versions Of This Snippet:

Snippet ID Download Version Date Posted Author Delete
101.02017-02-21 10:57Jean-François BELLANGER Delete

Download a raw-text version of this code by clicking on “Download Version”


Latest Snippet Version: 1.0

#! /bin/bash
while true; do
var1=$(ps -x | grep -c d9e668b4-bba6-448f-8b30-896bc9f60727)

	 if [ $var1 = 2 ];then
		 sleep 1
	 elif  [ $var1 = 1 ];then
		 /bin/bash /usr/bin/launchvm.sh
	 fi
	 sleep 1
done

		

Add a new version

You can submit a new version of this snippet if you have modified it and you feel it is appropriate to share with others.