📄 sz.1
字号:
.TH SZ 1.SH NAMEsz \- send a file using the zmodem protocol.SH SYNOPSIS\fBsz\fR [\fB\-LNbdefnopqruvy+\fR]\fR [\fB\-ci \fIcommand\fR] [\fB\-Ll\fR n\fR] [\fB\-t \fItimeout\fR]\fR.br.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS.FL "\-L" "Use \fIn\fR-byte packets".FL "\-N" "Overwrite if source is newer/longer".FL "\-b" "Binary file".FL "\-c" "Send command for execution".FL "\-d" "Convert dot to slash in names".FL "\-e" "Escape for all control characters".FL "\-f" "Send full path name".FL "\-i" "Send command and return immediately".FL "\-l" "Flow control every \fIn\fR packets".FL "\-n" "Overwrite destination if source is newer".FL "\-o" "Use old (16-bit) checksum".FL "\-p" "Protect file if it already exists".FL "\-q" "Quiet; opposite of verbose".FL "\-r" "Resume interrupt file transfer".FL "\-t" "Set \fItimeout\fR in tenths of a second".FL "\-u" "Unlink file after successful transmission".FL "\-v" "Verbose; opposite of quiet".FL "\-y" "Yes, clobber existing files".FL "\-+" "Append to an existing file".SH EXAMPLES.EX "sz file </dev/tty01 >/dev/tty01" "Send \fIfile\fR".SH DESCRIPTION.PPXMODEM, YMODEM, and ZMODEM are a family of protocols that are widely usedis the \s-2MS-DOS\s0 world for transferring information reliably from onecomputer to another. In all of these protocols, a series of bytes are sentfrom one computer to the other, and then an acknowledgement is sent backto confirm correct reception. Checksums are used to detect errors so thattransmission is reliable even in the face of noisy telephone lines.\fISz\fR is a program that sends a file sent from another computer using thezmodem protocol.The file can be received using \fIrz\fR..PP\fISz\fR uses the ZMODEM error correctingprotocol to send one or more files over a dial-in serialport to a variety of programs running under\s-2MINIX\s+2,\s-2UNIX\s+2, \s-2MS-DOS\s0, \s-2CP/M\s0, \s-2VMS\s0, and other operating systems.It is the successor to XMODEM and YMODEM..PPZMODEM greatly simplifies file transfers compared to XMODEM.In addition to a friendly user interface, ZMODEM providesPersonal Computer and other users an efficient, accurate,and robust file transfer method..PPZMODEM provides complete end-to-end data integrity betweenapplication programs. ZMODEM's 32 bit CRC catches errorsthat sneak into even the most advanced networks..PPOutput from another program may be piped to \fIsz\fR fortransmission by denoting standard input with \-:.PP.B " ""ls \-l | sz \-".PPThe program output is transmitted with the filename \fIsPID.sz\fRwhere PID is the process ID of the \fIsz\fR program. If theenvironment variable \fIONAME\fR is set, that is used instead. Inthis case, the command:.PP.B " ""ls \-l | ONAME=con sz \-ay \-".PPwill send a \&'file\&' to the PC-DOS console display. The \fB\-y\fR option instructs the receiver to open the file for writingunconditionally. The \fB\-a\fR option causes the receiver toconvert \s-2UNIX\s+2newlines to PC-DOS carriage returns and linefeeds.On\s-2UNIX\s+2systems, additional information about the file istransmitted. If the receiving program uses thisinformation, the transmitted file length controls the exactnumber of bytes written to the output dataset, and themodify time and file mode are set accordingly..PPIf \fIsz\fR is invoked with $SHELL set and if that variablecontains the string \fIrsh\fR or \fIrksh\fR (restricted shell), \fIsz\fRoperates in restricted mode. Restricted mode restrictspathnames to the current directory and \fIPUBDIR\fR (usually\fI/usr/spool/uucppublic\fR) and/or subdirectories thereof..PPThe options and flags available are:.in +0.25i.ti -0.25i.B \-+.brInstruct the receiver to append transmitted data to an existing file..ti -0.25i.B \-a.brConvert NL characters in the transmitted file to CR/LF.This is done by the sender for XMODEM and YMODEM, by the receiver for ZMODEM..ti -0.25i.B \-b.brBinary override: transfer file without any translation..ti -0.25i.B \-c.brSend COMMAND (follows \fIc\fR) to the receiver for execution, return withCOMMAND's exit status..ti -0.25i.B \-d.brChange all instances of \&'.\&' to \&'/\&' in the transmittedpathname. Thus, C.omenB0000 (which is unacceptable to\s-2MS-DOS\s0 or CP/M) is transmitted as C/omenB0000. If theresultant filename has more than 8 characters in thestem, a \&'.\&' is inserted to allow a total of eleven..ti -0.25i.B \-e.brEscape all control characters; normally XON, XOFF, DLE,CR-@-CR, and Ctrl-X are escaped..ti -0.25i.B \-f.brSend Full pathname. Normally directory prefixes are stripped from the transmitted filename..ti -0.25i.B \-i.brSend COMMAND (follows \fIi\fR) to the receiver for execution, returnImmediately upon the receiving program's successful reception of the command..ti -0.25i.B \-L.brUse ZMODEM sub-packets of length \fIn\fR (follows \fIL\fR). A larger \fIn\fR (32 <= \fIn\fR <= 1024) gives slightly higher throughput, a smaller one speeds error recovery. The default is 128 below 300baud, 256 above 300 baud, or 1024 above 2400 baud..ti -0.25i.B \-l .brWait for the receiver to acknowledge correct data every\fIn\fR (32 <= \fIn\fR <= 1024) characters. This may be used to avoid network overrun when XOFF flow control is lacking..ti -0.25i.B \-n.brSend each file if destination file does not exist. Overwrite destination file if source file is newer than the destination file..ti -0.25i.B \-N.br Send each file if destination file does not exist. Overwrite destination file if source file is newer or longer than the destination file..ti -0.25i.B \-o.brDisable automatic selection of 32 bit CRC..ti -0.25i.B \-p.brProtect existing destination files by skipping transfer if the destination file exists..ti -0.25i.B \-q.brQuiet suppresses verbosity..ti -0.25i.B \-r.brResume interrupted file transfer. If the source file is longer than the destination file, the transfer commences at the offset in the source filethat equals the length of the destination file..ti -0.25i.B \-t.brChange timeout.The timeout, in tenths of seconds, follows, the \fB\-t\fR flag..ti -0.25i.B \-u.brUnlink the file after successful transmission..ti -0.25i.B \-w.brLimit the transmit window size to \fIn\fR bytes (\fIn follows \fB(enw\fR)..ti -0.25i.B \-v.brVerbose causes a list of file names to be appended to \fI/tmp/szlog\fR..ti -0.25i.B \-y.brInstruct a ZMODEM receiving program to overwrite any existing file with the same name..ti -0.25i.B \-Y.brInstruct a ZMODEM receiving program to overwrite any existing file with the same name, and to skip any source files that do have a file with the same pathname on the destination system..in -0.25i.SS "Examples".PPBelow are some examples of the use of \fIsz\fR..PP.B " ""sz \-a \d\s+2*\s0\u.c".PPThis single command transfers all .c files in the currentdirectory with conversion (\fB\-a\fR) to end-of-lineconventions appropriate to the receiving environment..sp.B " ""sz \-Yan \d\s+2*\s0\u.c \d\s+2*\s0\u.h".PP.LPSend only the \fI.c\fR and \fI.h\fR files that exist on both systems,and are newer on the sending system than the correspondingversion on the receiving system, converting \s-2MINIX\s+2to \s-2MS-DOS\s0 text format..SH "SEE ALSO".BR rz (1),.BR term (1).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -