Monday, 10 January 2011

Shell scripts don’t run in Solaris when stored in DOS mode

Writing a shell script in Windows and FTPing to UNIX may seem like a good idea, after all many projects are written under Windows and go live in UNIX. If you do this you MUST run dos2unix on your shell scripts. Otherwise you’ll get a:

: bad interpreter: No such file or directory error

Which isn’t very helpful.