Results 1 to 7 of 7

Thread: "bad interpreter - no such file or directory"

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Beans
    26

    "bad interpreter - no such file or directory"

    I'm trying to run a shell script, and it's not working.

    Code:
    jayzilla@server1:~/roborumble/robocode$ ./roborumble.sh
    bash: ./roborumble.sh: /bin/sh^M: bad interpreter: No such file or directory
    Any ideas?
    Blog
    Praise "Bob."

  2. #2
    Join Date
    Nov 2004
    Location
    Clemson, SC
    Beans
    271

    Re: "bad interpreter - no such file or directory"

    install sysutils and then run dos2unix on your script.

  3. #3
    Join Date
    Jun 2006
    Beans
    26

    Re: "bad interpreter - no such file or directory"

    That did the trick.

    Thanks!
    Blog
    Praise "Bob."

  4. #4
    Join Date
    Oct 2007
    Beans
    1

    Re: "bad interpreter - no such file or directory"

    How to install the sysutils and run dos2unix

  5. #5
    Join Date
    Apr 2007
    Beans
    14,781

    Re: "bad interpreter - no such file or directory"

    Quote Originally Posted by sobhanmaddineni View Post
    How to install the sysutils and run dos2unix
    Looking in Synaptic would make things easy...

  6. #6
    Join Date
    Sep 2007
    Beans
    23
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "bad interpreter - no such file or directory"

    In synaptic search for sysutils, check the checkbox and click apply. Then go to directory where you have the script and run dos2unix yourscript.sh.

    Then your script should work, so try running it again.

  7. #7
    Join Date
    Jun 2006
    Beans
    3

    Re: "bad interpreter - no such file or directory"

    Thanks!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •