• 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: "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

  • Follow-Ups:
    • Re: NSTask vmrun
      • From: Rainer Standke <email@hidden>
References: 
 >NSTask vmrun (From: Rainer Standke <email@hidden>)

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