What it means /bin/bash^M: bad interpreter?
11,048
It means your script file has MSWin line endings. Use dos2unix
or fromdos
to fix them.
Author by
Vahagn Aleksanyan
Updated on June 04, 2022Comments
-
Vahagn Aleksanyan almost 2 years
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?
-
jww almost 6 yearsAllow us to Google that for you: /bin/bash^M: bad interpreter site:stackoverflow.com
-
-
Vahagn Aleksanyan almost 6 yearsHow can I fixed problem?
-
choroba almost 6 yearsDo you have
dos2unix
orfromdos
installed? -
Vahagn Aleksanyan almost 6 yearsI instaled fromdos,but dont know how to use.
-
choroba almost 6 yearsSee
man fromdos
to see the manual page.