in reply to Re: Text File Busy - or not?
in thread Text File Busy - or not?
To see if you have extra line end characters:
vi <script name>
you'll see a ^M at the end of each line. To quit vi:
<esc>:q!
To fix this (on many unix flavors):
dos2unix <script name> <script name>
Uploading the file in "text" mode in some ftp clients will automatically convert the line enders for you when performing an upload/download. Note that some ftp clients DON'T do this, YMMV. Binary mode is /Absolutely Necessary/ if you uploading gifs, jpgs, etc. Some ftp clients have an "automatic mode" which will use what it thinks is the right mode depending on the file extension. Again, YMMV. Cheers
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|