LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux - ASCI - Windows, proper file format issue (https://www.linuxquestions.org/questions/linux-general-1/linux-asci-windows-proper-file-format-issue-34861/)

aaronluke 11-07-2002 08:37 PM

Linux - ASCI - Windows, proper file format issue
 
Hello,

I have a UBB board running on a server of a friend. He has installed the whole set of programs to get the webserver running, on a Linux Red Hat machine. I got an account on the server to down and upload files. Now I have this strange problem:

When I download cgi files from the server and open them on my pc with notepad, the text in the files is messed up. I get rectangels instead of hard returns..
Now I can open up the cgi files with wordpad MFC or any other program. The rectangles are gone! so I save the file in wordpad MFC.. make some changes.. upload them to the server... and boom.. board crashes.. internal server error.. somehow the cgi files are changed so that linux can't read them anymore!

Anybody got a clue how to fix this?

I down and upload the files with smartftp or flashfxp or with command line .. ASCI file mode checked on.

I tried already different cgi editors but it won't help..

thanks for any help :cry:

jdc2048 11-07-2002 10:47 PM

problem has to do with Windows using a different hard-return/line-feed character combination than Linux does. And to really piss people off, Mac does it another way (at least Pre- Mac OS X).

You will need to somehow condition these files when they are placed on the Linux box. There is a utility that should be available on the RedHat system, dos2ux (Windows -> Linux). This will remove the extra characters, or put them back or whatever.

----
Jeremiah


All times are GMT -5. The time now is 03:16 AM.