help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ange-ftp using binary mode


From: Ken Goldman
Subject: Re: ange-ftp using binary mode
Date: Wed, 15 Feb 2012 14:59:43 -0500
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

On 2/14/2012 8:54 AM, Michael Albinus wrote:
Ken Goldman<kgold@watson.ibm.com>  writes:

I have to use ange-ftp because the server I'm connecting to doesn't
run ssh.  When I transfer, it uses binary, which does not work.  The
server is a mainframe and likely uses ebcdic.

If I ftp from the command line in ascii mode, the file comes over to
Windows correctly.  If I enter the commands by hand in the ange-ftp,
setting ascii, it works.

How do I tell ange-ftp to use ascii?

I set ange-ftp-binary-file-name-regexp to "", even though the .cpp
file wasn't in the regexp.

`ange-ftp-binary-file-name-regexp' tells, which files are to be
transferred in binary mode. "" matches ALL files. So you must set it to
a regexp, which doesn't match any file name, like "^$" (which is the
empty file name).

I tried this, but it still transfers in binary.

~~~~~~~~

ange-ftp-binary-file-name-regexp is a variable defined in `ange-ftp.el'.
Its value is "^$"

~~~~~~~~~~
ftp trace:
~~~~~~~~~~

quote mdtm /SYSTEM/home/suimgvb/ken/client.cpp
501 command aborted -- FTP server not configured for MDTM
type binary
200 Representation type is Image
get /SYSTEM/home/suimgvb/ken/client.cpp c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ange-ftp5768MyT
200 Port request OK.
125 Sending data set /SYSTEM/home/suimgvb/ken/client.cpp

250 Transfer completed successfully.
ftp: 38381 bytes received in 0.08Seconds 485.84Kbytes/sec.
type ascii
200 Representation type is Ascii NonPrint
quote mdtm /SYSTEM/home/suimgvb/ken/client.cpp
501 command aborted -- FTP server not configured for MDTM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]