Ismael wrote:
> [EMAIL PROTECTED] wrote:
>
> > I'm running RH 6.0 with a bash shell, but have a korn script I need to
> > execute. When I try to run it, I get:
> > bash: /path.../scriptname: No such file or directory
> >
> > Do I have to rewrite the script as bash or is there a way to run a korn
> > executable from a bash prompt?
> >
> > The script starts:
> > #!/bin/ksh
> > #$Id: startup.ksh, v.1.9... Exp $
> > # shell script to start up the server
> > # This script known to work with standard Korn Shell under Solaris
> >
> > Haines Brown
>
> Normally, the #!/bin/ksh line should make it
> works well. Did you have ksh properly installed,
> or more generally /bin/ksh linked to /bin/pdksh ?
It might also be in /usr/bin/ksh
But it's *not* the scripts responsibility to find that!
Just do:
#!/usr/bin/env ksh
...
...and env will find it for you.
--
"The move was on to 'Free the Lizard'"
-- Jim Hamerly and Tom Paquin (Open Sources, 1999 O'Reilly and Associates)
7:57pm up 2:22, 13 users, load average: 1.99, 1.94, 1.86