Can you post the output of this command
Code:
head -1 <your_shell_script_name> | od -a
Perhaps that must be because of the ctrl-m characters in the shell script. Run a dos2unix on your shellscript and then run it.
Also put
#! /bin/ksh as the first line of your shell script.