This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server.