Shell script not getting executed

Hi

As per my requirement when I run . ./file.sh am getting the following error

 -bash:ELF: command not found

when i execute as ./file.sh it is getting executed.How to resolve this.

Thanks in advance.

Are you using BASH shell? Can you paste the first line from the script with the hashbang? Also paste the output of

echo $SHELL

am using korn shell..

$ echo $SHELL
/bin/bash

Set the SHELL variable to ksh and then try running your command.

export SHELL=/bin/ksh     #or where your ksh resides