Dos Format and Unix Format
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.

It is all DOS format fault.
Categories
DreamHost Log , L.A.M.P.Related Entries
- Let Dreamhost PHP support Zip extension
- Change theme to improve user experience
- Install Zend Optimizer 3.3 on Customized PHP 5.2.3
- Install customized PHP5 on Dreamhost
- How to install PEAR on Dreamhost
- Upgrade your Ubuntu from 7.10 to 8.04
- Database on Dreamhost
- Google partnered with Dreamhost
- Upgrade Joomla! 1.5.0 to 1.5.2 on DreamHost
- Some OneClick upgrade
0 TrackBacks
Listed below are links to blogs that reference this entry: Dos Format and Unix Format.
TrackBack URL for this entry: http://www.yinfor.com/mtcgi/mt-tb-trackback.cgi/2144







Leave a comment