qsub says: "script contains cr, lf", what does this mean?¶
Described problem is caused by the fact that your batch script was written in non-Unix operational system (Windows) which uses different characters to mark end of a line.
To get rid of the faulty endlines, use dos2unix command:
(BUSTER)user123@skirit:~$ dos2unix myscriph.sh
To test for the type of endlines, use the command file:
(BUSTER)user123@skirit:~$ file myscriph.sh
myscript.sh: UTF-8 Unicode text, with CRLF line terminators
If the file command reports CRLF line terminators, your script needs to be converted to run on Linux.
Last update:
February 4, 2025