• 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: Running Shell Script from Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running Shell Script from Cocoa Application


  • Subject: Re: Running Shell Script from Cocoa Application
  • From: Dave Hersey <email@hidden>
  • Date: Sat, 6 Oct 2007 17:08:46 -0400

system() blocks and NSTask can run async for one thing. If the goal is to be running a script as super user, you shouldn't be using either NSTask or system(). The correct approach is to use a helper tool and authservices, as someone alluded to.

- d

On Oct 6, 2007, at 5:01 PM, Daniel Dalquen wrote:


On Oct 6, 2007, at 10:21 PM, Sam DeVore wrote:

Probably looking for NSTask

Is there a reason (not) to use the C function system(3)? What's the difference to NSTask (other than that it is an object)?


Daniel

_______________________________________________

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: 
 >Running Shell Script from Cocoa Application (From: JanakiRam <email@hidden>)
 >Re: Running Shell Script from Cocoa Application (From: Sam DeVore <email@hidden>)
 >Re: Running Shell Script from Cocoa Application (From: Daniel Dalquen <email@hidden>)

  • Prev by Date: Re: Running Shell Script from Cocoa Application
  • Next by Date: [question] Checking for duplicate entries in NSMutableArray
  • Previous by thread: Re: Running Shell Script from Cocoa Application
  • Next by thread: Re: Running Shell Script from Cocoa Application
  • Index(es):
    • Date
    • Thread