techxplore

Showing posts with label bad interpreter. Show all posts
Showing posts with label bad interpreter. Show all posts

Wednesday, June 20, 2012

Fixing /bin/bash^M: bad interpreter: No such file or directory

If you write a bash script in Windows and you get this error after FTP'ing and running it in Linux, try the following to fix it

perl -i -pe's/\r$//;' script_name.sh



Posted by AI at 5:47 PM 3 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: bad interpreter, bash, linux, script
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2021 (1)
    • ▼  May (1)
      • Mulesoft - Extract Cookie value via Dataweave
  • ►  2019 (2)
    • ►  April (2)
  • ►  2015 (2)
    • ►  October (1)
    • ►  April (1)
  • ►  2014 (4)
    • ►  June (1)
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (3)
    • ►  December (1)
    • ►  November (1)
    • ►  August (1)
  • ►  2012 (23)
    • ►  November (1)
    • ►  October (1)
    • ►  September (2)
    • ►  July (1)
    • ►  June (3)
    • ►  May (4)
    • ►  April (1)
    • ►  February (1)
    • ►  January (9)
  • ►  2011 (8)
    • ►  December (8)
Simple theme. Theme images by gaffera. Powered by Blogger.