FTP transfers| Kermit transfers| Zmodem transfers| Miscellaneous methods
Also, note that wildcard are slightly different between DOS and Unix. *.* to DOS means all files, while to Unix it means all files with a '.' in them. * to Unix means all files, but to DOS usually means all files without a file extension.
To transfer a file, start ftp (here we assume typing ftp will start up ftp). FTP usually will transfer files in ASCII (text) mode by default. However, you can explicitly request ascii by typing ASCII (sometimes 'text' depending on the FTP client). To request binary transfer type binary (or sometimes image).
FTP has two ends to it. The
If you want to tranfer multiple files, FTP usually has the commands mput and mget for multiple get or put. Often these will prompt you for each file unless you tell the client not to ask (with a command such as nointeractive or prompt). To see what files are on the remote system, use the dir command. If you need to change directories, the cd command is used. And when you are all done, use the quit command to close the connection.
A typical session might look like:
~> ftp engrs1 Connected to engrs1.unl.edu. 220 engrs1 FTP server (Version 4.13 Wed Apr 27 08:16:51 CDT 1994) ready. Name (engrs1:jdoe): ftp 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. ftp> dir 200 PORT command successful. 150 Opening data connection for /bin/ls. total 32 drwxr-sr-x 2 root mohonk 512 Mar 2 1995 bin drwxr-sr-x 2 root mohonk 512 Mar 2 1995 etc drwxr-sr-x 2 root mohonk 512 Mar 8 1995 lib drwxr-sr-x 5 root mohonk 512 Mar 18 16:04 pub 226 Transfer complete. ftp> cd pub 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening data connection for /bin/ls. total 904 drwxr-sr-x 3 634 mohonk 2048 Mar 4 16:02 eeshop -rw-r--r-- 1 root mohonk 450560 Mar 18 16:04 imagestuff.tar drwxrwsr-x 9 mohonk mohonk 512 May 17 1995 mohonk drwxr-sr-x 2 root mohonk 1024 Aug 29 1995 tmp 226 Transfer complete. ftp> get imagestuff.tar 200 PORT command successful. 150 Opening data connection for imagestuff.tar (450560 bytes). 226 Transfer complete. 453317 bytes received in 1.08 seconds (410 Kbytes/s) ftp> quit 221 Goodbye.
The best kermit software can be configured to run faster than Zmodem. The Kermit FAQ document is also available.
For text files, type kermit -x. For binary files type kermit -ix. These commands put kermit into what is known as server mode. Using server mode, you can issue commands from a kermit client to transfer files, create directories, change directories, etc.
To transfer a file from the Workstation to a PC (download), type get filename. To transfer a file from your PC to the workstation (upload), type put filename. Wildcards work with both of these command (see caveats in first section however).
Repeat as necessary
If you have a good kermit client program, you should have commands available for changing directories, doing directories, etc. Those are typically client dependent, so they won't be covered here. See your software manual...
When you are done, select finish kermit server that should be in the same place as your other kermit commands. In the real kermit, you issue the finish command. As an alternative, a bye command is usually available which stops the kermit server and logs you out.
For recieving text files, type kermit -r filename. For binary files type kermit -ir filename. Then, do whatever sequence (mouse or keyboard) you need to to send a file (eg, in procomm, you would press page-up and then select kermit send and then type in the name of the file to transfer).
Repeat above steps as necessary.
For sending text files, type sz filename. For binary files type sz -b filename. Then, do whatever sequence (mouse or keyboard) you need to to receive a file (eg, in procomm, you would press page-down and then select Zmodem receive)
For recieving text files, type rz. For binary files type rz -b. (Zmodem sends the file name as part of its protocol.) Then, do whatever sequence (mouse or keyboard) you need to to send a file (eg, in procomm, you would press page-up and then select Zmodem send and then type in the name of the file to transfer).