NSTask vmrun
NSTask vmrun
- Subject: NSTask vmrun
- From: Rainer Standke <email@hidden>
- Date: Fri, 05 Aug 2011 20:15:06 -0700
Hello,
I am trying to have a script executed on a virtual machine inside VM Fusion. This works with the vmrun command in Terminal, like so:
/Library/Application\ Support/VMware\ Fusion/vmrun -T fusion -gu *** -gp *** runScriptInGuest "/Users/rainer/Documents/Virtual Machines.localized/Windows XP Professional v1.vmwarevm/Windows XP Professional v1.vmx" -noWait "" "start http://apple.com"
I am having a hell of a time getting the same thing done in an NSTask. Here is a printout of my arguments array:
args: (
"-T fusion",
"-gu Administrator",
"-gp Admin",
runScriptInGuest,
"\"/Users/rainer/Documents/Virtual Machines.localized/Windows XP Professional v1.vmwarevm/Windows XP Professional v1.vmx\"",
"",
"start http://apple.com"
)
None of the many variations I have tried have worked.
Has anyone done this successfully? Or something similar with vmrun? How?
Thanks!
Rainer_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden