Created
March 17, 2012 12:15
-
-
Save gautamk/2058217 to your computer and use it in GitHub Desktop.
A shell Script to start VirtualBox VMs in Various Modes , Useful when placed in ~/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# | |
# A shell Script to start VirtualBox VMs in Various Modes | |
# Useful when placed in ~/bin | |
# | |
type="" | |
case $2 in | |
[g|G] ) | |
type="gui" | |
;; | |
[h|H] ) | |
type="headless" | |
;; | |
[s|S] ) | |
type="sdl" | |
;; | |
esac | |
echo starting $1 in $type : $2 mode | |
VBoxManage startvm $1 --type $type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment