When using the school HPC cluster, it is found that the batch task written by win10 reports an error, which can be solved with dos2unix.
Bugs and Solutions
This problem is due to the difference between UNIX and DOS blank line format. Just use code conversion
errors are reported as follows:
sbatch: error: Batch script contains DOS line breaks (\r\n)
sbatch: error: instead of expected UNIX line breaks (\n).
Enter dos2unix:
dos2unix yourfilename
Read More:
- Ubuntu shell Script syntax error near unexpected token `$‘{\r‘‘
- [Solved] ubuntu Boot Error: /dev/nume0n1p2:clean
- Shell Script syntax error near unexpected token `done’
- Error in Linux running file: bash: $’\r’: command not found
- [Solved] Linux shell Script Error: syntax error near unexpected token `do
- Running shell script reports an error: “syntax error near unexpected token solution ‘”
- Windows writes shell script and executes shell error [Solved]
- [Solved] KingbaseES V8R3 Error: cluster.log ERROR: md5 authentication failed
- subprocess installed post-installation script returned error exit status 1
- [Solved] shc -f xxx.sh shc: invalid first line in scrip
- [Solved] Linux executes SQL script Error: Syntax error
- npm ERR! Failed at the [email protected] install script.
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- [Solved] Internal error XFS_WANT_CORRUPTED_GOTO at line 1635 of file fs/xfs/libxfs/xfs_alloc.c.
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- [Solved] Ubuntu Server 18.4 System /etc/sudoers: syntax error near line 32
- [Solved] error adding symbols: DSO missing from command line
- [Solved] bash: /etc/vimrc: line 15: syntax error near unexpected token `“autocmd“‘
- [Solved] check_urdf demo05_test.urdf Error: Error document empty. at line 71 in /build/urdfdom-YM
- [Solved] Shell error: syntax error: unexpected end of file