KSH shell script won't execute and returns 127 (not found)

Posted by Chris Knight on Stack Overflow See other posts from Stack Overflow or by Chris Knight
Published on 2010-04-14T13:57:52Z Indexed on 2010/04/14 14:23 UTC
Read the original article Hit count: 419

Filed under:
|
|

Can anyone enlighten me why the following won't work?

$ groups
  staff btgroup
$ ls -l
  total 64
  -rw-rw----    1 sld248   btgroup       26840 Apr 02 13:39 padaddwip.jks
  -rwxrwx---    1 sld248   btgroup        1324 Apr 02 13:39 padaddwip.ksh
$ ./padaddwip.ksh
  ksh: ./padaddwip.ksh:  not found.
$ echo $?
  127

This is nearly identical to another script which works just fine. I can't see any differences between the two in terms of permissions or ownership.

thanks in advance!

© Stack Overflow or respective owner

Related posts about ksh

Related posts about execution