Linked Questions
26 questions linked to/from ./configure : /bin/sh^M : bad interpreter
119 votes
18 answers
80k views
Are shell scripts sensitive to encoding and line endings?
I am making an NW.js app on macOS, and want to run the app in dev mode by double-clicking on an icon. In the first step, I'm trying to make my shell script work. Using VS Code on Windows (I wanted to ...
66 votes
10 answers
128k views
"/usr/bin/python^M: bad interpreter" [duplicate]
Cannot figure out, where to change EOF in PyCharm. My scripts start with : #!/usr/bin/python # -*- coding: utf-8 -*- It outputs something like this when I try to run it like an executable (chmode +x) ...
2 votes
1 answer
14k views
What it means /bin/bash^M: bad interpreter? [duplicate]
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 ...
0 votes
1 answer
1k views
why is my .sh file not running in terminal? [duplicate]
so I format "colors.sh", which is located on my desktop in a file called notepad. try to run it using: ./colors.sh and then it says this.... shell@shell:~$ cd Desktop/notepad/ ...
0 votes
1 answer
2k views
Django on godaddy - 500 internal server error OR Forbidden 403 [duplicate]
I have a deluxe Linux hosting account on Godaddy and from the past 3 days I've been trying to host a Django website. I followed these tutorials: http://www.lichun.cc/blog/2012/06/setup-django-1-4-on-...
1 vote
0 answers
55 views
Trouble building Open source software (ZeroMQ): autogen.sh [duplicate]
I'm trying to learn to build and poke around open source software. However, I've always had trouble trying to get anything to build. So, I figure now's as good a time as any to ask. I downloaded the ...
1196 votes
18 answers
1.7m views
How to call one shell script from another shell script?
I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell script a.sh?
867 votes
11 answers
1.4m views
Bash script – "/bin/bash^M: bad interpreter: No such file or directory" [duplicate]
I'm using this tutorial to learn bash scripts to automate a few tasks for me. I'm connecting to a server using putty. The script, located in .../Documents/LOG, is: #!/bin/bash # My first script echo &...
42 votes
13 answers
47k views
Cannot run NPM Commands
I've been using NPM on my machine (Windows 10), but recently ran into an issue. I currently have Node.js installed and get the following error while running any npm command. Question: What is ...
21 votes
3 answers
48k views
/bin/sh^M: bad interpreter: No such file or directory
When I enter brew doctor (or any brew command) in my terminal, I get this as a response: -bash: /usr/local/bin/brew: /bin/sh^M: bad interpreter: No such file or directory I have seen the ^M response ...
4 votes
5 answers
8k views
Cakephp Cake command returns No such file or directory
I have been using the cake command on my linux server for 2 years. but now im trying to move to a new server and some how the cake command gives back the error: No such file or directory even if i ...
-1 votes
4 answers
16k views
"/bin/bash^M: bad interpreter: No such file or directory" error when executing a bash script from a cron job
Restore_DB.sh :- #!/bin/bash mysql -u user -ppassword DB_name < /home/A/B/SQL_File.sql I used the above code to restore a MySQL database from a cron job but I'm getting the bellow error /usr/...
1 vote
3 answers
12k views
script for cron.daily
I need to have my Java program run on a linux box once a day. So I created a simple file with just one line: java -jar /opt/location/my_jar.jar and put it in etc/cron.daily, assuming it would run ...
1 vote
3 answers
24k views
Using bash to run python script
I have a python script that takes in a .txt file and outputs a .txt file. I want to create a bash file that I can click on from my desktop to execute the python script. So far I have: #!/bin/bash ...
6 votes
5 answers
5k views
React native glog iOS : Unknown type name '_START_GOOGLE_NAMESPACE_'
I already built an android project of react native which is working fine. I then started with iOS part. I am using react-native-cli: 2.0.1 react-native: 0.60.4 and Xcode 10 and Mac OS Mojave The ...