how have TC convert ascii files from Windows to unix?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
henkdaalder
New Member
New Member
Posts: 1
Joined: 2003-12-13, 11:16 UTC
Location: netherlands

how have TC convert ascii files from Windows to unix?

Post by *henkdaalder »

Somehow my TC treats all files it transfers with FTP to a unix system as binary.
Transfer in textmode delivers the file unchanged.

The TC FTP logfile shows:
230 Login successful. Have fun.
SYST
215 UNIX Type: L8
FEAT
500 Unknown command.

Is this trying to find out something useful in this area?
Are there commands I can put in the ftp connection screen to help solve this?

Did not find any topicx in the forum that helped me
The help file says somethings about servertype.
That seems to do only something to allow TC to interpret the L:S command to show a decent and correct directory list

I tried a unix server type but it did not convert any text like files.
What is the meaning of the string
Template1=pppppppppp !S* TTT DD UUUUU n*
in wcx_ftp.ini ???
Can I do useful things with it for automatic file conversion?

Currently I convert files to unix format with a separate program on windows before they are transferred to the unix system.

Thanks for your attention and help!
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Re: how have TC convert ascii files from Windows to unix?

Post by *Clo »

henkdaalder wrote:Somehow my TC treats all files it transfers with FTP to a unix system as binary.
Transfer in textmode delivers the file unchanged.

The TC FTP logfile shows:
230 Login successful. Have fun.
SYST
215 UNIX Type: L8
FEAT
500 Unknown command.
...........
:D Hello!
I think that the server settings make that the FEATures command is understood or not! In example, I send files to two Unix L8, one recognizes the command and returns:
FEAT
211-Extensions supported:
CLNT
MDTM
MLST type*;size*;modify*;UNIX.mode*;UNIX.owner;UNIX.uid;UNIX.group;UNIX.gid;unique
PASV
REST STREAM
SIZE
TVFS
Compliance Level: 19981201 (IETF mlst-05)
211 End.

and the other returns:
FEAT
500 FEAT not understood.

You might ask for a change to your IP...
:wink: Also: when you have FTP set, choose "Automatic" as the transfert-mode in the up-left combobox; that opens a small dialog, in the field of which you can add / remove extensions of files to send as "Text"...
Currently, TC doesn't convert DOS / Windows TXT format to UNIX one; it can only compare same files in both format; from the Help:
Unix machines store text files in a different way than DOS / Windows machines. Unix machines store the line end sign in a single character, while DOS / Windows uses two characters (carriage return / line feed). Therefore text files (including HTML) are smaller on Unix than on DOS machines!
TC has provisions to recognize a UNIX-txt as the same file than a DOS / Win one, but doesn't make a change...
:D friendly,
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply