Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-07-2002, 08:37 PM   #1
Registered: Aug 2002
Posts: 58

Rep: Reputation: 15
Linux - ASCI - Windows, proper file format issue


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
Old 11-07-2002, 10:47 PM   #2
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
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.


Last edited by jdc2048; 11-07-2002 at 10:48 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
proper way for windows clients to use linux file server jwstric2 Linux - General 3 05-10-2004 09:44 PM
CD-ROM file format difference between windows and linux kas5058 Linux - Software 1 03-21-2004 04:13 AM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
How do i find the proper linux config file? justinfl General 2 10-08-2003 11:01 PM
Windows vs Linux: uploaded file changes format?? rooman Linux - General 3 05-28-2002 01:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration