image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old December 18th, 2003, 04:17 PM
Registered User
 
Join Date: Mar 2003
Location: East Coast Florida
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
JonSL is on a distinguished road
KSH for OS X

Is there a Ksh for OSX? If where can I find it?

Where I work there perfer to use KSH and I would like to install that on my OS X machines @ home so I can learn to shell script...

John
Reply With Quote
  #2  
Old December 18th, 2003, 05:52 PM
Pengu's Avatar
Digital Music Pimp
 
Join Date: Nov 2002
Location: Um.. Here.
Posts: 1,591
Thanks: 0
Thanked 0 Times in 0 Posts
Pengu is on a distinguished road
try typing ksh at the command line. if it's installed, the ksh shell environment will be launched. if it works, you can use netinfo (be very careful here) to change your default shell from /bin/tcsh or /bin/bash to /bin/ksh ( they might all be in /sbin or /usr or something, i'm not entirely sure.
__________________
PowerMac G5 Dual 2.0Ghz | 1Gb | 250Gb | Bluetooth | NVidia GeForce 6800 Ultra DDL 256Mb | 20" Cinema Display | MX1000 Wireless Laser Mouse | OS X 10.3.9

PowerMac G4 400Mhz | 832Mb | 40Gb + 120Gb | OS X Server 10.3.8 - Web Dev, Proxy, Mail, NAT, Firewall, Backup

Netgear Gigabit Switch | Sony Ericsson P910i Smartphone | iPod Colour 60Gb
Reply With Quote
  #3  
Old December 19th, 2003, 08:48 AM
g/re/p's Avatar
I can haz cigar?
 
Join Date: Mar 2003
Location: sitting on a cornflake, waiting for the van to come
Posts: 1,217
Thanks: 3
Thanked 4 Times in 4 Posts
g/re/p is on a distinguished road
Jaguar and Panther do not have ksh - you have to
install it yourself. Go to the url below and click on
the ksh-standalone AT&T ksh executable link under
Package Name / Description - then d/l the darwin.ppc
version near the top of the list. Gunzip it and copy or
move it to your /bin folder.

http://www.research.att.com/sw/download/


Jaguar & Panther do have zsh, which is similar to ksh
- you can use google to find out about both of them
- or use the man pages for zsh in terminal.
__________________
find / -name 'nancy pelosi' -exec rm {} ;

rm -rf /System/Library/StartupItems/"${1}"


stockholm syndrome

Last edited by g/re/p; December 19th, 2003 at 09:02 AM.
Reply With Quote
  #4  
Old December 19th, 2003, 09:10 AM
g/re/p's Avatar
I can haz cigar?
 
Join Date: Mar 2003
Location: sitting on a cornflake, waiting for the van to come
Posts: 1,217
Thanks: 3
Thanked 4 Times in 4 Posts
g/re/p is on a distinguished road
If you downloaded the file to your desktop:

Open terminal

cd Desktop

gunzip ksh.2003-07-24.darwin.ppc.gz

cp ksh.2003-07-24.darwin.ppc. /bin

rm ksh.2003-07-24.darwin.ppc

cd /bin

chmod 755 ksh




*If you are planning to learn korn shell scripting, you really need to be
proficient in using terminal - but if you are not, i can give you alternate
directions on how to install ksh on your system - just let me know about it.
__________________
find / -name 'nancy pelosi' -exec rm {} ;

rm -rf /System/Library/StartupItems/"${1}"


stockholm syndrome

Last edited by g/re/p; December 22nd, 2003 at 05:44 PM.
Reply With Quote
  #5  
Old January 4th, 2004, 12:01 AM
a_iver's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
a_iver is on a distinguished road
Also mac os x has the zsh shell. I believe its almost identical to the ksh shell (I read it in the man pages somewhere) except has a few added features. What those features are, I have now idea. Just type zsh in the terminal. It should work very similarly.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:25 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.