I am logged in to server as oracle user and running a script, but it says it doesn't exists. Not sure, why it is complaining. Can somebody help me on this
Code:
oracle@db_serv01:/UPGRADE> ls -l orachk
-rwxr-xr-x 1 oracle dba 1428123 2014-04-30 17:11 orachk
oracle@db_serv01:/UPGRADE> head -2 orachk
#!/bin/env bash
{
oracle@db_serv01:/UPGRADE> ./orachk
-ksh: ./orachk: not found [No such file or directory]
oracle@db_serv01:/UPGRADE> echo $SHELL
/bin/ksh
oracle@db_serv01:/UPGRADE> bash
db_serv01: /UPGRADE
(tty/dev/pts/4): bash: 44 > ./orachk
bash: ./orachk: /bin/env: bad interpreter: No such file or directory
db_serv01: /UPGRADE
(tty/dev/pts/4): bash: 45 >