: bad interpreter: No such file or directory

December 17, 2007 by gregorgede · Leave a Comment
Filed under: Uncategorized 

if you ever see this following message when tried to run a sh or bash script :

: bad interpreter: No such file or directory

then you should do this to fix it :

$ vi filename.sh

inside vi editor give this command :

:set fileformat=unix

:wq!

then try to run it again…. it should works now….

source : http://www.diegobelotti.com/?q=bash_bad_interpreter



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!