Page tree

If you get the message:

/bin/bash^M: bad interpreter: No such file or directory

and you created your batch job script on a Windows host and then copied it to Gadi, you will need to change the format of the line endings in your job script from the Windows standard (CRLF) to the Unix standard (LF).

Use the tool dos2unix on Gadi to do this conversion:

$ dos2unix jobscript.sh

Replace jobscript.sh with the name of your batch script.