3 sz \- send a file using the zmodem protocol
5 \fBsz\fR [\fB\-LNbdefnopqruvy+\fR]\fR [\fB\-ci \fIcommand\fR] [\fB\-Ll\fR n\fR] [\fB\-t \fItimeout\fR]\fR
18 .FL "\-L" "Use \fIn\fR-byte packets"
19 .FL "\-N" "Overwrite if source is newer/longer"
20 .FL "\-b" "Binary file"
21 .FL "\-c" "Send command for execution"
22 .FL "\-d" "Convert dot to slash in names"
23 .FL "\-e" "Escape for all control characters"
24 .FL "\-f" "Send full path name"
25 .FL "\-i" "Send command and return immediately"
26 .FL "\-l" "Flow control every \fIn\fR packets"
27 .FL "\-n" "Overwrite destination if source is newer"
28 .FL "\-o" "Use old (16-bit) checksum"
29 .FL "\-p" "Protect file if it already exists"
30 .FL "\-q" "Quiet; opposite of verbose"
31 .FL "\-r" "Resume interrupt file transfer"
32 .FL "\-t" "Set \fItimeout\fR in tenths of a second"
33 .FL "\-u" "Unlink file after successful transmission"
34 .FL "\-v" "Verbose; opposite of quiet"
35 .FL "\-y" "Yes, clobber existing files"
36 .FL "\-+" "Append to an existing file"
38 .EX "sz file </dev/tty01 >/dev/tty01" "Send \fIfile\fR"
41 XMODEM, YMODEM, and ZMODEM are a family of protocols that are widely used
42 is the \s-2MS-DOS\s0 world for transferring information reliably from one
43 computer to another. In all of these protocols, a series of bytes are sent
44 from one computer to the other, and then an acknowledgement is sent back
45 to confirm correct reception. Checksums are used to detect errors so that
46 transmission is reliable even in the face of noisy telephone lines.
47 \fISz\fR is a program that sends a file sent from another computer using the
49 The file can be received using \fIrz\fR.
51 \fISz\fR uses the ZMODEM error correcting
52 protocol to send one or more files over a dial-in serial
53 port to a variety of programs running under
56 \s-2MS-DOS\s0, \s-2CP/M\s0, \s-2VMS\s0, and other operating systems.
57 It is the successor to XMODEM and YMODEM.
59 ZMODEM greatly simplifies file transfers compared to XMODEM.
60 In addition to a friendly user interface, ZMODEM provides
61 Personal Computer and other users an efficient, accurate,
62 and robust file transfer method.
64 ZMODEM provides complete end-to-end data integrity between
65 application programs. ZMODEM's 32 bit CRC catches errors
66 that sneak into even the most advanced networks.
68 Output from another program may be piped to \fIsz\fR for
69 transmission by denoting standard input with \-:
71 .B " ""ls \-l | sz \-"
73 The program output is transmitted with the filename \fIsPID.sz\fR
74 where PID is the process ID of the \fIsz\fR program. If the
75 environment variable \fIONAME\fR is set, that is used instead. In
76 this case, the command:
78 .B " ""ls \-l | ONAME=con sz \-ay \-"
80 will send a \&'file\&' to the PC-DOS console display.
81 The \fB\-y\fR option instructs the receiver to open the file for writing
83 The \fB\-a\fR option causes the receiver to
86 newlines to PC-DOS carriage returns and linefeeds.
89 systems, additional information about the file is
90 transmitted. If the receiving program uses this
91 information, the transmitted file length controls the exact
92 number of bytes written to the output dataset, and the
93 modify time and file mode are set accordingly.
95 If \fIsz\fR is invoked with $SHELL set and if that variable
96 contains the string \fIrsh\fR or \fIrksh\fR (restricted shell), \fIsz\fR
97 operates in restricted mode. Restricted mode restricts
98 pathnames to the current directory and \fIPUBDIR\fR (usually
99 \fI/usr/spool/uucppublic\fR) and/or subdirectories thereof.
101 The options and flags available are:
106 Instruct the receiver to append transmitted data to an existing file.
110 Convert NL characters in the transmitted file to CR/LF.
111 This is done by the sender for XMODEM and YMODEM, by the receiver for ZMODEM.
115 Binary override: transfer file without any translation.
119 Send COMMAND (follows \fIc\fR) to the receiver for execution, return with
120 COMMAND's exit status.
124 Change all instances of \&'.\&' to \&'/\&' in the transmitted
125 pathname. Thus, C.omenB0000 (which is unacceptable to
126 \s-2MS-DOS\s0 or CP/M) is transmitted as C/omenB0000. If the
127 resultant filename has more than 8 characters in the
128 stem, a \&'.\&' is inserted to allow a total of eleven.
132 Escape all control characters; normally XON, XOFF, DLE,
133 CR-@-CR, and Ctrl-X are escaped.
137 Send Full pathname. Normally directory prefixes are stripped from
138 the transmitted filename.
142 Send COMMAND (follows \fIi\fR) to the receiver for execution, return
143 Immediately upon the receiving program's successful reception of the command.
147 Use ZMODEM sub-packets of length \fIn\fR (follows \fIL\fR).
148 A larger \fIn\fR (32 <= \fIn\fR <= 1024) gives slightly higher throughput, a
149 smaller one speeds error recovery. The default is 128 below 300
150 baud, 256 above 300 baud, or 1024 above 2400 baud.
154 Wait for the receiver to acknowledge correct data every
155 \fIn\fR (32 <= \fIn\fR <= 1024) characters.
156 This may be used to avoid network overrun when XOFF flow control is lacking.
160 Send each file if destination file does not exist.
161 Overwrite destination file if source file is newer than the destination file.
165 Send each file if destination file does not exist. Overwrite destination
166 file if source file is newer or longer than the destination file.
170 Disable automatic selection of 32 bit CRC.
174 Protect existing destination files by skipping transfer if the destination
179 Quiet suppresses verbosity.
183 Resume interrupted file transfer. If the source file is longer than the
184 destination file, the transfer commences at the offset in the source file
185 that equals the length of the destination file.
190 The timeout, in tenths of seconds, follows, the \fB\-t\fR flag.
194 Unlink the file after successful transmission.
198 Limit the transmit window size to \fIn\fR bytes (\fIn follows \fB(enw\fR).
202 Verbose causes a list of file names to be appended to \fI/tmp/szlog\fR.
206 Instruct a ZMODEM receiving program to overwrite any existing file with the
211 Instruct a ZMODEM receiving program to overwrite any existing file with the
212 same name, and to skip any source files that do have a file with the same
213 pathname on the destination system.
217 Below are some examples of the use of \fIsz\fR.
219 .B " ""sz \-a \d\s+2*\s0\u.c"
221 This single command transfers all .c files in the current
222 directory with conversion (\fB\-a\fR) to end-of-line
223 conventions appropriate to the receiving environment.
225 .B " ""sz \-Yan \d\s+2*\s0\u.c \d\s+2*\s0\u.h"
228 Send only the \fI.c\fR and \fI.h\fR files that exist on both systems,
229 and are newer on the sending system than the corresponding
230 version on the receiving system, converting
232 to \s-2MS-DOS\s0 text format.