[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9. About ange-ftp

9.1 How I can use "ange-ftp"?  
9.2 How I can configure ange-ftp to access over proxy-server-type firewalls?  
9.3 Meadow causes error when I use ange-ftp to access over firewalls or dial-up routers which have NAT (IP masquerade) facilities.  
9.4 How can I use passive mode on ange-ftp? How can I use SSH port forwarding?  
9.5 Meadow causes error "No file on this line" when I select files on dired using ange-ftp.  
9.6 I cannot access directory except the initial login directory on ange-ftp.  
9.7 Windows 95 hangs up when I close Meadow after using ange-ftp.  
9.8 File corrupts, or Meadow reports error during file transfer, when I open binary file by ange-ftp.  
9.9 Host name completion for ange-ftp  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.1 How I can use "ange-ftp"?

The console application "ftp.exe" comes with Meadow. Type C-x C-f (find-file) or C-x d (dired), then /username@hostname:/directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.2 How I can configure ange-ftp to access over proxy-server-type firewalls?

Put the following code in your `.emacs'. Modify values according to your network configuration.

 
(setq ange-ftp-gateway-host "proxy-server"
      ange-ftp-smart-gateway-port "21"
      ange-ftp-local-host-regexp ".*"
      ange-ftp-smart-gateway t
      )

Specify ange-ftp-gateway-host as host name of the proxy server, ange-ftp-smart-gateway-port as port number of the proxy server. Set host name regexp you want to access directly, not to access over proxy, to ange-ftp-local-host-regexp.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.3 Meadow causes error when I use ange-ftp to access over firewalls or dial-up routers which have NAT (IP masquerade) facilities.

"ftp.exe" comes with Meadow and Mule for Win32 sometimes behave wrong when it is used with firewalls or dial-up routers which have NAT facilities. In such case, use "ftp.exe" available from http://virtunix.itribe.net/ instead.

It is reported that this problem is caused with NTT-TE MN128-SOHO, OMRON MT128-NET/D.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.4 How can I use passive mode on ange-ftp? How can I use SSH port forwarding?

It is reported you can use passive mode FTP with ftp-for-win32.zip. This seems to help you to use ange-ftp via SSH port forwarding.

There is TRAMP, which might help you to access remote file with rsh or ssh.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.5 Meadow causes error "No file on this line" when I select files on dired using ange-ftp.

The date field of the file list is displayed in non-ASCII characters, isn't it? This problem happens frequently when accessing hosts which are running Japanese version of Solaris with ange-ftp. In such case, put the following code in your `.emacs':

 
(setq dired-move-to-filename-regexp
      (let* ((l "[A-Za-z\xa0-\xff]")
	     (k "[^\x00-\xff]")
	     (s " ")
	     (yyyy "[0-9][0-9][0-9][0-9]")
	     (mm "[ 0-1][0-9]")
	     (dd "[ 0-3][0-9]")
	     (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
	     (western (concat l l l s dd s "\\(" HH:MM "\\|" s yyyy "\\)"))
	     (japanese (concat mm k " " dd k s
			       "\\(" s HH:MM "\\|" yyyy k "\\)")))
	(concat s "\\(" western "\\|" japanese "\\)" s)))
(eval-after-load
 "ange-ftp"
 '(progn
    (setq ange-ftp-date-regexp
	 (let* ((l "[A-Za-z\xa0-\xff]")
		(k "[^\x00-\xff]")
		(s " ")
		(mm "[ 0-1][0-9]")
		(dd "[ 0-3][0-9]")
		(western (concat l l l s dd))
		(japanese (concat mm k s dd k)))
	   (concat s "\\(" western "\\|" japanese "\\)" s)))))

This problem can be fixed at the server side by setting the environmental variable LANG to "C", then restarting the ftpd.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.6 I cannot access directory except the initial login directory on ange-ftp.

There are ftp servers with ls which doesnot produce outputs as ange-ftp expects. In such case, the following code might help you. This example is for netftp.asahi-net.or.jp, the ftp server of ASAHI-NET, which is reported to correspond to such situation.

 
(setq ange-ftp-dumb-unix-host-regexp "^netftp\\.asahi-net\\.or\\.jp$")


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.7 Windows 95 hangs up when I close Meadow after using ange-ftp.

We do not know the fundamental cause and solution for this problem yet. It is reported that the following code reduces frequency of this trouble's occurrence.

 
(if (fboundp 'org:delete-process)
    nil
  (fset 'org:delete-process (symbol-function 'delete-process))
  (defun delete-process (proc)
    (sit-for 1)
    (org:delete-process proc)))


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.8 File corrupts, or Meadow reports error during file transfer, when I open binary file by ange-ftp.

Set proper value to ange-ftp-binary-file-name-regexp. The following code lets ange-ftp to transfer all files in binary mode.

 
(setq ange-ftp-binary-file-name-regexp ".*")

(This problem, however, may happen only on Mule for Win32, and may not happen on Meadow by default setting. Meadow always uses binary mode if the ftp server is running UNIX.)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.9 Host name completion for ange-ftp

ange-ftp can generate completion candidates to access remote hosts from the file `.netrc'. See comment lines of `ange-ftp.el' for details. You can find the format of `.netrc' in ftp(1) man page.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Keiichiro Nagano on April, 5 2002 using texi2html