1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Check out the 6 new Certified Incredible PBX Builds for Asterisk 11 and 13 featuring CentOS 6, Ubuntu 14, Raspberry Pi 2, and Asterisk-NOW.
    Dismiss Notice

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

Discussion in 'Add-On Install Instructions' started by Netizen, Mar 12, 2009.

  1. Netizen

    Netizen New Member

    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
  2. jroper

    jroper Guru

    Have you searched for anyone else with the same problem?

  3. madoleh

    madoleh New Member

    That was good, Joe!!!
  4. Netizen

    Netizen New Member

    Yes I did
    Not everybody uses Google as first preference you see.
  5. megazot

    megazot New Member

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

    the script was opened with winzozz editor!!!! :(
  6. synchronous

    synchronous New Member

    nice fix

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

    blanchae Guru

    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
  8. kenn10

    kenn10 Guru-ish

    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.
  9. callingcard

    callingcard New Member

    Wonderful Solution which worked from the very first time.

    Thank you!


Share This Page