vmrun을 통해 ie 실행
카테고리 없음 2013. 10. 25. 10:48 |출처 : https://gist.github.com/neovov/5372144/raw/331bf78fdf556ab406d2bd45f79dffa8240bc7c1/VMWare
# Start the virtual machine /Applications/VMware Fusion.app/Contents/Library $ ./vmrun -gu <username> -gp <password> start <VMX file> nogui # -gu: Virtual's machine username # -gp: Virtual's machine password # <VMX file>: ~/Documents/Virtual Machines.localized/IE8.vmwarevm/Windows XP Professionnel.vmx # nogui: Work headless # Launch IE on the virtual machine and go to a given page /Applications/VMware Fusion.app/Contents/Library $ ./vmrun -gu <username> -gp <password> runScriptInGuest <VMX file> -noWait -activeWindow "" "\"C:\Program Files\Internet Explorer\iexplore.exe\" http://google.fr/" # -noWait: Return the prompt immediately # -activeWindow: Show the window (should not be used in headless mode) # "": Empty for using cmd.exe # List processes /Applications/VMware Fusion.app/Contents/Library $ ./vmrun -gu <username> -gp <password> listProcessesInGuest <VMX file> # RegExp to find PID # /pid=(\d+).+iexplore\.exe" http/ # Kill a process /Applications/VMware Fusion.app/Contents/Library $ ./vmrun -gu <username> -gp <password> killProcessInGuest <VMX file> <PID> # Suspend the virtual machine (can be replaced by "stop") /Applications/VMware Fusion.app/Contents/Library $ ./vmrun suspend <VMX file>