ftp - Initiate an FTP connection
ftp
ftp initiates a File Transfer Protocol (FTP) connection to a remote host on the network. Using FTP, editing of files may be performed in much the same way as on the local file system. Directory listings may be retrieved and traversed using the mouse or cursor keys. Using the directory listing, files may be transfered to/from the remote host to the local machine.
On issuing the command then a dialog is presented to the user which is used to open the connection. The dialog entries are defined as follows:-
Registry File
If the registry information is omitted then the information is not saved between sessions.
Site Name
Host Address
User Name
Password
Take note of the comments provided above regarding the password information.
Initial Host Path
On selecting Connect then a FTP connection is opened and the initial directory appears as a directory listing, if the initial path is a file then the file is loaded into the editor.
Thereafter the file may be edited within the editor as normal, on a write operation then the file is written back to the host, via FTP.
On opening a FTP connection the progress of the transfer, and the FTP commands issued, may be viewed in the *ftp-console* buffer. This buffer may automatically appear depending upon the value of the %ftp-flags(5) variable.
ftp is a macro implemented in ftp.emf. This uses the underlying command find-file(2) to implement the FTP transfer.
FTP files can be directly loaded and edited using the standard file commands such as find-file(2).
The FTP addresses are retained in a registry file (see erf(8)). The registry file is automatically loaded when MicroEmacs starts up each session. The current site information may be viewed using list-registry(2) and is located at the following registry addresses:-
/url
/url/ftp/<hostName>
/url/ftp/<hostName>/host
/url/ftp/<hostName>/user
/url/ftp/<hostName>/pass
/url/ftp/<hostName>/path
When a FTP connection is initiated then the connection (socket) remains open for a period of approximately 4 minutes from the last transfer time, after that the connection is automatically closed and is re-initiated if required again.
NOTE: For windows platforms then the resultant executable must be built with URL support enabled, for UNIX platforms socket support is automatically enabled.
Directory completion is not available when the current working directory is an FTP address. To work around this from the command line, select <RETURN> to get a directory listing of the current directory and select the file(s) from the directory to load.
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12