⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rz.1

📁 ZMODEM协议的实现
💻 1
字号:
'\" Revision Level '\" Last Delta     03-25-89.TH RZ 1 OMEN.SH NAMErx, rb, rz \- XMODEM, YMODEM, ZMODEM (Batch) file receive.SH SYNOPSIS.B rz.RB [\- "\ +abepqtuvy" ].br.B rb.RB [\- "\ +abqtuvy" ].br.B rx.RB [\- "\ abceqtuv" ].I file.br.B gz.I "file ...".br.RB [ \- ][ v ] rzCOMMAND.SH DESCRIPTIONThis program uses error correcting protocols to receivefiles over a dial-in serial port from a variety of programs running underPC-DOS, CP/M,.SM Unix,and other operating systems.It is invoked from a shell promptmanually, or automatically as a result of an"sz file ..." command given to the calling program..B.I Rzis not intended be called from.I cu(1),or other communications programs.Unix flavors of Omen Technology'sProfessional-YAM communications softwareare available for dial-out applications..R.B Rz(Receive ZMODEM)receives files with the ZMODEM batch protocol.Pathnames are supplied by the sending program,and directories are made if necessary (and possible).Normally, the"rz" command is automatically issued by the calling ZMODEM program,but some defective ZMODEM implementations may require starting.I rzthe old fashioned way..I Rzdoes not support ZMODEM Crash Recovery,compression, and other ZMODEM features.Unix flavors of Professional-YAM may be linked to "rz"and used in place of this programto support these ZMODEM features..B Rbreceives file(s) with YMODEM,accepting either standard 128 byte sectors or1024 byte sectors(YAM sb.B -koption).The user should determine whenthe 1024 byte block lengthactually improves throughput without causing lost dataor even system crashes.If True YMODEM (Omen Technology trademark) file information (file length, etc.)is received,the file length controls the number of bytes written tothe output dataset,and the modify time and file mode(iff non zero)are set accordingly.If no True YMODEM file information is received,slashes in the pathname are changed to underscore,and any trailing period in the pathname is eliminated.This conversion is useful for files received from CP/M systems.With YMODEM, each file name is converted to lower caseunless it contains one or more lower case letters..B Rxreceives a single.I filewith XMODEM or XMODEM-1k protocol.The user should determine whenthe 1024 byte block lengthactually improves throughput without causing problems.The user must supply the file name to both sending and receiving programs.Up to 1023 garbage characters may be added to the received file..B Gzis a shell script which calls.I szto command Pro-YAM or ZCOMM to transmit the specified files.Pathnames used with.I gzmust be escaped if they have special significance to the Unix shell..brEXAMPLE:gz "-a C:*.c D:*.h".B Rzmay be invoked as.B rzCOMMAND(with an optional leading \- as generated by login(1)).For each received file,.I rzwill pipe the file to ``COMMAND filename''where filename is the name of the transmitted filewith the file contents as standard input.Each file transfer is acknowledged when COMMAND exits with 0 status.A non zero exit status terminates transfers.A typical use for this form is.I rzrmailwhich calls rmail(1)to post mail to the user specified by the transmitted file name.For example, sending the file "caf" from a PC-DOS system to.I rzrmailon a.SM Unixsystemwould result in the contents of the DOS file "caf" being mailed to user "caf".On some.SM Unixsystems, the login directory must contain a link toCOMMAND as login sets SHELL=rsh which disallows absolutepathnames.If invoked with a leading ``v'',.I rzwill report progress to /tmp/rzlog.The following entry works for.SM UnixSYS III/V:.cerzrmail::5:1::/bin:/usr/local/rzrmailIf the SHELL environment variable includes.I "rsh"or.I "rksh"(restricted shell),.I rzwill not accept absolute pathnamesor references to a parent directory,will not modify an existing file, andremoves any files received in error.If.B rzis invoked with stdout and stderr to different datasets,Verbose is set to 2, causing frame by frame progress reportsto stderr.This may be disabled with the.B qoption..PPThe meanings of the available options are:.PP.PD 0.TP.B aConvert files to.SM Unixconventions by stripping carriage returns and all charactersbeginning with the first Control Z (CP/M end of file)..TP.B bBinary(tell it like it is)file transfer override..TP.B cRequest 16 bit CRC.XMODEM file transfers default to 8 bit checksum.YMODEM and ZMODEM normally use 16 bit CRC..TP.B DOutput file data to /dev/null; for testing.(Unix only).TP.B eForce sender to escape all control characters;normally XON, XOFF, DLE, CR-@-CR, and Ctrl-X are escaped..TP.B p(ZMODEM) Protect: skip file if destination file exists..TP.B qQuiet suppresses verbosity..TP.B "t tim"Change timeout to.I timtenths of seconds..TP.B vVerbosecauses a list of filenames to be appended to/tmp/rzlog .More v's generate more output..TP.B yYes, clobber any existing files with the same name..PD.ne 6.SH EXAMPLES.RE(Pro-YAM command).RS.I <ALT-2>.brPro-YAM Command:.I "sz *.h *.c".br(This automatically invokes.I rzon the connected system.).RE.SH SEE ALSOZMODEM.DOC,YMODEM.DOC,Professional-YAM,crc(omen),sz(omen),usq(omen),undos(omen)Compile time options requiredfor various operating systems are described in thesource file..SH NOTESZMODEM's support of XOFF/XON flow control allows properoperation in many environments that do not support XMODEM uploads.Unfortunately, not all timesharing systems support input flow control.The TTY input buffering on some systems may not adequately buffer long blocksor streaming input at high speed.You should suspect this problem when youcan't send data to the Unix system at high speeds using ZMODEM,but YMODEM-1k or XMODEM-1k,when YMODEM with 128 byte blocks works properly.The DSZ or Pro-YAM.B "zmodem l"numeric parameter may be set to a value between 64 and 1024 to limit theburst length ("zmodem pl128").Although this compromises ZMODEM's throughput,ZMODEM's superior reliability remains intact.If a program that does not properly implementthe specified file transfer protocolcauses.I rzto "hang" the port after a failed transfer,either wait for.I rzto time out or keyboard a dozen Ctrl-X characters.Every reported instance of this problem has been corrected by usingZCOMM, Pro-YAM, DSZ, or other program with a correct implementationof the specified protocol.Many programs claiming to support YMODEM only support XMODEM with 1k blocks,and they often don't get that quite right.In the case of a few poorly designed microcomputers,sending serial data to a tty portat sustained high speedshas been known to cause lockups, system halts, kernel panics,and occasional antisocial behaviour.This problem is not unique to.I rz;CRT terminals with block mode transmission and line noisehave the same effect.  When experimenting with high speedinput to a system, consider rebooting the system if the filetransfers are not successful, especially if the personality ofthe system appears altered.The Unix "ulimit" parameter must be set high enoughto permit large file transfers to Unix.32 bit CRC code courtesy Gary S. Brown.Directory creation code from John Gilmore's PD TAR program..SH BUGS.I Rzis not intended be called from.I cu(1),or other communications programs.Unix flavors of Omen Technology'sProfessional-YAM communications softwareare available for dial-out applications..I Rzdoes not support ZMODEM Crash Recoveryand many other ZMODEM features.Unix flavors of Professional-YAM may be linked to "rz"to support these features.Pathnames are restricted to 127 characters.In XMODEM single file mode, the pathname given on the command lineis still processed as described above.The ASCII option\'s CR/LF to NL translation merely deletes CR\'s;undos(omen) performs a more intelligent translation..SH "VMS VERSION"The VMS version does not set the file time.VMS C Standard I/O and RMS may interact to modifyfile contents unexpectedly.The VMS version does not support invocation as.B rzCOMMAND .The current VMS version does not support XMODEM, XMODEM-1k, or YMODEM.According to the VMS documentation,the buffered input routine used on the VMS version of.I rzintroduces a delayof up to one second for each protocol transaction.This delay may be significant for very short files.Removing the "#define BUFREAD" line from rz.c willeliminate this delay at the expense of increasedCPU utilization.For high speed operation,try increasing the SYSGEN parameter TTY_TYPAHDSZ to 256.The VMS version causes DCL to generate a random off the wallerror message under some error conditions; this is a result ofthe incompatibility of the VMS "exit" function with theUnix/MSDOS standard..SH "ZMODEM CAPABILITIES".I Rzsupports incoming ZMODEM binary (-b), ASCII (-a),protect (-p),clobber (-y),and append (-+)requests.Other options sent by the sender are ignored.The default is protect (-p) and binary (-b).The Unix versions support ZMODEM command execution..SH FILESrz.c, crctab.c, rbsb.c, zm.c, zmodem.h Unix source files.rz.c, crctab.c, vrzsz.c, zm.c, zmodem.h, vmodem.h, vvmodem.c,VMS source files./tmp/rzlog stores debugging output generated with -vv option(rzlog on VMS).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -