LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-08-2005, 10:14 AM   #1
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Rep: Reputation: 15
Question processing a ksh shell in bash environment


hi ,

I want to execute a ksh shell on linux(bash shell environment), how can i do it?
regards
 
Old 09-08-2005, 10:25 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Type 'ksh' to switch to ksh.
 
Old 09-08-2005, 10:34 AM   #3
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Original Poster
Rep: Reputation: 15
thanks Matir,
I know the way to change shell, i forgotten tell that in my /etc/shells i don't have ksh .

My O.S= Red Hat Enterprise Linux AS release 3, normally i have to find it but it doesn't exist
this a sample of /etc/shells


#################

[appweb@G77Q etc]$ more shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/bash2
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
######################
 
Old 09-08-2005, 10:38 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Does /bin/ksh exist? If not, ksh will need to be installed. Otherwise, just add it to the shells file.
 
Old 09-08-2005, 10:39 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Is (pd)ksh actually installed?

Just in case: which ksh (or locate ksh)

Both ksh and pdksh are part of the redhat distro, don't know if either is installed by default.

Hope this helps.
 
Old 09-08-2005, 10:41 AM   #6
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Original Poster
Rep: Reputation: 15
/bin/ksh doesn't exist , thanks for your reply


i'll install it
regards
 
Old 09-10-2005, 08:45 AM   #7
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
pdksh is an appalling shell - get the real thing. Google for ksh93-2000.10.31.0-1 and download it (there may a newer version, please post it here if you find it).
 
Old 09-12-2005, 02:09 AM   #8
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Original Poster
Rep: Reputation: 15
Hi,
I 've installed pdksh on my server, and i processed the shell, and it walk right.
Thanks for your help.
 
Old 09-12-2005, 03:42 AM   #9
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,276

Rep: Reputation: 170Reputation: 170
ksh and bash are mostly compatable.
but there are a few things that can trip you up.
 
Old 09-12-2005, 05:09 AM   #10
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Original Poster
Rep: Reputation: 15
what ???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash/ksh variables question tpe Programming 2 08-11-2005 09:39 AM
live cd with ksh default shell??? tgi Linux - Newbie 2 06-14-2005 10:47 PM
How to install Ksh shell hardeep_ubhi Linux - Newbie 1 02-03-2005 07:55 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 08:28 PM
ksh commands in bash nkelle Linux - General 2 11-13-2003 11:11 AM


All times are GMT -5. The time now is 06:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration