PDA

View Full Version : "bad interpreter - no such file or directory"



Jayzilla
December 28th, 2006, 11:04 PM
I'm trying to run a shell script, and it's not working.


jayzilla@server1:~/roborumble/robocode$ ./roborumble.sh
bash: ./roborumble.sh: /bin/sh^M: bad interpreter: No such file or directory


Any ideas?

duff
December 28th, 2006, 11:28 PM
install sysutils and then run dos2unix on your script.

Jayzilla
December 29th, 2006, 12:19 AM
That did the trick.

Thanks!

sobhanmaddineni
October 18th, 2007, 05:03 PM
How to install the sysutils and run dos2unix

LaRoza
October 18th, 2007, 05:40 PM
How to install the sysutils and run dos2unix

Looking in Synaptic would make things easy...

josef.sabl
February 1st, 2008, 11:03 AM
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.

TronBoRG
July 15th, 2008, 11:17 AM
Thanks!!