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

Posted on November 24th, 2008 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , .

24 11 2008

If you’re getting the above errors, when you try to run a .sh or similar [I’ve seen it with perl scripts too] this is will be due to the file being in dos [windows] format, and probably written in notepad or similar.

If you need to get this into unix format, it can be pretty painless, just run the command

dos2unix filename

dos2unix should be available under most releases of linux. Happy coding.

3 comments.

iPhone default shell

Posted on May 18th, 2008 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , , .

18 05 2008

Apparently, not a good idea to change to bash.

I’ve been playing with my iPhone today, flashing to different firmwares..etc and everytime I SSH in, the first thing I type is bash, to get into the bash shell.

So thought I would change the shell in /etc/master.passwd

Well as per every other change, the iPhone didn’t like that and threw all it’s toys out of the pram. SSH’ing in using mobile stopped working, if I logged in with root, I could execute anything, as it would just kill the SSH session.

Using terminal on the phone it’s self didn’t play either.

Never mind, lesson learnt.

0 comments.

1 of 11

Templatesbrowser.com