• 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 not working for shell scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask not working for shell scripts?


  • Subject: Re: NSTask not working for shell scripts?
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 03 Dec 2002 16:31:17 +0000

On 3/12/02 3:27 pm, Yann Bizeul <email@hidden> wrote:
> Mmm...
>
> In fact I never ran shell scripts directly. I always uses /bin/sh as
> the launchPathArguments, with first arg : "-c" and the full command
> after this.

That's a good idea anyway, just in case the permissions on /usr/bin/getRoute
get changed accidentally to prevent it being executed.

Of course /usr/bin is *not* a good place to put your own scripts. Somewhere
like /usr/local/<product>/bin is probably a better choice - the MySQL
packages from Marc Liyanage are rooted at /usr/local/mysql, the Virex
command-line tools are rooted at /usr/local/vscanx, so there's some
precedence for you to follow :-)

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSTask not working for shell scripts? (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: Getting started in Cocoa and IB
  • Next by Date: Re: Debugging Cocoa Apps
  • Previous by thread: Re: NSTask not working for shell scripts?
  • Next by thread: NSTask vs. popen vs. System
  • Index(es):
    • Date
    • Thread