I create start.sh file and wont to start,but retruned me
./start.sh: /bin/bash^M: bad interpreter: No such file or directory
this is my start.sh file content
#!/bin/bash
cd /home/test/Desktop
node cron.js
How can I fixed this problem?
I create start.sh file and wont to start,but retruned me
./start.sh: /bin/bash^M: bad interpreter: No such file or directory
this is my start.sh file content
#!/bin/bash
cd /home/test/Desktop
node cron.js
How can I fixed this problem?
It means your script file has MSWin line endings. Use dos2unix
or fromdos
to fix them.