Linux / Unix Command: rz

yum install lrzsz

 

Most communications programs invoke rz and sz automatically. You can also connect to a remote system, log in, and manually invoke sz with the flags you want to use. Zmodem automatically downloads the files to your home system using the same filenames. (Zmodem tools aren't clever about filenames, so when you download to MS-DOS, be careful about getting files with names that can't be squeezed into the filename.ext DOS filename limit. If you transfer filename.extension, it arrives on your DOS host converted to filename.ext, which is probably OK. But, if you try to transfer filename.more.extension, most Zmodem utilities will give up, probably with a misleading message that the transfer completed.)

One of the most confusing things about Zmodem transfer is determining the command to use to perform the transfer. You have to remember which system you are invoking the command from and which system contains the files to transfer. A consistent way to perform Zmodem transfer is to always invoke the transfer on the remote host, whether uploading (sending to the remote host) or downloading (receiving from the remote host). For example, if you are logged in to a remote host (using C-Kermit, or Telix, or whatever) and want to send some text files from that system to your home system, you might enter something like this:

$ sz -a *.txt

sz would queue the files and successively send them back to the local system. The -a option stands for ASCII and ensures that carriage returns and newlines appear as they should on the system where the file ends up.

 

On the other hand, if you want to upload some files (receive them on the remote host), you would simply enter the following command:

$ rz

The remote system would then prompt something like this:

rz ready to begin transfer, type "sz file …" to your modem program 
**B0100000023be50

rz waits patiently for you to switch back to the local host and give it a Zmodem send command, using sz directly, or through the software you are using. For example, if you call the remote host using ProComm, you would press Page Up and select Zmodem transfer from the pop-up menu and then enter the files to send on the input line ProComm provides.

posted @ 2013-12-08 17:49  Monn  阅读(431)  评论(0编辑  收藏  举报