-bash: /usr/local/sbin/install-a2billing: /bin/sh^M: bad interpreter: No such file or

Netizen

New Member
Joined
Mar 10, 2009
Messages
10
Reaction score
0
Hi people,

Any ideas I am getting the following message when I'm trying to install a2billing?

-bash: /usr/local/sbin/install-a2billing: /bin/sh^M: bad interpreter: No such file or directory

I have already updated scripts.

Any ideas?
Thank you
Netizen
 

megazot

New Member
Joined
Mar 16, 2009
Messages
4
Reaction score
0
Hi people,

Any ideas I am getting the following message when I'm trying to install a2billing?

-bash: /usr/local/sbin/install-a2billing: /bin/sh^M: bad interpreter: No such file or directory

I have already updated scripts.

Any ideas?
Thank you
Netizen
i have solved this problem in this way:
cd /usr/local/sbin
dos2unix install-a2billing
install-a2billing.


the script was opened with winzozz editor!!!! :(
 

synchronous

New Member
Joined
Sep 29, 2009
Messages
9
Reaction score
0
nice fix

I had the same issue and this worked for me beautifully. Great work.
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
-bash: /usr/local/sbin/install-a2billing: /bin/sh^M: bad interpreter: No such file or directory

The ^M is the clue. This indicates that somehow the script or text file was created using an MSDOS editor and not a Unix editor. MSDOS terminates end of lines with the ASCII characters CR (carriage return) and LF (Line Feed) while Unix only uses LF. When a MSDOS created script runs, Unix chokes on the extra character and reports it as the keyboard shortcut ^M. You can use the "^" series of keyboard shortcuts to "type" in ASCII control characters. You can read the details on my online book Introduction to Data Communications
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
Yes I did
Not everybody uses Google as first preference you see.
N

Well, as much as I worry about Google becoming self aware and turning into SkyNet, it still is the best search engine for more technical searches.
 

callingcard

New Member
Joined
Feb 21, 2008
Messages
2
Reaction score
0
Wonderful Solution which worked from the very first time.

Thank you!


i have solved this problem in this way:
cd /usr/local/sbin
dos2unix install-a2billing
install-a2billing.


the script was opened with winzozz editor!!!! :(
 

Members online

No members online now.

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top