all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Goldman <kgold@watson.ibm.com>
To: help-gnu-emacs@gnu.org
Subject: Re: ange-ftp using binary mode
Date: Wed, 15 Feb 2012 14:59:43 -0500	[thread overview]
Message-ID: <jhh2rf$5np$1@dough.gmane.org> (raw)
In-Reply-To: <87zkclttaa.fsf@gmx.de>

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	other threads:[~2012-02-15 19:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 21:55 ange-ftp using binary mode Ken Goldman
2012-02-11  7:01 ` Eli Zaretskii
2012-02-15 20:17   ` Ken Goldman
2012-02-15 20:49     ` Eli Zaretskii
2012-02-15 21:25       ` Ken Goldman
2012-02-14 13:54 ` Michael Albinus
2012-02-15 19:59   ` Ken Goldman [this message]
2012-02-15 21:30 ` Ken Goldman
2012-02-16 10:42   ` Michael Albinus
2012-02-23 19:59     ` Ken Goldman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jhh2rf$5np$1@dough.gmane.org' \
    --to=kgold@watson.ibm.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.