Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Ksh version problem under Redhat

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-04-2010
Member
 
Join Date: Mar 2010
Posts: 197
Ksh version problem under Redhat
  

Hello
I have RHEL 4 (Red Hat Enterprise Linux 4), installed on two machines. On one of this (machine 1), I made an installation "basic", i.e I have not used the extra CD. On the other (machine 2) I used this CD, which I found KSH, so I installed that. But surprise, I found myself with KSH on both (I want), but especially with two different versions of KSH. If I could identify version KSH, AC I would have fewer problems, but this is not the case: In the man ksh, it is clear that KSH set an environment variable, KSH_VERSION. Now on the machine 2, this variable is not present when I am in ksh. Is there a way to know what is the shell used in a given terminal? Any help on this is appreciated. Thanks in advance.

Reply With Quote
  #2  
Old 05-04-2010
Member
 
Join Date: Nov 2009
Posts: 330
Re: Ksh version problem under Redhat

Hello,
I think you have not installed the korn shell properly during the installation, that is why you are getting such an error, with a little luck, ksh is installed via an rpm
Here is the command to install it, if you have not installed it properly then you can try installing again
Code:
rpm-qa | grep ksh
Here you have to issue this command in the terminal as a root user.
Reply With Quote
  #3  
Old 05-04-2010
Member
 
Join Date: Nov 2009
Posts: 333
Re: Ksh version problem under Redhat

Hello,
This is what you should get when you do the man command in the terminal. The man may be for ksh (RHE3):

Code:
VERSION
This page documents version
@ (#) PD KSH v5.4.14 8/04/14.2
public domain korn shell.
Just type the man command in your terminal and see what is the result you are getting.
Reply With Quote
  #4  
Old 05-04-2010
Member
 
Join Date: Mar 2010
Posts: 197
Re: Ksh version problem under Redhat

Hello
It gives something:
Machine 1:
Code:
pdksh-5.2.14-30
Machine 2:
Code:
ksh-20040229-12
good as the first seems to be a correct result, which gives something usable, but the second ... Well I do not understand what it says. Can you please explain me, why the second is not showing the correct result.
Reply With Quote
  #5  
Old 05-04-2010
Member
 
Join Date: Nov 2009
Posts: 330
Re: Ksh version problem under Redhat

Hello,
Just try the following commands
Code:
Which ksh
followed by
Code:
ls-al [will display all]
Sometimes a facility would have simply made a glib link (symbolic, it is more visible) on sh ksh or bash). Hope the following information will help you. If yo have any other problem then do post back.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Ksh version problem under Redhat"
Thread Thread Starter Forum Replies Last Post
Activation for the USB system in Redhat mewlyo Networking & Security 4 26-12-2010 04:37 AM
Dreamweaver in Linux(RedHat) Altair Creed Operating Systems 4 12-04-2010 11:03 PM
RedHat installation / boot problem Trini Alvarado Operating Systems 4 05-04-2010 06:05 PM
RedHat Screen resolution problem Captain Carrot Operating Systems 4 05-04-2010 04:05 PM
How to setup squid on RedHat ReD-GuY-ReD-HaT Operating Systems 1 30-07-2009 07:09 PM


All times are GMT +5.5. The time now is 07:05 PM.