• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask vmrun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask vmrun


  • Subject: Re: NSTask vmrun
  • From: Rainer Standke <email@hidden>
  • Date: Fri, 05 Aug 2011 20:54:23 -0700

Thanks, that's what I was missing.

Rainer


On Aug 5, 2011, at 20:21, Stephen J. Butler wrote:

> 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>)
 >Re: NSTask vmrun (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Symbol not found when compiling MM (ObjC++) file
  • Next by Date: Re: Symbol not found when compiling MM (ObjC++) file
  • Previous by thread: Re: NSTask vmrun
  • Next by thread: Symbol not found when compiling MM (ObjC++) file
  • Index(es):
    • Date
    • Thread