UBB.Dev
Posted By: EftheM Problems with Linux - ASCI - Windows - 11/03/2002 4:00 PM
help

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 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.. So when I use the multihack program to install hacks with, I only get errors because certain lines are not recognized..
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.. multihack works now.. I install the hacks.. 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.. ASCI file mode checked on.

thanks for any help

help
Posted By: CTM Re: Problems with Linux - ASCI - Windows - 11/03/2002 5:05 PM
Obviously you're doing the right thing locally... Have you tried using a different FTP program?
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/03/2002 5:38 PM
Okay

I have installed flash FXP..

set the data transfer to ASCI mode.. downloaded one of the *.cgi files.. opened it with notepad..

still the same problem frown
Posted By: Burak Re: Problems with Linux - ASCI - Windows - 11/03/2002 5:45 PM
Notepad is a silly program, it can not read unix line endings. Open the file in Wordpad or an advanced text editor like TextPad...

Try this, open the file in wordpad and save it as "text only"... Also dont forget to send them in ascii to server and chmod if necessary
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:37 PM
Okay I opened the a *.cgi file in wordpad MFC

when I choose save as I can choose between:

rtf
textdocument
textdocument ms-dos
unicode textdocument

which one?
Posted By: Burak Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:38 PM
textdocument
Posted By: 1QuickSI Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:39 PM
"Text Only" would be considered a text document thumbsup
Posted By: Burak Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:40 PM
Btw, what do you mean by "MFC" ?
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:41 PM
well when I choose open with in XP

I get the option wordpad MFC

not good laugh ??
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/03/2002 6:45 PM
I opened up a file *.cgi and saved it as text only in wordpad. but I know already it is going wrong since the file size is now changed... had that problem before..
Posted By: 1QuickSI Re: Problems with Linux - ASCI - Windows - 11/03/2002 8:50 PM
If you open a file up that is taken from your server in Notepad it will not be easy to read as all the lines will run into each other.

Wordpad will properly format and retain the formating of the file. The file size WILL increase.

Remember you have to re-upload the file in the proper format. If you are unsure just open the file in an editor on your server, enter a space on the first line, press the back button to remove it and save. This will change the file formating properly.
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/03/2002 9:54 PM
Quote
quote:
Originally posted by 1QuickSI:
Remember you have to re-upload the file in the proper format. If you are unsure just open the file in an editor on your server, enter a space on the first line, press the back button to remove it and save. This will change the file formating properly.
hehe well that is kind of the problem.. I'm not able to get them in proper format (so linux can read them).. the server is extern so I cannot open a file on my server..

Now I have even edited the cgi file with an cgi editor.. but even that won't help a thing..
Posted By: 1QuickSI Re: Problems with Linux - ASCI - Windows - 11/04/2002 1:01 AM
Can you telnet or have access vis SSH?

The problem is that the file is not being uploaded properly to the server.

What CGI editor are you using? It is it on the server or workstation?

I only use VI or PICO
Posted By: EftheM Re: Problems with Linux - ASCI - Windows - 11/07/2002 11:14 AM
Thnx for all the help so far guys...

I have been playing around with it, and found out that multihack has this option to choose what kind of line ending you want.

option is called end of line terminator.. 2 options CR/LF and LF. If I choose for only LF the files are exported in the correct way... Now I only need to upload them to check if they work... but suppose to! smile
Posted By: Dave_L Re: Problems with Linux - ASCI - Windows - 11/07/2002 3:36 PM
Just noting that Windows uses CR/LF and Linux uses LF. And Mac, I think, uses CR, but my Mac knowledge is not up-to-date.
OSX, being a Unix, uses LF. Older Macs use CR.
© UBB.Developers