#!/bin/bash #SBATCH --job-name='hello_world' #SBATCH…
- User
#!/bin/bash #SBATCH --job-name='hello_world' #SBATCH --chdir=/maahr/home/ameen/Chatbot/doctor/ #SBATCH --partition=gpu #SBATCH --cpus-per-task=48 #SBATCH --time=00:00:05 #SBATCH --nodes=1 #SBATCH --gpus-per-task=2 #SBATCH --nodelist=g13 #SBATCH --mem=50GB #SBATCH --output=/maahr/home/ameen/Chatbot/logs/%J.out #SBATCH --error=/maahr/home/ameen/Chatbot/logs/%J.err
sbatch: error: Batch script contains DOS line breaks (\r\n) sbatch: error: instead of expected UNIX line breaks (\n).
- Assistant
The error message indicates that your script contains DOS-style line breaks (
\r\n) instead of UNIX-style line breaks (\n). Thesbatchcommand expects UNIX line endings, and having DOS line endings can cause issues when the script is parsed.Here’s how you can resolve this issue: