Results 1 to 5 of 5

Thread: Ksh version problem under Redhat

  1. #1
    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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.

  5. #5
    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.

Similar Threads

  1. Activation for the USB system in Redhat
    By mewlyo in forum Networking & Security
    Replies: 4
    Last Post: 26-12-2010, 05:37 AM
  2. Dreamweaver in Linux(RedHat)
    By Altair Creed in forum Operating Systems
    Replies: 4
    Last Post: 12-04-2010, 11:03 PM
  3. RedHat installation / boot problem
    By Trini Alvarado in forum Operating Systems
    Replies: 4
    Last Post: 05-04-2010, 06:05 PM
  4. RedHat Screen resolution problem
    By Captain Carrot in forum Operating Systems
    Replies: 4
    Last Post: 05-04-2010, 04:05 PM
  5. How to setup squid on RedHat
    By ReD-GuY-ReD-HaT in forum Operating Systems
    Replies: 1
    Last Post: 30-07-2009, 07:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,615,887.27582 seconds with 17 queries