Re: /bin/ksh not found

From: Derk Gwen (derkgwen@HotPOP.com)
Date: 04/22/03

  • Next message: John Howells: "Re: DHCP server - map to host names?"
    From: Derk Gwen <derkgwen@HotPOP.com>
    Date: Tue, 22 Apr 2003 07:06:32 -0000
    
    

    gilgantic@yahoo.com (gilgantic) wrote:
    # I am getting the following error "/bin/ksh not found" when I execute a
    # simple shell script. I have #!/bin/ksh at the beginning of my file. I
    # tried
    # #/usr/bin/ksh as well, but the same error.
    #
    # Do I need to modify my .profile or .kshrc file in anyway. My PATH
    # variable does have the :bin and :usr/bin appended to the PATH.

    Not all systems have korn shell installed. If 'ls /bin/ksh' says file not found,
    you'll have to use another bourne shell variant. Do 'ls /bin/*sh', and you should
    see /bin/sh (bourne shell) and perhaps /bin/bash (bourne again shell). ksh and
    bash are mostly compatiable extensions of sh. If sh can do it, ksh and bash
    can run the same script. If ksh can do it, bash can probably do it, and perhaps
    sh.

    --
    Derk Gwen http://derkgwen.250free.com/html/index.html
    JUSTICE!
    Justice is dead.
    

  • Next message: John Howells: "Re: DHCP server - map to host names?"

    Relevant Pages

    • FAST, but full feature ksh.
      ... built ksh vs a statically built bash, I found that the ksh was ... sluggish bash to the POSSIBLY quicker ksh... ... case of molasses, try playing with shell scripting on cygwin, ... but today my measurement now isn't done ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Linux users seeks some freeBSD pointers
      ... >any freely available ksh versions. ... I can't because the few times I've tried bash I did not like it. ... referring to ksh93 which was first released over six years ... tcsh is an acceptable shell for interactive use ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Installing ksh from AT&T
      ... on UNIX that uses the Korn shell, ... ksh from AT&Ts, but, being a UNIX newbie, I am not sure where to put the ... Also sh is really the POSIX mode of bash. ... Ignore Ctrl-D at the command prompt. ...
      (comp.sys.mac.apps)
    • Re: FAST, but full feature ksh.
      ... > built ksh vs a statically built bash, I found that the ksh was about ... > sluggish bash to the POSSIBLY quicker ksh... ... > molasses, try playing with shell scripting on cygwin, but I don't ...
      (comp.unix.bsd.freebsd.misc)
    • ksh (88/93), setting of PATH in ~/.profile
      ... I want to add paths to PATH and other environment variables. ... Target environment is IBM running AIX 5.2, ksh as well as ksh93 is ... Analyzing the errors makes me think that bash is used as shell ...
      (comp.unix.shell)