ftpput script: perl ?
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Apr 20 21:18:06 UTC 2004
On Wed, Apr 21, 2004 at 12:42:59AM +0300, Peter L. Peres wrote:
> The binary is almost never needed although applications set binary before
> starting transfer. The ftp protocol clearly specifies the default transfer
> protocol to be 8 bit clean ascii, as in, binary (in the present sense of
> the word). And binary in the sense of the ftp rfc's isn't what you'd think
> at all. It dates back to 36 bit pdp and vax abominations and such. In
> fact, unless you are talking to a mainframe from the previous century that
> cannot help itself you probably do not want to set binary at all I think.
Using ascii mode when ftp server is unix and ftp client in DOS will
corrupt your files as it does CR/LF conversions in ascii mode. At least
some clients do.
> As to telnet, you can control a ftp session using a telnet client
> connecting to port 21 on the remote machine, and netcopy. It's very easy.
> telnet xxx, user, pass, pasv (this tells you the port), retr <file>, and
> then netcopy the data (up or down), like nc there port </dev/null
> >file.here . nc is in the netcopy package.
Still not my idea of a nice simple protocol.
And there is still active/passive mode.
Lennart Sorensen
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list