• 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: Relying on shell tools to be installed? Where do you find this out?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relying on shell tools to be installed? Where do you find this out?


  • Subject: Re: Relying on shell tools to be installed? Where do you find this out?
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 23 Jun 2005 09:16:47 -0700


On Jun 23, 2005, at 8:09 AM, Sean McBride wrote:

And are you planning on using system() to call the 'zip' command line

application?  If so, know that there are risks to doing so... For example:

<http://lists.apple.com/archives/Carbon-dev/2005/Mar/msg00679.html>



Use NSTask rather than system() to avoid these issues.  It will do the fork/exec mentioned in that post.

Note that some of the command-line tools you might be interested in are open source, or have open-source equivalents; in some cases it might be appropriate to include a version (possibly a stripped-down special-purpose version) of the tool you are interested in inside your application's bundle, to make certain that exactly what you want will definitely be available on both past and future systems.

Douglas Davidson

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Relying on shell tools to be installed? Where do you find this out? (From: "Theodore H. Smith" <email@hidden>)
 >Re: Relying on shell tools to be installed? Where do you find this out? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Using -mouseEntered/Exited in a tab view
  • Next by Date: Re: NSURLConnection leaks
  • Previous by thread: Re: Relying on shell tools to be installed? Where do you find this out?
  • Next by thread: Wait some seconds
  • Index(es):
    • Date
    • Thread