Dos Format and Unix Format

| | Comments (0) | TrackBacks (0)

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.gif

It is all DOS format fault.


Categories

,

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

Earn $$ with WidgetBucks!
Earn $$ with Bidvertiser!
DreamHost!
Sponsored Review!

Online Tools

About this Entry

This page contains a single entry by David Yin published on May 7, 2008 1:38 PM.

FLV Video Quality was the previous entry in this blog.

SEO hacking for Joomla 1.5.2 is the next entry in this blog.