Find the answer to your Linux question:
Results 1 to 3 of 3
Hi there, can anyone explain to me that what is mean by /bin/bash^M: bad interpreter: No such file or directory ? But my file is really at there..how come it ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5

    what is it mean by?

    Hi there, can anyone explain to me that what is mean by /bin/bash^M: bad interpreter: No such file or directory ?

    But my file is really at there..how come it cannot executable??

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Are you creating script in Windows Box using text editor like notepad and executing it in Linux box?
    Edit script and remove ^M character. ( Ctrl+C or Ctrl+x etc ).
    Or
    Execute dos2unix script command to convert it.
    I am not sure if dos2unix is pre-installed in Ubuntu. If its not installed, install it through Package Manager.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    yea.. i created on Window and then i try to save in thumbdrive then i open back on vmware player and copy back into Gedit.. then it show out that msg.. huh

Posting Permissions

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