Contents
NFTP is a text-mode ftp client for OS/2. Comparing to popular ncftp, it has a number of enhancements:
The biggest advantage (and one of the main desing concepts) of NFTP is speed and effectiveness of text-mode keyboard user interface.
OS/2 4.0 (Merlin) has introduced concept of 'FTP Folder', similar to LW-FTP and offering seamless integration of FTP client and Workplace Shell (via WPS class). They are funny and easy to use, but play and work are different things. If you really need to transfer files regularly and in large quantities you'll look for more useful and less fancy program than 'FTP Folder'.
However, NFTP isn't free as ncftp. But registration fee is only US$ 20 -- and you'll get all future versions and support by e-mail at this price! See registration details below.
If you want to install NFTP by hand (without install.cmd), copy all files into the directory of your choice (eg, "d:\apps\tcpip\nftp"), rename nftp.in into nftp.ini, load it into your favourite ASCII text editor (eg, TEDIT shipped with Warp) and insert your e-mail address (it will be used as a password for anonymous logins) at the appropriate place:
anonymous-password=Then decide where you will keep your bookmarks and transfer history and set corresponding variables accordingly. If you like to launch programs from desktop, create program object for NFTP. Rename supplied nftp.bm file to nftp.bmk and put it into the directory which you've chosen in nftp.ini. BMKCONV.CMD can be used to convert old bookmarks file (nftp.mrk) into new format (nftp.bmk).
The language NFTP uses is determined by environment variable
NFTP_LANG
. It should be set to the name (without
extension) of corresponding DLL file. E.g., if you want to use
Japanese version, you should use
set NFTP_LANG=japanesThis statement can be put to
config.sys
or to the
batch file invoking nftp (install.cmd
does exactly this).
If you only need English version you may omit this variable.
install.cmd creates Workplace shell object to run NFTP. This feature can be useful even you are die-hard command-line user (see below). NFTP can run in a fullscreen session or in a VIO window. Installation script sets it to run in a window, and window will not be closed automatically after exit -- this can help to diagnose problems. Turn it off when everything works as expected.
If somehow WPS NFTP folder is lost, you can create it again with makeobjs.cmd.
After installation, run nftp.cmd (from command line or WPS object). If you're launching NFTP from WPS object created by installation script you will be asked to enter "FTP server to log in"; simply press ENTER now. You should see list of bookmark folders on the screen. Use cursor keys to select one of them and press ENTER. You are now inside folder; you can return to folder list by pressing Esc or left arrow key. Select one of the sites listed in the folder contents; press ENTER again. If everything is set up correctly, you'll see client-server negotiation and then finally list of files and directories on the ftp server you've chosen. Hit SPACE to view control connection window (and it is scrollable!), TAB to view local files/directories. Return to remote directory view by pressing space/tab another time. Move pointer with cursor keys, press ENTER on a directory to enter it. If you know name of the file (or first symbols of the name), type it directly: NFTP will try to position cursor on a file which name starts with these symbols. Select files to download with INSERT or simply press F5 to transfer single file. To upload file to server, switch to local files view (with TAB), select file(s) and press Shift-F5. To view local or remote file, move pointer to it and press F3 (of course, remote file will be downloaded first -- that will probably take some time). Press F10 to log off and exit NFTP.
You often already know where the file you need right now is located. Let's suppose, say, you want to retrieve RFC 959 from
src.doc.ic.ac.uk:/pub/rfc/Launch nftp in the following fashion:
nftp src.doc.ic.ac.uk:/pub/rfc or nftp src.doc.ic.ac.uk/pub/rfc or even nftp ftp://src.doc.ic.ac.uk/pub/rfcAfter logging in into src.doc.ic.ac.uk nftp will change directory for you to /pub/rfc. Having directory listing before you, start typing 'rfc959': cursor will be positioned on rfc959.txt.gz. You may now download required file.
The command line format for NFTP is:
nftp [hostname[[:[port]]directory] [userid] or nftp -{F|f} hostname[:port]filename]Second format is used to download single file; use 'F' if you want to log off afterwards and 'f' if you want to stay connected. "hostname" is the name of ftp server ('src.doc.ic.ac.uk' in the above example), ":" can be omitted, "directory" is remote directory ('/pub/rfc' in the above example), "port" is port number (don't use it if you don't know what's it). If you have an account on ftp server (i.e. you're not anonymous user), you can specify your userid in the command line. You will be asked for a password. An important note -- there shouldn't be any spaces between hostname and directory! Other examples are:
nftp private.crlf.net:7500/users (nonstandard port) nftp ftp/pub (domain suffix omitted) nftp 128.128.128.128:/mydir (IP number instead of host name) nftp lnfm1.sai.msu.su/home/asv asv (login with explicit directory and real password) nftp -F ftp.sai.msu.su:/pub/os2/internet/ftp/nftp100.zip (retrieve NFTP 1.00 and then log off)
Specifying directories in a command line is a pretty useful feature: when you've found some reference, paste it directly into the command line and you'll get right into the place without typing anything except Ctrl-Ins and Shift-Ins!
NFTP will try to use any text mode you have set before starting it. Only 80 column modes do work however.
NFTP has several ways to choose ftp server:
To log off, use Ctrl-K; F10 will log off and exit NFTP.
Currently, NFTP does not work with Squid-style ftp proxy servers.
You decide of what type your firewall is, and then edit NFTP.INI setting appropriate variables:
Complete list of available commands is in the Keyboard Commands Summary section. You can also view it while working with NFTP - just press F1. Ctrl-F1 displays context-sensitive help, i.e. keystrokes valid in the current mode. Shift-F1 shows general information about program usage.
During transfer, you can skip files (S) and interrupt transfer (Q). Response to these keys is usually slow if server is very far away and link is slow. Not all server software handles transfer interruption. I will try to improve this part of NFTP in next versions.
To look at the file, use F3 (fast internal viewer). If you happened to love some particular file viewer you can use it instead (edit NFTP.INI to set name of the viewer and then use Alt-F3). When using internal viewer, files are cached in memory (so if you'll want to look at the file again, NFTP won't transfer it again).
The file NFTP.INI is plain ASCII file and can be edited with any ASCII editor (e.g., "System Editor" or "TEDIT"). Lines starting with semicolon ";" are comments; empty lines are ignored. The file itself holds comments about configuration and parameter meaning. NFTP folder has an icon which starts OS/2 System Editor and loads NFTP.INI.
Note that only one entry in NFTP.INI is required -- your e-mail address (anonymous-password). Installation script sets some others. Do not forget to remove leading ";" when doing customizations.
To get rid of overhead of parsing of text initialization file, NFTP converts NFTP.INI into NFTP.BIN. This operation is done only when necessary (i.e. when NFTP.BIN does not exist or older than NFTP.INI). Conversion is fully automatic and done by NFTP-OPT. Please note that file NFTP-OPT.EXE should be placed into the same directory as NFTP.INI or into the directory listed in PATH environment variable. In general, you shouldn't worry about it.
Complete explanation of all parameters in NFTP.INI is in NFTP.INI itself. I feel it is more appropriate place than this manual; it makes little sense to duplicate information here.
Parameters can be of one of three types: integer, boolean and string. Integer values are represented by integers and can be prefixed by sign. Boolean values can be specified as "0", "n", "no" (false), "1", "y", "yes" (true) (without quotes). Different capitalization (e.g., "Yes") can also be used. Strings are represented by character sequencies enclosed into double quotes; if value contains only letters, digits and minus sign you can safely omit quotes.
The size of files that can be transferred with free version is limited to 500KB. If you want to exploit full capabilities of the Program and receive support by e-mail from author, you have to register your copy. See section Registration below. If you don't need neither to transfer files larger than 500KB nor support you don't have to register. Using unregistered version is perfectly legal; the above conditions apply.
The Program (NFTP) is owned by Sergey Ayukov and is copyrighted and licensed, not sold. The term "Program" means the original program and all whole or partial copies of it.
You may:
The Program is provided `as is'. Any express or implied warranties, including, but not limited to, the implied warranties for merchantability and fitness to a particular purpose are disclaimed. Sergey Ayukov will not be liable for any lost profits, lost savings, incident, special, or indirect damages or other economic consequential damages, even if Sergey Ayukov has been advised of the possibility of such damages. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you.
You may:
Many people have helped me in creating and improving NFTP. They are (in alphabetical order):
This program is packaged using Info-ZIP's compression utility. Info-ZIP's software (Zip, UnZip and related utilities) is free and can be obtained as source code or executables from various bulletin board services and anonymous-ftp sites, including CompuServe's IBMPRO forum and ftp.uu.net:/pub/archiving/zip/*.
Registration fee is US$ 20. For this price you'll get free updates (i.e. all future versions of NFTP) and support from author by e-mail. Single registration covers all national language versions, so if you want to run, say, English and Chinese versions, you'll have to pay only once.
As of 15 Apr 1997, there are two ways to register. You might view NFTP homepage to check whether new methods of registration are available. Registration via OS/2 "Must-Have" utilities at SoftTouch Systems hasn't materialized (yet).
In any case, whether you are registering via BMT Micro or directly with author, fill in 'regform.txt' supplied with NFTP and e-mail it to myself (asv@sai.msu.su).
SABR RU MM 100
Savings Bank of the Russian Federation,
Moscow Bank corr. acc. 081000031
Khamovnicheskoe branch N 7812/0495
account 3800170500199
This way is reliable but not fastest: it can take 2 weeks for money to
reach my bank, and you'll wait all that time. Your bank might also
ask unreasonably large fee for transfer, especially when converting
from other currency.
For people living in Former Soviet Union countries registration
costs only one postcard. Send
nice postcard (preferably with your home town if it's not Moscow)
enclosed in envelope to
You can reach me at asv@sai.msu.su.
Where to find new versions:
Note that first site is managed by myself so it always contains the latest version while Hobbes and cdrom archives sometimes become outdated.
Sorry for any typos and bad grammar. I will gladly accept any corrections to this manual.
Actually, I guess few people read this rather stupid manual which describes relatively simple software. I bored to write it (smile). Do you think that improvements are necessary? In what parts? Please tell me.