• 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: Integrating Unix scripting in Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating Unix scripting in Cocoa app


  • Subject: Re: Integrating Unix scripting in Cocoa app
  • From: Ron Fleckner <email@hidden>
  • Date: Wed, 8 Aug 2007 23:36:33 +1000


On 08/08/2007, at 11:27 PM, Craig Hunter wrote:

Well that sounds pretty interesting.  I don't have the energy to
investigate it right now (too much to do!), but I certainly will look
at "source" as a generic script runner.  When you say "shell", which
one do you mean?


If submitting via NSTask, it would be whatever shell NSTask inherits from
your main process -- possibly the user's default shell, but I don't know for
sure. But you can tell NSTask what shell to use via " setEnvironment:".


In earlier versions of OS X, tcsh was used as a default shell for new user
accounts, and many legacy users are still running that. As of 10.3, bash
became the default shell, and most new accounts created since then use bash.
Obviously, experienced users know how to change their shell in NetInfo
manager, and they would also know how to write and invoke scripts in any
shell, but I got the impression you were trying to accommodate users who are
less experienced in that area. I know when we deploy our software tools to
users, we have to provide very explicit instructions on how users should
determine what shell they are running and explain how to interact with the
shell, and yet there are still traps. Surprisingly, a lot of users can be
comfortable in the terminal yet be completely uneducated about shell and
environment settings. They may be experienced with a particular shell on an
older UNIX system (usually csh) and then come over to OS X or Linux and be
completely baffled by bash.


Craig

--
Dr. Craig Hunter
NASA Langley Research Center
Configuration Aerodynamics Branch
email@hidden
(757) 864-3020


OK, thanks, that's all good to know. I may try and resurrect the shell script part of this project but with a narrower field of allowed options than I had previously hoped for. So I may have caveats such as "You can put any shell script into the Scripts folder for inclusion in the Scripts menu as long as it is executable and has the appropriate file extension." or some such rule. The exact outline of what would be allowed would be determined by my own testing (and perhaps a further question or two to the list).

Cheers,

Ron
_______________________________________________

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: Integrating Unix scripting in Cocoa app
      • From: Kevin Kuehl <email@hidden>
References: 
 >Re: Integrating Unix scripting in Cocoa app (From: Craig Hunter <email@hidden>)

  • Prev by Date: Re: Integrating Unix scripting in Cocoa app
  • Next by Date: Re: Problem with NSTreeController, CoreData and bindings
  • Previous by thread: Re: Integrating Unix scripting in Cocoa app
  • Next by thread: Re: Integrating Unix scripting in Cocoa app
  • Index(es):
    • Date
    • Thread