Re: NSTask vmrun
Re: NSTask vmrun
- Subject: Re: NSTask vmrun
- From: "Stephen J. Butler" <email@hidden>
- Date: Fri, 05 Aug 2011 22:21:56 -0500
On Fri, Aug 5, 2011 at 10:15 PM, Rainer Standke <email@hidden> wrote:
> 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.
Ever worked with argv? Know how argv[1] would be "-T" and argv[2]
would be "fusion", etc? That's the type of thing you have to build on
this side. So, args are:
"-T",
"fusion",
"-gu",
"Administration",
"-gp",
"Admin",
"runScriptInGuest",
"/Users/rainer/Documents/Virtual Machines.localized/Windows XP
Professional v1.vmwarevm/Windows XP Professional v1.vmx",
"-noWait",
"",
"start http://apple.com"
No shell escapes. Just what you would have to escape for a normal
C/Obj-C string (\", \\, etc). There's no reason to do shell escapes
since you aren't involving the shell here. Don't escape spaces, put
things in quotes, or escape "$", etc.
_______________________________________________
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
References: | |
| >NSTask vmrun (From: Rainer Standke <email@hidden>) |