• 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: Sam DeVore <email@hidden>
  • Date: Sat, 6 Oct 2007 13:21:24 -0700


On Oct 6, 2007, at 12:11 PM, JanakiRam wrote:

Hi All,
I'm developing an Cocoa application . Now i need to execute the shell
script from my application.


Can any one provide pointers on executing shell script from Cocoa
application.If possible provide some examples/links.


Is it possible to execute the shell script with admin privileges(sudo
command) from Cocoa Application ?


Please help me to solve this . Thanks in Advance.

Probably looking for NSTask

see http://www.cocoadev.com/index.pl?NSTask for starters

_______________________________________________

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

  • Prev by Date: Re: Running Shell Script from Cocoa Application
  • Next by Date: Re: Running Shell Script from Cocoa Application
  • Previous by thread: Re: Running Shell Script from Cocoa Application
  • Next by thread: Re: Running Shell Script from Cocoa Application
  • Index(es):
    • Date
    • Thread