I have a script file used in cron jobs.
I create and edit this file on Windows 2000. The editor is UltraEdit.
When I finished editing, I upload the file to Dreamhost by FTP.
I tried to use it through SSH command.
It failed with following error notes.

:bad interpreter: No such file or directory

I double checked the file by vi editor. It looks OK.
Do you know why? Let’s go back to today’s topic. Dos format and Unix format of text file.
The file I created is DOS format. The script running well on my Dreamhost when I convert it to Unix format.
dos-unix-format

It is all DOS format fault.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *