Re: Integrating Unix scripting in Cocoa app
Re: Integrating Unix scripting in Cocoa app
- Subject: Re: Integrating Unix scripting in Cocoa app
- From: Craig Hunter <email@hidden>
- Date: Wed, 08 Aug 2007 09:27:52 -0400
> 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
_______________________________________________
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