Unable to make script executable

Hello everybody,
I'm unable to make my shell script an executable file.
The details are as follows:

PATH includes my $HOME/bin i.e. /rchome/rc1/bin
HOME directory is /rchome/rc1
script name is prep_mig.sh permissions set are 755

It's executing if I give below command
sh prep_mig.sh
but not with
./prep_mig.sh

Can anybody tell me what the problem might be ?

  1. when you execute as ./SCRIPT-NAME there is no need for you worry about the PATH.

  2. Only you need to check, permission & she-bang.
    It seems you have got permission already right.
    What about she-bang ?! Have you given it correctly.

Also, it is good to post the error also, when you say some issue instead of just explaining about it.

Hello,
Thanks for the response.

When I execute it as follows:
./prep_mig.sh
OR simply as
prep_mig.sh
Iget error as:
: No such fileor directory

I've given she-bang as follows:
#!/usr/bin/ksh

Are you sure that ksh is in /usr/bin and not /bin?

Hello jp,
Thanks for that suggestion

I've changed that to /bin/ksh