|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T c
Length: 150511 (0x24bef) Types: TextFile Names: »ckuker.ps«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦3da672b63⟧ »EurOpenD3/misc/kermit.tar.Z« └─⟦126dd3ca0⟧ └─⟦this⟧ »ckuker.ps«
%!PS-Adobe-1.0 %%Title: CKUHDR.MSS.2 %%DocumentFonts: (atend) %%Creator: SY.FDC and Scribe 5(1500) %%CreationDate: 24 March 1988 10:30 %%Pages: (atend) %%EndComments % PostScript Prelude for Scribe. /BS {/SV save def 0.0 792.0 translate .01 -.01 scale} bind def /ES {showpage SV restore} bind def /SC {setrgbcolor} bind def /FMTX matrix def /RDF {WFT SLT 0.0 eq {SSZ 0.0 0.0 SSZ neg 0.0 0.0 FMTX astore} {SSZ 0.0 SLT sin SLT cos div SSZ mul SSZ neg 0.0 0.0 FMTX astore} ifelse makefont setfont} bind def /SLT 0.0 def /SI { /SLT exch cvr def RDF} bind def /WFT /Courier findfont def /SF { /WFT exch findfont def RDF} bind def /SSZ 1000.0 def /SS { /SSZ exch 100.0 mul def RDF} bind def /AF { /WFT exch findfont def /SSZ exch 100.0 mul def RDF} bind def /MT /moveto load def /XM {currentpoint exch pop moveto} bind def /UL {gsave newpath moveto dup 2.0 div 0.0 exch rmoveto setlinewidth 0.0 rlineto stroke grestore} bind def /LH {gsave newpath moveto setlinewidth 0.0 rlineto gsave stroke grestore} bind def /LV {gsave newpath moveto setlinewidth 0.0 exch rlineto gsave stroke grestore} bind def /BX {gsave newpath moveto setlinewidth exch dup 0.0 rlineto exch 0.0 exch neg rlineto neg 0.0 rlineto closepath gsave stroke grestore} bind def /BX1 {grestore} bind def /BX2 {setlinewidth 1 setgray stroke grestore} bind def /PB {/PV save def translate 100.0 -100.0 scale pop} bind def /PE {PV restore} bind def /SH /show load def /MX {exch show 0.0 rmoveto} bind def /W {0 32 4 -1 roll widthshow} bind def /WX {0 32 5 -1 roll widthshow 0.0 rmoveto} bind def %%EndProlog %%Page: 0 1 BS 0 SI 15 /Times-Bold AF 22928 28325 MT (C-KERMIT USER GUIDE)SH 13 SS 16676 31684 MT (For UNIX, VMS, and Many Other Operating Systems)SH 10 /Times-Roman AF 27055 35763 MT (C. Gianone, F. da Cruz)SH 20860 38155 MT (Columbia University Center for Computing Activities)SH 25862 39351 MT (New York, New York 10027)SH /Times-Italic SF 28416 42939 MT (January 8, 1988)SH /Times-Roman SF 26610 47723 MT (Copyright \050C\051 1981,1988)SH 20111 48919 MT (Trustees of Columbia University in the City of New York)SH /Times-Italic SF 18429 51311 MT (Permission is granted to any individual or institution to use, copy,)SH 18178 52507 MT (or redistribute this document so long as it is not sold for profit, and)SH 23291 53703 MT (provided this copyright notice is retained.)SH ES %%Page: 1 2 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1. UNIX KERMIT)SH 10 /Times-Italic AF 52275 XM (Page 1)SH 46800 50 8280 6252 UL 16 /Times-Bold AF 8280 8272 MT (1. UNIX KERMIT)SH 10 /Times-Italic AF 8280 10566 MT (Program:)SH /Times-Roman SF 14280 XM (Frank da Cruz, Bill Catchings,) 262 W( Jeff Damens, Columbia University; Herm Fischer, Encino CA;)261 W 14280 11671 MT (contributions by many others.)SH /Times-Italic SF 8280 12776 MT (Language:)SH /Times-Roman SF 14280 XM (C)SH /Times-Italic SF 8280 13881 MT (Documentation:)SH /Times-Roman SF 14280 14986 MT (Christine Gianone, Frank da Cruz)SH /Times-Italic SF 8280 16091 MT (Version:)SH /Courier SF 14280 XM (4E\050068\051)SH /Times-Italic SF 8280 17196 MT (Date:)SH /Times-Roman SF 14280 XM (January 24, 1988)SH 8280 18987 MT (C-Kermit is an implementation of Kermit, written modularly and) 104 W( transportably in C. The protocol state transition)103 W 8280 20183 MT (table is written in)97 W /Times-Italic SF 15890 XM (wart)SH /Times-Roman SF (, a \050non-proprietary\051 lex-like preprocessor for) 97 W( C. System-dependent primitive functions are)98 W 8280 21379 MT (isolated into separately compiled modules so that the) 89 W( program should be easily portable among Unix systems and)88 W 8280 22575 MT (also to non-Unix systems that have C compilers, such as VAX/VMS, Data General AOS/VS, Apollo Aegis,) 137 W( the)138 W 8280 23771 MT (Apple Macintosh, and the Commodore Amiga. This document applies to Unix implementations) 7 W( of C-Kermit, and in)6 W 8280 24967 MT (most ways also to the VMS, Data General, and other implementations.)SH 12 /Times-Bold AF 8280 27555 MT (Unix Kermit Capabilities At A Glance:)SH 10 /Times-Roman AF 9280 29346 MT (Local operation:)SH 34480 XM (Yes)SH 9280 30451 MT (Remote operation:)SH 34480 XM (Yes)SH 9280 31556 MT (Login scripts:)SH 34480 XM (Yes \050UUCP style\051)SH 9280 32661 MT (Transfer text files:)SH 34480 XM (Yes)SH 9280 33766 MT (Transfer binary files:)SH 34480 XM (Yes)SH 9280 34871 MT (Wildcard send:)SH 34480 XM (Yes)SH 9280 35976 MT (File transfer interruption:)SH 34480 XM (Yes)SH 9280 37081 MT (Filename collision avoidance:)SH 34480 XM (Yes)SH 9280 38186 MT (Can time out:)SH 34480 XM (Yes)SH 9280 39291 MT (8th-bit prefixing:)SH 34480 XM (Yes)SH 9280 40396 MT (Repeat count prefixing:)SH 34480 XM (Yes)SH 9280 41501 MT (Alternate block checks:)SH 34480 XM (Yes)SH 9280 42606 MT (Terminal emulation:)SH 34480 XM (Yes)SH 9280 43711 MT (Communication settings:)SH 34480 XM (Yes)SH 9280 44816 MT (Transmit BREAK:)SH 34480 XM (Yes \050most versions\051)SH 9280 45921 MT (Support for dialout modems:)SH 34480 XM (Yes)SH 9280 47026 MT (IBM mainframe communication:)SH 34480 XM (Yes)SH 9280 48131 MT (Transaction logging:)SH 34480 XM (Yes)SH 9280 49236 MT (Session logging:)SH 34480 XM (Yes)SH 9280 50341 MT (Debug logging:)SH 34480 XM (Yes)SH 9280 51446 MT (Packet logging:)SH 34480 XM (Yes)SH 9280 52551 MT (Act as server:)SH 34480 XM (Yes)SH 9280 53656 MT (Talk to server:)SH 34480 XM (Yes)SH 9280 54761 MT (Advanced server functions:)SH 34480 XM (Yes)SH 9280 55866 MT (Local file management:)SH 34480 XM (Yes)SH 9280 56971 MT (Command/Init files:)SH 34480 XM (Yes)SH 9280 58076 MT (UUCP and multiuser line locking:)SH 34480 XM (Yes)SH 9280 59181 MT (Long packets:)SH 34480 XM (Yes)SH 9280 60286 MT (Sliding Windows:)SH 34480 XM (No)SH 9280 61391 MT (File attributes packets:)SH 34480 XM (No)SH 9280 62496 MT (Command macros:)SH 34480 XM (No)SH 9280 63601 MT (Raw file transmit:)SH 34480 XM (No)SH /Times-Italic SF 8280 65390 MT (All numbers in the C-Kermit documentation are decimal unless noted otherwise.)SH /Times-Roman SF 8280 67782 MT (C-Kermit provides traditional Unix command line operation) 290 W( as well as interactive command prompting and)291 W 8280 68978 MT (execution. The) 460 W( command line) 105 W( options provide access to a basic subset of C-Kermit's capabilities; the interactive)104 W 8280 70174 MT (command set is far richer.)SH ES %%Page: 2 3 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 2)SH 12 /Times-Bold AF 33087 XM (Kermit User Guide: UNIX KERMIT 1)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 6120 7886 MT (On systems with dialout) 175 W( modems, C-Kermit's command file and login script facilities provide a counterpart to)176 W 6120 9082 MT (UUCP for) 8 W( file transfer with non-UNIX operating systems, including the use of scheduled \050e.g. late night\051 unattended)7 W 6120 10278 MT (operation.)SH 14 /Times-Bold AF 6120 13880 MT (1.1. The Unix File System)SH 10 /Times-Roman AF 6120 15998 MT (Consult your Unix manual for details about the file system under your version of Unix.) 40 W( In) 332 W( general, Unix files have)41 W 6120 17194 MT (lowercase names, possibly containing one or more dots or other special characters. Unix directories are tree-)200 W 6120 18390 MT (structured. Directory) 250 W( levels are separated by slash \050``)SH /Courier SF (/)SH /Times-Roman SF (''\051 characters. For example,)SH /Courier SF 8520 20045 MT (/usr/foo/bar)SH /Times-Roman SF 6120 21762 MT (denotes the file)70 W /Courier SF 12690 XM (bar)SH /Times-Roman SF 14810 XM (in the directory)70 W /Courier SF 21380 XM (/usr/foo)SH /Times-Roman SF (. Alphabetic) 390 W( case is significant in Unix file and) 70 W( directory names,)71 W 6120 22958 MT (i.e. ``)147 W /Courier SF (a)SH /Times-Roman SF ('' is a different file \050or directory\051 from ``)147 W /Courier SF (A)SH /Times-Roman SF (''. Wildcard) 544 W( or "meta" characters allow groups) 147 W( of files to be)146 W 6120 24154 MT (specified. ``)250 W /Courier SF (*)SH /Times-Roman SF ('' matches any string; ``)SH /Courier SF (?)SH /Times-Roman SF ('' matches any single character.)SH 6120 26546 MT (When C-Kermit is invoked with file arguments specified on the) 55 W( Unix command line, the Unix shell \050Bourne Shell,)56 W 6120 27742 MT (C-Shell, K-Shell, etc\051 expands the meta characters itself, and in this case a wider variety is available. For example,)SH /Courier SF 8520 29397 MT (kermit -s ~/ck[uvm]*.{upd,bwr}])SH /Times-Roman SF 6120 31114 MT (is expanded by the Berkeley C-Shell into a list of all the files in the user's home directory \050)73 W /Courier SF (~/)SH /Times-Roman SF (\051 that start with) 73 W( the)72 W 6120 32310 MT (characters ")45 W /Courier SF (ck)SH /Times-Roman SF (", followed by a) 45 W( single character ``)46 W /Courier SF (u)SH /Times-Roman SF ('', ``)46 W /Courier SF (v)SH /Times-Roman SF ('', or ``)46 W /Courier SF (m)SH /Times-Roman SF ('', followed by zero or more characters, followed)46 W 6120 33506 MT (by a dot, followed by one of) 73 W( the strings ``)72 W /Courier SF (upd)SH /Times-Roman SF ('' or ``)72 W /Courier SF (bwr)SH /Times-Roman SF (''. Internally,) 394 W( the C-Kermit program itself expands only)72 W 6120 34702 MT (the ``)SH /Courier SF (*)SH /Times-Roman SF ('' and ``)SH /Courier SF (?)SH /Times-Roman SF ('' meta characters.)SH 6120 37094 MT (Unix files are) 46 W( linear \050sequential\051 streams of 8-bit bytes. Text files consist of 7-bit ASCII characters, with the high-)47 W 6120 38290 MT (order bit off \0500\051, and lines separated by the Unix newline character, which is linefeed \050LF, ASCII 10\051.) 202 W( This)653 W 6120 39486 MT (distinguishes Unix text files from those on most) 92 W( other ASCII systems, in which lines are separated by a carriage-)93 W 6120 40682 MT (return linefeed sequence \050CRLF, ASCII 13, followed by linefeed,) 30 W( ASCII 10\051. Binary files are likely to contain data)29 W 6120 41878 MT (in the high bits of the file bytes, and have no particular line or record structure.)SH 6120 44270 MT (When transferring files, C-Kermit will convert between upper and lower case filenames and between LF and CRLF)35 W 6120 45466 MT (line terminators automatically, unless) 9 W( told to do otherwise. When binary files must be transferred, the program must)8 W 6120 46662 MT (be instructed not) 70 W( to perform LF/CRLF conversion \050)71 W /Courier SF (-i)SH /Times-Roman SF 28718 XM (on the command line or "set file type binary" interactively;)71 W 6120 47858 MT (see below\051.)SH 14 /Times-Bold AF 6120 51460 MT (1.2. File Transfer)SH 10 /Times-Roman AF 6120 53578 MT (If C-Kermit is in local mode,) 59 W( the screen \050stdout\051 is continously updated to show the progress of the file transer. A)58 W 6120 54774 MT (dot is printed for every four data packets, other packets are shown by type:)SH 8120 56565 MT (I)SH 9120 XM (Exchange Parameter Information)SH 8120 57670 MT (R)SH 9120 XM (Receive Initiate)SH 8120 58775 MT (S)SH 9120 XM (Send Initiate)SH 8120 59880 MT (F)SH 9120 XM (File Header)SH 8120 60985 MT (G)SH 9120 XM (Generic Server Command)SH 8120 62090 MT (C)SH 9120 XM (Remote Host Command)SH 8120 63195 MT (N)SH 9120 XM (Negative Acknowledgement \050NAK\051)SH 8120 64300 MT (E)SH 9120 XM (Fatal Error)SH 8120 65405 MT (T)SH 9120 XM (Indicates a timeout occurred)SH 8120 66510 MT (Q)SH 9120 XM (Indicates a damaged, undesired, or illegal packet was received)SH /Courier SF 8120 67615 MT (%)SH /Times-Roman SF 9120 XM (Indicates a packet was retransmitted)SH 6120 69406 MT (You may type certain "interrupt" commands during file transfer:)SH 8120 71197 MT (Control-F:)SH 14120 XM (Interrupt the current File, and go on to the next \050if any\051.)SH ES %%Page: 3 4 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.2. File Transfer)SH 10 /Times-Italic AF 52275 XM (Page 3)SH 46800 50 8280 5709 UL /Times-Roman SF 10280 7886 MT (Control-B:)SH 16280 XM (Interrupt the entire Batch of files, terminate the transaction.)SH 10280 8991 MT (Control-R:)SH 16280 XM (Resend the current packet)SH 10280 10096 MT (Control-A:)SH 16280 XM (Display a status report for the current transaction.)SH 8280 11887 MT (These interrupt characters differ from the ones used in other Kermit implementations to avoid conflict) 263 W( with)264 W 8280 13083 MT (commonly used Unix shell interrupt characters. With Version 7, System III, and) 146 W( System V implementations of)145 W 8280 14279 MT (Unix, interrupt commands must be preceeded) 9 W( by the 'connect' escape character \050e.g. normally-)10 W /Courier SF (\134)SH /Times-Roman SF (\051. Ctrl-F) 270 W( and Ctrl-B)10 W 8280 15475 MT (are effective only during the transfer of data \050D\051 packets, and cannot be used to interrupt a transfer that has) 52 W( not yet)51 W 8280 16671 MT (reached that stage.)SH /Times-Italic SF 10280 18462 MT (CAUTION:)SH /Times-Roman SF 15633 XM (If Control-F or Control-B is used to cancel an incoming file, and) 121 W( a file of the same name)122 W 10280 19567 MT (previously existed,)103 W /Times-Italic SF 18291 XM (and)SH /Times-Roman SF 20144 XM (the "file warning" feature) 103 W( is not enabled, then the previous copy of the file will)102 W 10280 20672 MT (disappear.)SH /Times-Italic SF 8280 23064 MT (EMERGENCY EXIT:)11 W /Times-Roman SF 17396 XM (When running Unix Kermit in remote mode,) 11 W( if you have started a protocol operation \050sending)12 W 8280 24260 MT (or receiving a file, server command wait, etc\051, you will not be able to communicate with) 42 W( the terminal in the normal)41 W 8280 25456 MT (way. In) 372 W( particular,) 61 W( you cannot stop the protocol by typing the normal Unix interrupt characters, since the terminal)62 W 8280 26652 MT (has been put in "raw mode". If you need) 71 W( to regain control quickly -- for instance, because the protocol is stuck --)70 W 8280 27848 MT (you can type two Control-C's directly to the Unix Kermit program \050"connect" first if necessary\051:)SH 10280 29368 MT (Control-C Control-C)SH 8280 30888 MT (This will cause the program to exit and restore the terminal to normal.)SH 14 /Times-Bold AF 8280 34490 MT (1.3. Command Line Operation)SH 10 /Times-Roman AF 8280 36608 MT (The C-Kermit command line syntax conforms to the Proposed Syntax Standards for Unix System Commands) 96 W( put)97 W 23187 50 30268 36808 UL 8280 37804 MT (forth by Kathy) 1 W( Hemenway and Helene Armitage of AT&T Bell Laboratories in)SH /Times-Italic SF 40331 XM (Unix/World)SH /Times-Roman SF (, Vol.1, No.3, 1984. The)SH 8280 39000 MT (rules that apply are:)SH /Symbol SF 10070 40905 MT (\267)SH /Times-Roman SF 10780 XM (Command names must be between 2 and 9 characters \050"kermit" is 6\051.)SH /Symbol SF 10070 42010 MT (\267)SH /Times-Roman SF 10780 XM (Command names must include lower case letters and digits only.)SH /Symbol SF 10070 43115 MT (\267)SH /Times-Roman SF 10780 XM (An option name is a single character.)SH /Symbol SF 10070 44220 MT (\267)SH /Times-Roman SF 10780 XM (Options are delimited by ')SH /Courier SF (-)SH /Times-Roman SF ('.)SH /Symbol SF 10070 45325 MT (\267)SH /Times-Roman SF 10780 XM (Options with no arguments may be grouped \050bundled\051 behind one delimiter.)SH /Symbol SF 10070 46430 MT (\267)SH /Times-Roman SF 10780 XM (Option-arguments cannot be optional.)SH /Symbol SF 10070 47535 MT (\267)SH /Times-Roman SF 10780 XM (Arguments immediately follow options, separated by whitespace.)SH /Symbol SF 10070 48640 MT (\267)SH /Times-Roman SF 10780 XM (The order of options does not matter.)SH /Symbol SF 10070 49745 MT (\267)SH /Times-Roman SF 10780 XM (')SH /Courier SF (-)SH /Times-Roman SF (' preceded and followed by whitespace means standard input.)SH 8280 51536 MT (A group of bundled options may end with an option that has an argument.)SH 8280 53928 MT (The following notation is used in command descriptions:)SH /Times-Italic SF 8280 55719 MT (fn)SH /Times-Roman SF 12280 XM (A Unix file) 249 W( specification, possibly containing the "wildcard" characters `)250 W /Courier SF (*)SH /Times-Roman SF (' or `)250 W /Courier SF (?)SH /Times-Roman SF (' \050`)250 W /Courier SF (*)SH /Times-Roman SF (' matches all)250 W 12280 56824 MT (character strings, `)SH /Courier SF (?)SH /Times-Roman SF (' matches) 250 W( any single character\051.)SH /Times-Italic SF 8280 58401 MT (fn1)SH /Times-Roman SF 12280 XM (A Unix file specification which may not contain `)SH /Courier SF (*)SH /Times-Roman SF (' or `)SH /Courier SF (?)SH /Times-Roman SF ('.)SH /Times-Italic SF 8280 59978 MT (rfn)SH /Times-Roman SF 12280 XM (A remote file specification in the remote system's own) 50 W( syntax, which may denote a single file or a group)49 W 12280 61083 MT (of files.)SH /Times-Italic SF 8280 62660 MT (rfn1)SH /Times-Roman SF 12280 XM (A remote file specification which should denote only a single file.)SH /Times-Italic SF 8280 64237 MT (n)SH /Times-Roman SF 12280 XM (A decimal number between 0 and 94.)SH /Times-Italic SF 8280 65814 MT (c)SH /Times-Roman SF 12280 XM (A decimal number between 0 and 127 representing the value of an ASCII character.)SH /Times-Italic SF 8280 67391 MT (cc)SH /Times-Roman SF 12280 XM (A decimal number between 0 and 31, or else exactly 127, representing the value) 147 W( of an ASCII control)148 W 12280 68496 MT (character.)SH /Courier SF 8280 70073 MT ([ ])SH /Times-Roman SF 12280 XM (Any field in square braces is optional.)SH /Courier SF 8280 71650 MT ({x,y,z})SH ES %%Page: 4 5 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 4)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.3)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 10120 7886 MT (Alternatives are listed in curly braces.)SH 6120 9677 MT (C-Kermit command line options may specify) 40 W( any combination of actions and settings. If C-Kermit is invoked with)41 W 6120 10873 MT (a command line that specifies no actions, then it will issue a prompt and) 85 W( begin interactive dialog. Action options)84 W 6120 12069 MT (specify either protocol transactions or terminal connection.)SH /Courier SF 6120 13860 MT (-s)SH /Times-Italic SF 7920 XM (fn)SH /Times-Roman SF 10120 XM (Send the specified file) 49 W( or files. If)50 W /Times-Italic SF 24153 XM (fn)SH /Times-Roman SF 25231 XM (contains wildcard \050meta\051 characters, the Unix shell expands it into a)50 W 10120 14965 MT (list. If)250 W /Times-Italic SF 13009 XM (fn)SH /Times-Roman SF 14037 XM (is ')SH /Courier SF (-)SH /Times-Roman SF (' then kermit sends from standard input, which may come from a file:)SH /Courier SF 12520 16620 MT (kermit -s - < foo.bar)SH /Times-Roman SF 10120 18337 MT (or a parallel process:)SH /Courier SF 12520 19992 MT (ls -l | grep christin | kermit -s -)SH /Times-Roman SF 10120 21709 MT (You cannot use this mechanism to send terminal typein. If you) 56 W( want to send a file whose actual name is)55 W 10120 22814 MT (``)SH /Courier SF (-)SH /Times-Roman SF ('' you can precede it with a path name, as in)SH /Courier SF 12520 24469 MT (kermit -s ./-)SH 6120 26186 MT (-r)SH /Times-Roman SF 10120 XM (Receive a file or files. Wait passively for files to arrive.)SH /Courier SF 6120 27763 MT (-k)SH /Times-Roman SF 10120 XM (Receive \050passively\051 a file or files, sending them to standard) 106 W( output. This option can be used in several)107 W 10120 28868 MT (ways:)SH /Courier SF 10120 30597 MT (kermit -k)SH /Times-Roman SF 12120 31702 MT (Displays the incoming files on your screen; to be used only in "local mode" \050see below\051.)SH /Courier SF 10120 33279 MT (kermit -k >)SH /Times-Italic SF 17320 XM (fn1)SH /Times-Roman SF 12120 34384 MT (Sends the incoming file or files) 242 W( to the named file,)241 W /Times-Italic SF 34561 XM (fn1)SH /Times-Roman SF (. If) 732 W( more than one file arrives, all are)241 W 12120 35489 MT (concatenated together into the single file)SH /Times-Italic SF 28617 XM (fn1)SH /Times-Roman SF (.)SH /Courier SF 10120 37066 MT (kermit -k | command)SH /Times-Roman SF 12120 38171 MT (Pipes the incoming data \050single or multiple files\051 to the indicated command, as in)SH /Courier SF 14520 39826 MT (kermit -k | sort > sorted.stuff)SH 6120 41617 MT (-a)SH /Times-Italic SF 7920 XM (fn1)SH /Times-Roman SF 10120 XM (If you have specified a file transfer option, you may give) 74 W( an alternate name for a single file with the)73 W /Courier SF 51720 XM (-a)SH /Times-Roman SF 10120 42722 MT (\050"as"\051 option. For example,)SH /Courier SF 12520 44377 MT (kermit -s foo -a bar)SH /Times-Roman SF 10120 46094 MT (sends the file)59 W /Courier SF 15824 XM (foo)SH /Times-Roman SF 17934 XM (telling the receiver that its name is)60 W /Courier SF 32380 XM (bar)SH /Times-Roman SF (. If) 370 W( more than one file arrives or is sent, only)60 W 10120 47199 MT (the first file is affected by the)SH /Courier SF 22145 XM (-a)SH /Times-Roman SF 23595 XM (option:)SH /Courier SF 12520 48854 MT (kermit -ra baz)SH /Times-Roman SF 10120 50571 MT (stores the first incoming file under the name)SH /Courier SF 28062 XM (baz)SH /Times-Roman SF (.)SH /Courier SF 6120 52148 MT (-x)SH /Times-Roman SF 10120 XM (Begin server operation. May be used in either local or remote mode.)SH 6120 53939 MT (Before proceeding, a few words about remote and local operation) 28 W( are necessary. C-Kermit is "local" if it is running)27 W 6120 55135 MT (on PC or workstation that you are using directly, or if it is running on a multiuser system and transferring files over)33 W 6120 56331 MT (an external communication line -- not your job's controlling terminal or console. C-Kermit is remote if it is running)16 W 6120 57527 MT (on a multiuser system and transferring files over its own controlling terminal's) 208 W( communication line \050normally)209 W /Courier SF 6120 58723 MT (/dev/tty)SH /Times-Roman SF (\051, connected to your PC or workstation.)SH 6120 61115 MT (If you are running C-Kermit on a PC, it is normally used in local mode, with the "back port" designated) 112 W( for file)111 W 6120 62311 MT (transfer and terminal connection. If you are running C-Kermit on a multiuser \050timesharing\051 system,) 60 W( it is in remote)61 W 6120 63507 MT (mode unless you explicitly point it at an external) 195 W( line for file transfer or terminal connection. The following)194 W 6120 64703 MT (command sets C-Kermit's "mode":)SH /Courier SF 6120 66494 MT (-l)SH /Times-Italic SF 7920 XM (dev)SH /Times-Roman SF 10120 XM (Line -- Specify a terminal line to use for file transfer and terminal connection, as in)SH /Courier SF 12520 68149 MT (kermit -l /dev/ttyi5)SH /Times-Roman SF 6120 69940 MT (When an external line is being used, you will) 37 W( also need some additional options for successful communication with)38 W 6120 71136 MT (the remote system:)SH ES %%Page: 5 6 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.3. Command Line Operation)SH 10 /Times-Italic AF 52275 XM (Page 5)SH 46800 50 8280 5709 UL /Courier SF 8280 7886 MT (-b)SH /Times-Italic SF 10080 XM (n)SH /Times-Roman SF 12280 XM (Baud -- Specify the baud rate for the line given in the)SH /Courier SF 33887 XM (-l)SH /Times-Roman SF 35337 XM (option, as in)SH /Courier SF 14680 9541 MT (kermit -l /dev/ttyi5 -b 9600)SH /Times-Roman SF 12280 11258 MT (This option should always be included with the)174 W /Courier SF 32838 XM (-l)SH /Times-Roman SF 34462 XM (option, since the speed of an external line is) 174 W( not)173 W 12280 12363 MT (necessarily what you expect.)SH /Courier SF 8280 13940 MT (-p)SH /Times-Italic SF 10080 XM (x)SH /Times-Roman SF 12280 XM (Parity --) 5 W( e,o,m,s,n \050even, odd, mark, space, or none\051. If parity is other than none, then the 8th-bit prefixing)6 W 12280 15045 MT (mechanism will be used) 175 W( for transferring 8-bit binary data, provided the opposite Kermit agrees. The)174 W 12280 16150 MT (default parity is none.)SH /Courier SF 8280 17727 MT (-t)SH /Times-Roman SF 12280 XM (Specifies half duplex, line turnaround with XON as the handshake character.)SH 8280 19518 MT (The following commands may be used only with a C-Kermit which is local either) 30 W( by default or else because the)31 W /Courier SF 53880 XM (-l)SH /Times-Roman SF 8280 20714 MT (option has been specified.)SH /Courier SF 8280 22505 MT (-g)SH /Times-Italic SF 10080 XM (rfn)SH /Times-Roman SF 12280 XM (Actively request a remote server to send the named file or) 100 W( files;)99 W /Times-Italic SF 39139 XM (rfn)SH /Times-Roman SF 40655 XM (is a file specification in the remote)99 W 12280 23610 MT (host's own syntax. If)111 W /Times-Italic SF 21723 XM (fn)SH /Times-Roman SF 22862 XM (happens to contain any special shell characters, like space, ')111 W /Courier SF (*)SH /Times-Roman SF (', ')111 W /Courier SF ([)SH /Times-Roman SF (', etc, these)111 W 12280 24715 MT (must be quoted, as in)SH /Courier SF 14680 26370 MT (kermit -g x\134*.\134?)SH /Times-Roman SF 12280 28087 MT (or)SH /Courier SF 14680 29742 MT (kermit -g "profile exec")SH 8280 31459 MT (-f)SH /Times-Roman SF 12280 XM (Send a 'finish' command to a remote server.)SH /Courier SF 8280 33036 MT (-c)SH /Times-Roman SF 12280 XM (Establish a terminal connection over the specified or default communication line, before any) 169 W( protocol)168 W 12280 34141 MT (transaction takes place.) 342 W( Get) 935 W( back to the local system by typing the escape character \050normally)343 W 12280 35246 MT (Control-Backslash\051 followed by the letter 'c'.)SH /Courier SF 8280 36823 MT (-n)SH /Times-Roman SF 12280 XM (Like)SH /Courier SF 14396 XM (-c)SH /Times-Roman SF (, but)33 W /Times-Italic SF 17690 XM (after)SH /Times-Roman SF 19862 XM (a protocol transaction takes place;)33 W /Courier SF 33885 XM (-c)SH /Times-Roman SF 35368 XM (and)SH /Courier SF 37095 XM (-n)SH /Times-Roman SF 38578 XM (may both be) 33 W( used in the same command.)32 W 12280 37928 MT (The use of)SH /Courier SF 16751 XM (-n)SH /Times-Roman SF 18201 XM (and)SH /Courier SF 19895 XM (-c)SH /Times-Roman SF 21345 XM (is illustrated below.)SH 8280 39719 MT (If the other Kermit is on a remote system, the)76 W /Courier SF 27454 XM (-l)SH /Times-Roman SF 28980 XM (and)SH /Courier SF 30750 XM (-b)SH /Times-Roman SF 32276 XM (options should also be included with the)76 W /Courier SF 49169 XM (-r)SH /Times-Roman SF (,)SH /Courier SF 50945 XM (-k)SH /Times-Roman SF (, or)76 W /Courier SF 53880 XM (-s)SH /Times-Roman SF 8280 40915 MT (options.)SH 8280 43307 MT (Several other command-line options are provided:)SH /Courier SF 8280 45098 MT (-i)SH /Times-Roman SF 12280 XM (Specifies that) 5 W( files should be sent or received exactly "as is" with no conversions. This option is necessary)4 W 12280 46203 MT (for transmitting binary files. It may also be) 30 W( used in Unix-to-Unix transfers \050it must be given to)31 W /Times-Italic SF 51021 XM (both)SH /Times-Roman SF 53080 XM (Unix)SH 12280 47308 MT (Kermit programs\051, where it will improve) 54 W( performance by circumventing the normal text-file conversions,)53 W 12280 48413 MT (and will allow mixture of text and binary files in a single file group.)SH /Courier SF 8280 49990 MT (-w)SH /Times-Roman SF 12280 XM (Write-Protect -- Avoid filename collisions for incoming files.)SH /Courier SF 8280 51567 MT (-e)SH /Times-Italic SF 10080 XM (n)SH /Times-Roman SF 12280 XM (Extended packet length -- Specify that C-Kermit is allowed to receive packets) 9 W( up to length)10 W /Times-Italic SF 48885 XM (n)SH /Times-Roman SF (, where)10 W /Times-Italic SF 52598 XM (n)SH /Times-Roman SF 53358 XM (may)SH 12280 52672 MT (be between 10 and some) 22 W( large number, like 1000, depending on the system. The default maximum length)21 W 12280 53777 MT (for received packets is) 122 W( 90. Packets longer than 94 will be used only if the other Kermit supports, and)123 W 12280 54882 MT (agrees to use, the "long packet" protocol extension.)SH /Courier SF 8280 56459 MT (-q)SH /Times-Roman SF 12280 XM (Quiet -- Suppress screen update during file transfer, for instance to allow a file transfer to proceed in the)62 W 12280 57564 MT (background.)SH /Courier SF 8280 59141 MT (-d)SH /Times-Roman SF 12280 XM (Debug --) 40 W( Record debugging information in the file)41 W /Courier SF 33104 XM (debug.log)SH /Times-Roman SF 38795 XM (in the current directory. Use this option)41 W 12280 60246 MT (if you believe the program is misbehaving, and show the resulting log to your local Kermit maintainer.)SH /Courier SF 8280 61823 MT (-h)SH /Times-Roman SF 12280 XM (Help -- Display a brief synopsis of the command line options.)SH 8280 63614 MT (The command line may contain no more than one protocol action option.)SH 8280 66006 MT (Files are) 100 W( sent with their own names, except that lowercase letters are raised to upper, pathnames are stripped off,)99 W 8280 67202 MT (certain special characters like \050`)36 W /Courier SF (~)SH /Times-Roman SF ('\051 and \050`)36 W /Courier SF (#)SH /Times-Roman SF ('\051 are changed to `)36 W /Courier SF (X)SH /Times-Roman SF (', and) 36 W( if the file name begins with a period, an `)37 W /Courier SF (X)SH /Times-Roman SF (' is)37 W 8280 68398 MT (inserted before it. Incoming files are stored) 20 W( under their own names except that uppercase letters are lowered, and, if)19 W /Courier SF 8280 69594 MT (-w)SH /Times-Roman SF 9780 XM (was specified, a "generation number" is appended to the name if it has the same name as an existing file which)51 W 8280 70790 MT (would otherwise be overwritten. If the)74 W /Courier SF 24628 XM (-a)SH /Times-Roman SF 26152 XM (option is included, then the same rules apply to its) 74 W( argument. The file)73 W 8280 71986 MT (transfer display shows any transformations performed upon filenames.)SH ES %%Page: 6 7 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 6)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.3)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 6120 7886 MT (During transmission, files are encoded as follows:)SH /Symbol SF 7910 9791 MT (\267)SH /Times-Roman SF 8620 XM (Control characters are converted to prefixed printables.)SH /Symbol SF 7910 11780 MT (\267)SH /Times-Roman SF 8620 XM (Sequences of repeated characters are collapsed via repeat counts, if the other Kermit is also capable of)56 W 8620 12885 MT (repeated-character compression.)SH /Symbol SF 7910 14874 MT (\267)SH /Times-Roman SF 8620 XM (If parity is being used on the communication line, data characters with the 8th) 198 W( \050parity\051 bit on are)197 W 8620 15979 MT (specially prefixed, provided the other Kermit is capable) 118 W( of 8th-bit prefixing; if not, 8-bit binary files)119 W 8620 17084 MT (cannot be successfully transferred.)SH /Symbol SF 7910 19073 MT (\267)SH /Times-Roman SF 8620 XM (Conversion is done between Unix) 19 W( newlines and carriage-return-linefeed sequences unless the)18 W /Courier SF 46396 XM (-i)SH /Times-Roman SF 47864 XM (option)SH 8620 20178 MT (was specified.)SH 12 /Times-Bold AF 6120 22766 MT (Command Line Examples:)SH 10 /Courier AF 8520 25252 MT (kermit -l /dev/ttyi5 -b 1200 -cn -r)SH /Times-Roman SF 6120 26969 MT (This command connects you to the system on the other end of)58 W /Courier SF 31869 XM (ttyi5)SH /Times-Roman SF 35177 XM (at 1200) 58 W( baud, where you presumably log in)59 W 6120 28165 MT (and run Kermit with a 'send' command. After you escape back, C-Kermit waits for a file \050or files\051 to arrive. When)23 W 6120 29361 MT (the file transfer is completed, you are reconnected to the remote system so that you can logout.)SH /Courier SF 8520 31847 MT (kermit -l /dev/ttyi4 -b 1800 -cntp m -r -a foo)SH /Times-Roman SF 6120 34239 MT (This command is like the preceding one, except the remote system in this) 12 W( case uses half duplex communication with)13 W 6120 35435 MT (mark parity. The first file that arrives is stored under the name)SH /Courier SF 31504 XM (foo)SH /Times-Roman SF (.)SH /Courier SF 8520 37921 MT (kermit -l /dev/ttyi6 -b 9600 -c | tek)SH /Times-Roman SF 6120 40313 MT (This example uses Kermit to connect your terminal to the system at the other end of)SH /Courier SF 39949 XM (ttyi6)SH /Times-Roman SF (. The) 250 W( C-Kermit terminal)SH 6120 41509 MT (connection does not provide any particular terminal emulation, so C-Kermit's standard) 220 W( i/o is piped through a)221 W 6120 42705 MT (\050hypothetical\051 program called tek, which performs \050say\051 Tektronix emulation.)SH /Courier SF 8520 45191 MT (kermit -l /dev/ttyi6 -b 9600 -nf)SH /Times-Roman SF 6120 47583 MT (This command would be used to shut down a remote server and then connect to the remote system, in order) 57 W( to log)56 W 6120 48779 MT (out or to make further use of it. The)SH /Courier SF 20923 XM (-n)SH /Times-Roman SF 22373 XM (option is invoked)SH /Times-Italic SF 29568 XM (after)SH /Courier SF 31707 XM (-f)SH /Times-Roman SF 33157 XM (\050)SH /Courier SF (-c)SH /Times-Roman SF 34940 XM (would have been invoked before\051.)SH /Courier SF 8520 51265 MT (kermit -l /dev/ttyi6 -b 9600 -qg foo.\134* &)SH /Times-Roman SF 6120 53657 MT (This command causes C-Kermit to be invoked in the background, getting a group) 10 W( of files from a remote server \050note)11 W 6120 54853 MT (the quoting of the `)33 W /Courier SF (*)SH /Times-Roman SF (' character\051. No display occurs on the screen, and the) 33 W( keyboard is not sampled for interruption)32 W 6120 56049 MT (commands. This) 250 W( allows other work to be done while file transfers proceed in the background.)SH /Courier SF 8520 58535 MT (kermit -l /dev/ttyi6 -b 9600 -g foo.\134* > foo.log < /dev/null &)SH /Times-Roman SF 6120 60927 MT (This command is like) 107 W( the previous one, except the file transfer display has been redirected to the file)108 W /Courier SF 48470 XM (foo.log)SH /Times-Roman SF (.)SH 6120 62123 MT (Standard input is also redirected, to prevent C-Kermit from sampling it for interruption commands.)SH /Courier SF 8520 64609 MT (kermit -iwx)SH /Times-Roman SF 6120 67001 MT (This command starts up C-Kermit as) 235 W( a server. Files are transmitted with no newline/carriage-return-linefeed)234 W 6120 68197 MT (conversion; the)255 W /Courier SF 13018 XM (-i)SH /Times-Roman SF 14724 XM (option is necessary for binary file transfer and recommended for Unix-to-Unix transfers.)256 W 6120 69393 MT (Incoming files that have the same names as existing files are given new, unique names.)SH /Courier SF 8520 71879 MT (kermit -l /dev/ttyi6 -b 9600)SH ES %%Page: 7 8 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.3. Command Line Operation)SH 10 /Times-Italic AF 52275 XM (Page 7)SH 46800 50 8280 5709 UL /Times-Roman SF 8280 7886 MT (This command sets the communication line and speed. Since no action is specified, C-Kermit issues a prompt) 54 W( and)53 W 8280 9082 MT (enters an interactive dialog with) 84 W( you. Any settings given on the command line remain in force during the dialog,)85 W 8280 10278 MT (unless explicitly changed.)SH /Courier SF 10680 12764 MT (kermit)SH /Times-Roman SF 8280 15156 MT (This command starts up Kermit interactively with all default settings.)SH 8280 17548 MT (The next example shows how) 55 W( Unix Kermit might be used to send an entire directory tree from one Unix system to)54 W 8280 18744 MT (another, using the tar program as Kermit's standard input and) 112 W( output. On the orginating system, in this case the)113 W 8280 19940 MT (remote, type \050for instance\051:)SH /Courier SF 10680 22426 MT (tar cf - /usr/fdc | kermit -is -)SH /Times-Roman SF 8280 24818 MT (This causes tar to send the directory)91 W /Courier SF 23553 XM (/usr/fdc)SH /Times-Roman SF 28694 XM (\050and all its files) 91 W( and all its subdirectories and all their files...\051 to)90 W 8280 26014 MT (standard output instead of to) 128 W( a tape; kermit receives this as standard input and sends it as a binary file. On the)129 W 8280 27210 MT (receiving system, in this case the local one, type \050for instance\051:)SH /Courier SF 10680 29696 MT (kermit -il /dev/ttyi5 -b 9600 -k | tar xf -)SH /Times-Roman SF 8280 32088 MT (Kermit receives the tar archive, and sends it via standard output to its own copy of tar, which) 122 W( extracts from it a)121 W 8280 33284 MT (replica of the original directory tree.)SH 8280 35676 MT (A final example shows how a Unix compression utility might be used to speed up Kermit file transfers:)SH /Courier SF 10680 37391 MT (compress file | kermit -is -) SH( \050)2400 W /Times-Italic SF (sender)SH /Courier SF (\051)SH 10680 38422 MT (kermit -ik | uncompress) SH( \050)5400 W /Times-Italic SF (receiver)SH /Courier SF (\051)SH 12 /Times-Bold AF 8280 41010 MT (Exit Status Codes:)SH 10 /Times-Roman AF 8280 42424 MT (Unix Kermit returns an exit status of zero, except when) 79 W( a fatal error is encountered, where the exit status is set to)80 W 8280 43620 MT (one. With) 756 W( background operation \050e.g., `)253 W /Courier SF (&)SH /Times-Roman SF (' at end of) 253 W( invoking command line\051 driven by scripted interactive)252 W 8280 44816 MT (commands \050redirected standard input and/or take files\051, any failed interactive command \050such as failed dial or) 28 W( script)29 W 8280 46012 MT (attempt\051 causes the fatal error exit.)SH 14 /Times-Bold AF 8280 49614 MT (1.4. Interactive Operation)SH 10 /Times-Roman AF 8280 51732 MT (C-Kermit's interactive command prompt is ")124 W /Courier SF (C-Kermit>)SH /Times-Roman SF (". In) 498 W( response) 124 W( to this prompt, you may type any valid)123 W 8280 52928 MT (interactive C-Kermit command. C-Kermit) 15 W( executes the command and then prompts you for another command. The)16 W 8280 54124 MT (process continues until you instruct the program to terminate.)SH 8280 56516 MT (Commands begin with a keyword,) 11 W( normally an English verb, such as "send". You may omit trailing characters from)10 W 8280 57712 MT (any keyword, so) 5 W( long as you specify sufficient characters to distinguish it from any other keyword valid in that field.)6 W 8280 58908 MT (Certain commonly-used keywords \050such) 17 W( as "send", "receive", "connect"\051 also have special non-unique abbreviations)16 W 8280 60104 MT (\050"s" for "send", "r" for "receive", "c" for "connect"\051.)SH 8280 62496 MT (Certain characters have special functions during typein of interactive commands:)SH /Courier SF 10280 64287 MT (?)SH /Times-Roman SF 12280 XM (Question mark, typed at) 71 W( any point in a command, will produce a message explaining what is possible or)72 W 12280 65392 MT (expected at that) 4 W( point. Depending on the context, the message may be a brief phrase, a menu of keywords,)3 W 12280 66497 MT (or a list of files.)SH /Courier SF 10280 68074 MT (ESC)SH /Times-Roman SF 12280 XM (\050The Escape or Altmode key\051 -- Request completion of the current keyword) 44 W( or filename, or insertion of a)45 W 12280 69179 MT (default value. The result will be a beep if the requested operation fails.)SH /Courier SF 10280 70756 MT (DEL)SH /Times-Roman SF 12280 XM (\050The Delete or Rubout key\051 -- Delete the previous character from the command. You) 93 W( may also use BS)92 W 12280 71861 MT (\050Backspace, Control-H\051 for this function.)SH ES %%Page: 8 9 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 8)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Courier AF 8120 7886 MT (^W)SH /Times-Roman SF 10120 XM (\050Control-W\051 -- Erase the rightmost word from the command line.)SH /Courier SF 8120 9463 MT (^U)SH /Times-Roman SF 10120 XM (\050Control-U\051 -- Erase the entire command.)SH /Courier SF 8120 11040 MT (^R)SH /Times-Roman SF 10120 XM (\050Control-R\051 -- Redisplay the current command.)SH /Courier SF 8120 12617 MT (SP)SH /Times-Roman SF 10120 XM (\050Space\051 -- Delimits fields \050keywords,) 55 W( filenames, numbers\051 within a command. HT \050Horizontal Tab\051 may)56 W 10120 13722 MT (also be used for this purpose.)SH /Courier SF 8120 15299 MT (CR)SH /Times-Roman SF 10120 XM (\050Carriage Return\051 -- Enters the command for execution. LF \050Linefeed\051 or FF \050formfeed\051 may also be used)15 W 10120 16404 MT (for this purpose.)SH /Courier SF 8120 17981 MT (\134)SH /Times-Roman SF 10120 XM (\050Backslash\051 -- Enter any of the above characters into the command, literally. To enter a backslash,) 77 W( type)78 W 10120 19086 MT (two backslashes) 141 W( in a row \050)140 W /Courier SF (\134\134)SH /Times-Roman SF (\051. A) 530 W( backslash at the end of a command line causes the next line to be)140 W 10120 20191 MT (treated as a continuation line;) 152 W( this is useful for readability in command files, especially in the 'script')153 W 10120 21296 MT (command.)SH /Courier SF 8120 22873 MT (^Z)SH /Times-Roman SF 10120 XM (\050Control-Z\051 -- On systems \050like Berkeley Unix, Ultrix\051 with job control, suspend Kermit, i.e. put it into the)8 W 10120 23978 MT (background in such a way that it can be brought back into the foreground \050e.g. with an ')222 W /Courier SF (fg)SH /Times-Roman SF (' shell)222 W 10120 25083 MT (command\051 with all its settings intact.)SH 6120 26874 MT (You may type the editing characters \050)40 W /Courier SF (DEL)SH /Times-Roman SF (,)SH /Courier SF 23752 XM (^W)SH /Times-Roman SF (, etc\051 repeatedly, to delete all the way back to the prompt.) 40 W( No) 328 W( action)39 W 6120 28070 MT (will be performed) 71 W( until the command is entered by typing carriage return, linefeed, or formfeed. If you make any)72 W 6120 29266 MT (mistakes, you will receive an informative error message and a new prompt -- make liberal use) 5 W( of `)4 W /Courier SF (?)SH /Times-Roman SF (' and ESC to feel)4 W 6120 30462 MT (your way through the commands.) 125 W( One) 501 W( important command is "help" -- you should use it the first time you run)126 W 6120 31658 MT (C-Kermit.)SH 6120 34050 MT (A command line beginning with a) 146 W( percent sign ``)145 W /Courier SF (%)SH /Times-Roman SF ('' is ignored. Such lines may be used to include illustrative)145 W 6120 35246 MT (commentary in Kermit command dialogs.)SH 6120 37638 MT (Interactive C-Kermit accepts commands from files as well as from the keyboard. When you start) 121 W( C-Kermit, the)122 W 6120 38834 MT (program looks for the file)49 W /Courier SF 16891 XM (.kermrc)SH /Times-Roman SF 21390 XM (in your) 49 W( home or current directory \050first it looks in the home directory, then in)48 W 6120 40030 MT (the current one\051 and executes any commands it finds there. These commands must be in interactive format,) 122 W( not)123 W 6120 41226 MT (Unix command-line format. A "take" command is also provided for use at) 13 W( any time during an interactive session, to)12 W 6120 42422 MT (allow interactive-format commands to) 147 W( be executed from a file; command files may be nested to any reasonable)148 W 6120 43618 MT (depth.)SH 6120 46010 MT (Here is a brief list of C-Kermit interactive commands:)SH 16087 47620 MT (%)SH 17420 XM (Comment)SH 16587 48725 MT (!)SH 17420 XM (Execute a Unix shell command, or start a shell.)SH 15476 49830 MT (bye)SH 17420 XM (Terminate and log out a remote Kermit server.)SH 14865 50935 MT (close)SH 17420 XM (Close a log file.)SH 13810 52040 MT (connect)SH 17420 XM (Establish a terminal connection to a remote system.)SH 15254 53145 MT (cwd)SH 17420 XM (Change Working Directory.)SH 15420 54250 MT (dial)SH 17420 XM (Dial a telephone number.)SH 13310 55355 MT (directory)SH 17420 XM (Display a directory listing.)SH 15032 56460 MT (echo)SH 17420 XM (Display arguments literally.)SH 15420 57565 MT (exit)SH 17420 XM (Exit from the program, closing any open files.)SH 14642 58670 MT (finish)SH 17420 XM (Instruct a remote Kermit server to exit, but not log out.)SH 15698 59775 MT (get)SH 17420 XM (Get files from a remote Kermit server.)SH 15198 60880 MT (help)SH 17420 XM (Display a help message for a given command.)SH 15642 61985 MT (log)SH 17420 XM (Open a log file -- debugging, packet, session, transaction.)SH 15364 63090 MT (quit)SH 17420 XM (Same as 'exit'.)SH 14033 64195 MT (receive)SH 17420 XM (Passively wait for files to arrive.)SH 14143 65300 MT (remote)SH 17420 XM (Issue file management commands to a remote Kermit server.)SH 14698 66405 MT (script)SH 17420 XM (Execute a login script with a remote system.)SH 15087 67510 MT (send)SH 17420 XM (Send files.)SH 14477 68615 MT (server)SH 17420 XM (Begin server operation.)SH 15809 69720 MT (set)SH 17420 XM (Set various parameters.)SH 14809 70825 MT (show)SH 17420 XM (Display values of 'set' parameters.)SH 14699 71930 MT (space)SH 17420 XM (Display current disk space usage.)SH ES %%Page: 9 10 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 52275 XM (Page 9)SH 46800 50 8280 5709 UL /Times-Roman SF 15635 7886 MT (statistics)SH 19580 XM (Display statistics about most recent transaction.)SH 17414 8991 MT (take)SH 19580 XM (Execute commands from a file.)SH 8280 11383 MT (The 'set' parameters are:)SH 14193 12993 MT (block-check)SH 19580 XM (Level of packet error detection.)SH 16914 14098 MT (delay)SH 19580 XM (How long to wait before sending first packet.)SH 16358 15203 MT (duplex)SH 19580 XM (Specify which side echoes during 'connect'.)SH 12418 16308 MT (escape-character)SH 19580 XM (Prefix for "escape commands" during 'connect'.)SH 17747 17413 MT (file)SH 19580 XM (Set various file parameters.)SH 14081 18518 MT (flow-control)SH 19580 XM (Communication line full-duplex flow control.)SH 14859 19623 MT (handshake)SH 19580 XM (Communication line half-duplex turnaround character.)SH 14636 20728 MT (incomplete)SH 19580 XM (Disposition for incompletely received files.)SH 17580 21833 MT (line)SH 19580 XM (Communication line device name.)SH 13470 22938 MT (modem-dialer)SH 19580 XM (Type of modem-dialer on communication line.)SH 16747 24043 MT (parity)SH 19580 XM (Communication line character parity.)SH 16191 25148 MT (prompt)SH 19580 XM (The C-Kermit program's interactive command prompt.)SH 16193 26253 MT (receive)SH 19580 XM (Parameters for inbound packets.)SH 17192 27358 MT (retry)SH 19580 XM (Packet retransmission limit.)SH 17247 28463 MT (send)SH 19580 XM (Parameters for outbound packets.)SH 16803 29568 MT (speed)SH 19580 XM (Communication line speed.)SH 15747 30673 MT (terminal)SH 19580 XM (Terminal parameters.)SH 8280 33065 MT (The 'remote' commands are:)SH 17414 34675 MT (cwd)SH 19580 XM (Change remote working directory.)SH 16692 35780 MT (delete)SH 19580 XM (Delete remote files.)SH 15470 36885 MT (directory)SH 19580 XM (Display a listing of remote file names.)SH 17358 37990 MT (help)SH 19580 XM (Request help from a remote server.)SH 17413 39095 MT (host)SH 19580 XM (A command to the remote host in its own command language.)SH 16859 40200 MT (space)SH 19580 XM (Display current disk space usage on remote system.)SH 17358 41305 MT (type)SH 19580 XM (Display a remote file on your screen.)SH 17358 42410 MT (who)SH 19580 XM (Display who's logged in, or get information about a user.)SH 8280 44802 MT (Most of these) 23 W( commands are described adequately in the Kermit User Guide or the Kermit book. Special aspects of)22 W 8280 45998 MT (certain Unix Kermit commands are described below.)SH 13 /Times-Bold AF 25829 49357 MT (The 'send' command)SH 10 /Times-Roman AF 8280 51730 MT (Syntax:)SH /Courier SF 11836 XM (send)SH /Times-Italic SF 14836 XM (fn)SH /Courier SF 16814 XM (-)SH /Times-Italic SF 18014 XM (or)SH /Courier SF 19503 XM (- send)600 W /Times-Italic SF 24303 XM (fn1 rfn1)350 W /Times-Roman SF 8280 54122 MT (Send the file or files denoted by)94 W /Times-Italic SF 21965 XM (fn)SH /Times-Roman SF 23088 XM (to the other Kermit, which should be running as a server, or which should be)95 W 8280 55318 MT (given the 'receive' command. Each file is sent under its own) 51 W( name \050as described above, or as specified by the 'set)50 W 8280 56514 MT (file names' command\051. If the) 22 W( second form of the 'send' command is used, i.e. with)23 W /Times-Italic SF 42521 XM (fn1)SH /Times-Roman SF 44072 XM (denoting a single Unix file,)23 W /Times-Italic SF 8280 57710 MT (rfn1)SH /Times-Roman SF 10205 XM (may be specified as a name to send it) 8 W( under. The 'send' command may be abbreviated to 's', even though 's' is)7 W 8280 58906 MT (not a unique abbreviation for a top-level C-Kermit command.)SH 8280 61298 MT (The wildcard \050meta\051 characters `)31 W /Courier SF (*)SH /Times-Roman SF (' and `)31 W /Courier SF (?)SH /Times-Roman SF (' are accepted in)31 W /Times-Italic SF 32280 XM (fn)SH /Times-Roman SF (. If) 312 W( `)31 W /Courier SF (?)SH /Times-Roman SF (' is to be included, it must be prefixed by) 31 W( `)32 W /Courier SF (\134)SH /Times-Roman SF (' to)32 W 8280 62494 MT (override its normal function of providing help. `)116 W /Courier SF (*)SH /Times-Roman SF (' matches any string,) 116 W( `)115 W /Courier SF (?)SH /Times-Roman SF (' matches any single character. Other)115 W 8280 63690 MT (notations for file groups, like) 131 W( `)132 W /Courier SF ([a-z]og)SH /Times-Roman SF (', are not available in interactive commands \050though of course they are)132 W 8280 64886 MT (available on the command line\051. When)53 W /Times-Italic SF 24648 XM (fn)SH /Times-Roman SF 25729 XM (contains `)53 W /Courier SF (*)SH /Times-Roman SF (' or `)53 W /Courier SF (?)SH /Times-Roman SF (' characters, there is a limit to the number of) 53 W( files that)52 W 8280 66082 MT (can be matched, which varies from system to system. If you get the message) 77 W( "Too many files match" then you'll)78 W 8280 67278 MT (have to make a more judicious selection. If)SH /Times-Italic SF 25999 XM (fn)SH /Times-Roman SF 27027 XM (was of the form)SH /Courier SF 10680 68933 MT (usr/longname/anotherlongname/*)SH /Times-Roman SF 8280 70650 MT (then C-Kermit's string space will fill up rapidly --) 35 W( try doing a cwd \050see below\051 to the path in question and reissuing)34 W 8280 71846 MT (the command.)SH ES %%Page: 10 11 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 10)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Times-Italic AF 6120 7886 MT (Note)SH /Times-Roman SF 8388 XM (-- C-Kermit sends only from the current or specified directory. It) 129 W( does not traverse directory trees. If the)130 W 6120 9082 MT (source directory contains subdirectories, they will) 223 W( be skipped. By the same token, C-Kermit does not create)222 W 6120 10278 MT (directories when receiving files. If you have a need to do this, you can pipe tar through C-Kermit, as shown) 48 W( in the)49 W 6120 11474 MT (example on page 7, or under System III/V Unix you can use cpio.)SH /Times-Italic SF 6120 13866 MT (Another Note)139 W /Times-Roman SF 12009 XM (-- The 'send') 139 W( command does not skip over "invisible" files that match the file specification; Unix)138 W 6120 15062 MT (systems usually treat files whose names) 179 W( start with a dot \050like)180 W /Courier SF 32565 XM (.login)SH /Times-Roman SF (,)SH /Courier SF 36845 XM (.cshrc)SH /Times-Roman SF (, and)180 W /Courier SF 42999 XM (.kermrc)SH /Times-Roman SF (\051 as invisible.)180 W 6120 16258 MT (Similarly for "temporary" files whose names start with ")SH /Courier SF (#)SH /Times-Roman SF (".)SH 13 /Times-Bold AF 22986 19617 MT (The 'receive' command)SH 10 /Times-Roman AF 6120 21990 MT (Syntax:)SH /Courier SF 9676 XM (receive -)600 W /Times-Italic SF 16276 XM (or)SH /Courier SF 17765 XM (- receive)600 W /Times-Italic SF 24365 XM (fn1)SH /Times-Roman SF 6120 24382 MT (Passively wait for files to arrive from the other Kermit, which) 84 W( must be given the 'send' command -- the 'receive')83 W 6120 25578 MT (command does not work in conjunction with a server \050use 'get' for that\051. If)21 W /Times-Italic SF 36929 XM (fn1)SH /Times-Roman SF 38478 XM (is specified, store the first incoming)22 W 6120 26774 MT (file under that name. The 'receive' command may be abbreviated to 'r'.)SH 13 /Times-Bold AF 23887 30133 MT (The 'get' command:)SH 10 /Times-Roman AF 6120 32506 MT (Syntax:)SH /Courier SF 10376 XM (get)SH /Times-Italic SF 12776 XM (rfn)SH 10920 34221 MT (or)SH /Courier SF (: get)SH /Times-Italic SF 15720 35252 MT (rfn)SH 15720 36283 MT (fn1)SH /Times-Roman SF 6120 38000 MT (Request a remote) 126 W( Kermit server to send the named file or files. Since a remote file specification \050or list\051 might)125 W 6120 39196 MT (contain spaces, which normally delimit fields of a C-Kermit command, an alternate form of the command is)224 W 6120 40392 MT (provided to allow the inbound file to be given a new name:) 99 W( type 'get' alone on a line, and you will be prompted)98 W 6120 41588 MT (separately for the remote and local file specifications, for example)SH /Courier SF 8520 43243 MT (C-Kermit>get)SH 1800 50 13920 43443 UL 9120 44274 MT (Remote file specification: profile exec)SH 7200 50 25320 44474 UL 9120 45305 MT (Local name to store it under: profile.exec)SH 7200 50 27120 45505 UL /Times-Roman SF 6120 47022 MT (As with 'receive', if more than one file arrives as a result of the 'get' command, only the first will be stored under)57 W 6120 48218 MT (the alternate) 51 W( name given by)50 W /Times-Italic SF 17674 XM (fn1)SH /Times-Roman SF (; the remaining files will be stored under their own names if possible. If a `)50 W /Courier SF (?)SH /Times-Roman SF (' is to)50 W 6120 49414 MT (be included in the remote file specification, you must prefix it with `)37 W /Courier SF (\134)SH /Times-Roman SF (' to suppress its normal function of) 37 W( providing)38 W 6120 50610 MT (help.)SH 6120 53002 MT (If you have started a multiline 'get' command, you may escape from its) 90 W( lower-level prompts by typing a carriage)89 W 6120 54198 MT (return in response to the prompt, e.g.)SH /Courier SF 8520 55853 MT (C-Kermit>get)SH 1800 50 13920 56053 UL 9120 56884 MT (Remote file specification: foo)SH 1800 50 25320 57084 UL 9120 57915 MT (Local name to store it under:)SH /Times-Italic SF 27120 XM (\050Type a carriage return here\051)SH /Courier SF 8520 58946 MT (\050cancelled\051)SH 8520 59977 MT (C-Kermit>)SH ES %%Page: 11 12 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 11)SH 46800 50 8280 5981 UL 13 /Times-Bold AF 25145 8071 MT (The 'server' command:)SH 10 /Times-Roman AF 8280 10444 MT (The 'server' command places C-Kermit in "server mode" on the currently selected communication line. All) 36 W( further)37 W 8280 11640 MT (commands must arrive as valid Kermit packets from the Kermit on the other) 131 W( end of the line. The Unix Kermit)130 W 8280 12836 MT (server can respond to the following commands:)SH 8280 14627 MT (Command)SH 24480 XM (Server Response)SH 4167 50 8280 14827 UL 6693 50 24480 14827 UL 8780 15732 MT (get)SH 24980 XM (Sends files)SH 8780 16837 MT (send)SH 24980 XM (Receives files)SH 8780 17942 MT (bye)SH 24980 XM (Attempts to log itself out)SH 8780 19047 MT (finish)SH 24980 XM (Exits to level from which it was invoked)SH 8780 20152 MT (remote directory)SH 24980 XM (Sends directory lising)SH 8780 21257 MT (remote delete)SH 24980 XM (Removes files)SH 8780 22362 MT (remote cwd)SH 24980 XM (Changes working directory)SH 8780 23467 MT (remote type)SH 24980 XM (Sends files to your screen)SH 8780 24572 MT (remote space)SH 24980 XM (Reports about its disk usage)SH 8780 25677 MT (remote who)SH 24980 XM (Shows who's logged in)SH 8780 26782 MT (remote host)SH 24980 XM (Executes a Unix shell command)SH 8780 27887 MT (remote help)SH 24980 XM (Lists these capabilities)SH 8280 29678 MT (The Unix Kermit server cannot always respond properly to a BYE command. It will) 200 W( attempt to do so using)201 W 8280 30874 MT (")SH /Courier SF (kill\050\051)SH /Times-Roman SF (", but this will not work on all systems or under all conditions because of the) 219 W( complicated process)218 W 8280 32070 MT (structures that can be set up under Unix.)SH 8280 34462 MT (If the Kermit server is directed at an external line \050i.e. it is in "local) 44 W( mode"\051 then the console may be used for other)45 W 8280 35658 MT (work if you have 'set file display off';) 30 W( normally the program expects the console to be used to observe file transfers)29 W 8280 36854 MT (and enter status queries or interruption commands.) 187 W( The) 625 W( way to get C-Kermit into background operation from)188 W 8280 38050 MT (interactive command level varies from system to system \050e.g. on Berkeley Unix you would halt) 3 W( the program with)2 W /Courier SF 53880 XM (^Z)SH /Times-Roman SF 8280 39246 MT (and then use the C-Shell 'bg' command) 52 W( to continue it in the background\051. The more common method is to invoke)53 W 8280 40442 MT (the program with the desired command line arguments, including ")SH /Courier SF (-q)SH /Times-Roman SF (", and with a terminating ")SH /Courier SF (&)SH /Times-Roman SF (".)SH 8280 42834 MT (When the Unix Kermit server is given a) 62 W( 'remote host' command, it executes it using the shell invoked upon login,)61 W 8280 44030 MT (e.g. the Bourne shell or the Berkeley C-Shell.)SH 13 /Times-Bold AF 19421 47389 MT (The 'remote', 'bye', and 'finish' commands:)SH 10 /Times-Roman AF 8280 49762 MT (C-Kermit may itself request services from a remote Kermit) 103 W( server. In addition to 'send' and 'get', the following)104 W 8280 50958 MT (commands may also be sent from C-Kermit to a Kermit server:)SH 10280 52749 MT (remote cwd [)SH /Times-Italic SF (directory)SH /Times-Roman SF (])SH 12280 53854 MT (If the optional remote directory specification is included,) 109 W( you will be prompted on a separate line for a)110 W 12280 54959 MT (password, which will not echo as you type it.) 77 W( If) 402 W( the remote system does not require a password for this)76 W 12280 56064 MT (operation, just type a carriage return.)SH 10280 57855 MT (remote delete rfn)SH 22280 XM (delete remote file or files.)SH 10280 58960 MT (remote directory [)SH /Times-Italic SF (rfn)SH /Times-Roman SF (])SH 22280 XM (directory listing of remote files.)SH 10280 60065 MT (remote host)SH /Times-Italic SF 15224 XM (command)SH /Times-Roman SF 22280 XM (command in remote host's own command language.)SH 10280 61170 MT (remote space)SH 22280 XM (disk usage report from remote host.)SH 10280 62275 MT (remote type [)SH /Times-Italic SF (rfn)SH /Times-Roman SF (])SH 22280 XM (display remote file or files on the screen.)SH 10280 63380 MT (remote who [)SH /Times-Italic SF (user)SH /Times-Roman SF (])SH 22280 XM (display information about who's logged in.)SH 10280 64485 MT (remote help)SH 22280 XM (display remote server's capabilities.)SH 10280 66276 MT (bye)SH /Times-Italic SF 11974 XM (and)SH /Times-Roman SF 13724 XM (finish:)SH 12280 67381 MT (When connected to a remote Kermit server, these commands cause the remote server to terminate; 'finish')17 W 12280 68486 MT (returns it to) 39 W( Kermit or system command level \050depending on the implementation or how the program was)40 W 12280 69591 MT (invoked\051; 'bye' also requests it to log itself out.)SH ES %%Page: 12 13 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 12)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5981 UL 13 SS 20492 8071 MT (The 'log' and 'close' commands:)SH 10 /Times-Roman AF 6120 10444 MT (Syntax:)SH /Courier SF 9426 XM (log {debugging, packets, session, transactions})SH /Times-Roman SF 38226 XM ([)SH /Times-Italic SF 38809 XM (fn1)SH /Times-Roman SF 40337 XM (])SH 6120 12836 MT (C-Kermit's progress may be logged in various ways. The 'log' command opens a log, the 'close' command) 48 W( closes)47 W 6120 14032 MT (it. In) 256 W( addition, all open logs are closed by the 'exit' and 'quit' commands.) 3 W( A) 257 W( name may be specified for a log file; if)4 W 6120 15228 MT (the name is omitted, the file is created with a default name as shown below.)SH 6120 17019 MT (log debugging)SH 8120 18124 MT (This produces a voluminous log of the internal workings of C-Kermit, of) 267 W( use to Kermit developers or)268 W 8120 19229 MT (maintainers in tracking down) 46 W( suspected bugs in the C-Kermit program. Use of this feature dramatically slows)45 W 8120 20334 MT (down the Kermit protocol. Default name:)SH /Courier SF 25173 XM (debug.log)SH /Times-Roman SF (.)SH 6120 21911 MT (log packets)SH 8120 23016 MT (This produces a record of all the packets that go in and) 79 W( out of the communication port. This log is of use to)78 W 8120 24121 MT (Kermit maintainers who are tracking down protocol problems in either C-Kermit or any) 48 W( Kermit that C-Kermit)49 W 8120 25226 MT (is connected to. Default name:)SH /Courier SF 21062 XM (packet.log)SH /Times-Roman SF (.)SH 6120 26803 MT (log session)SH 8120 27908 MT (This log will contain a copy of everything you see) 83 W( on your screen during the 'connect' command, except for)84 W 8120 29013 MT (local messages or interaction with local escape commands. Default name:)SH /Courier SF 38364 XM (session.log)SH /Times-Roman SF (.)SH 6120 30590 MT (log transactions)SH 8120 31695 MT (The transaction log) 16 W( is a record of all the files that were sent or received while transaction logging was in effect.)17 W 8120 32800 MT (It includes time stamps and statistics, filename transformations, and records) 219 W( of any errors that may have)218 W 8120 33905 MT (occurred. The) 298 W( transaction log allows you to) 24 W( have long unattended file transfer sessions without fear of missing)25 W 8120 35010 MT (some vital screen message. Default name:)SH /Courier SF 25644 XM (transact.log)SH /Times-Roman SF (.)SH 6120 36801 MT (The 'close' command explicitly closes a log, e.g. 'close debug'.)SH /Times-Italic SF 6120 39193 MT (Note:)SH /Times-Roman SF 9074 XM (Debug and Transaction logs are a compile-time option; C-Kermit may be compiled without these logs,) 116 W( in)115 W 6120 40389 MT (which case it will run) 74 W( faster, it will take up less space on the disk, and the commands relating to them will not be)75 W 6120 41585 MT (present.)SH 13 /Times-Bold AF 19392 44944 MT (Local File Management Commands:)SH 10 /Times-Roman AF 6120 47317 MT (Unix Kermit allows some degree of local file management from interactive command level:)SH 6120 49108 MT (directory [)SH /Times-Italic SF (fn)SH /Times-Roman SF (])SH 8120 50213 MT (Displays a listing of the names, modes, sizes, and dates of files matching)12 W /Times-Italic SF 37662 XM (fn)SH /Times-Roman SF 38702 XM (\050which defaults to `)13 W /Courier SF (*)SH /Times-Roman SF ('\051. Equivalent)276 W 8120 51318 MT (to `)SH /Courier SF (ls -l)SH /Times-Roman SF ('.)SH 6120 52895 MT (cwd [directory-name])SH 8120 54000 MT (Changes Kermit's working directory to the one given, or to the default directory if the directory name is)188 W 8120 55105 MT (omitted. This) 250 W( command affects only the Kermit process and any processes it may subsequently create.)SH 6120 56682 MT (space)SH 8120 57787 MT (Display information about disk space and/or quota in the current directory and device.)SH /Courier SF 6120 59364 MT (!)SH /Times-Roman SF 7320 XM ([)SH /Times-Italic SF (command)SH /Times-Roman SF (])SH 8120 60469 MT (The command) 77 W( is executed by the Unix shell. If no command is specified, then an interactive shell is started;)76 W 8120 61574 MT (exiting from the shell, e.g. by typing Control-D or 'exit',) 33 W( will return you to C-Kermit command level. Use the)34 W 8120 62679 MT (`)SH /Courier SF (!)SH /Times-Roman SF (' command) 85 W( to provide file management or other functions not explicitly provided by C-Kermit commands.)84 W 8120 63784 MT (The `)SH /Courier SF (!)SH /Times-Roman SF (' command has certain peculiarities:)SH /Symbol SF 9910 65689 MT (\267)SH /Times-Roman SF 10620 XM (C-Kermit attempts to use your preferred, customary \050login\051 shell.)SH /Symbol SF 9910 66794 MT (\267)SH /Times-Roman SF 10620 XM (At least one space must separate the '!' from the shell command.)SH /Symbol SF 9910 67899 MT (\267)SH /Times-Roman SF 10620 XM (A 'cd' \050change directory\051 command executed in this manner will have no) 263 W( effect -- use the)264 W 10620 69004 MT (C-Kermit 'cwd' command instead.)SH ES %%Page: 13 14 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 13)SH 46800 50 8280 5981 UL 13 /Times-Bold AF 22470 8071 MT (The 'set' and 'show' Commands:)SH 10 /Times-Roman AF 8280 10444 MT (Since Kermit is designed to allow diverse systems) 25 W( to communicate, it is often necessary to issue special instructions)24 W 8280 11640 MT (to allow the program to adapt to peculiarities of the another) 52 W( system or the communication path. These instructions)53 W 8280 12836 MT (are accomplished by the 'set' command. The 'show' command may be used to) 63 W( display current settings. Here is a)62 W 8280 14032 MT (brief synopsis of settings available in the current release of C-Kermit:)SH 8280 15823 MT (block-check {1, 2, 3})SH 10280 16928 MT (Determines the level of per-packet) 56 W( error detection. "1" is a single-character 6-bit checksum, folded to include)55 W 10280 18033 MT (the values of all bits from each character. "2" is a 2-character, 12-bit checksum. "3" is a 3-character, 16-bit)84 W 10280 19138 MT (cyclic redundancy check \050CRC\051. The higher the) 50 W( block check, the better the error detection and correction and)49 W 10280 20243 MT (the higher the resulting overhead. Type 1 is most commonly used; it is supported by all) 387 W( Kermit)388 W 10280 21348 MT (implementations, and it has proven adequate in most circumstances. Types 2) 39 W( or 3 would be used to advantage)38 W 10280 22453 MT (when transferring 8-bit binary files over noisy lines.)SH 8280 24030 MT (delay)SH /Times-Italic SF 10696 XM (n)SH /Times-Roman SF 10280 25135 MT (How many seconds to wait before sending the first packet after a) 81 W( 'send' command. Used in remote mode to)80 W 10280 26240 MT (give you time to escape back to your local Kermit and issue a 'receive' command. Normally 5 seconds.)SH 8280 27817 MT (duplex {full, half})SH 10280 28922 MT (For use during 'connect'. Specifies) 61 W( which side is doing the echoing; 'full' means the other side, 'half' means)60 W 10280 30027 MT (C-Kermit must echo typein itself.)SH 8280 31604 MT (escape-character)SH /Times-Italic SF 15192 XM (cc)SH /Times-Roman SF 10280 32709 MT (For use during) 171 W( 'connect' to get C-Kermit's attention. The escape character acts as a prefix to an 'escape)170 W 10280 33814 MT (command', for instance to close the connection and return) 78 W( to C-Kermit or Unix command level. The normal)79 W 10280 34919 MT (escape character is Control-Backslash \05028\051. The escape character is also) 21 W( used in System III/V implementations)20 W 10280 36024 MT (to prefix interrupt commands during file transfers.)SH 8280 37601 MT (file {display, names, type, warning})SH 10280 38706 MT (Establish various file-related parameters:)SH 10280 40497 MT (display {on, off})SH 12280 41602 MT (Normally 'on'; when) 58 W( in local mode, display progress of file transfers on the screen \050stdout\051, and listen to)59 W 12280 42707 MT (the keyboard \050stdin\051 for interruptions. If off \050-q on command line\051 none of this is) 164 W( done, and the file)163 W 12280 43812 MT (transfer may proceed in the) 155 W( background oblivious to any other work concurrently done at the console)156 W 12280 44917 MT (terminal.)SH 10280 46494 MT (names {converted, literal})SH 12280 47599 MT (Normally converted, which means that outbound filenames have) 116 W( path specifications stripped, lowercase)117 W 12280 48704 MT (letters raised to upper, tildes) 19 W( and extra periods changed to X's, and an X inserted in front of any name that)18 W 12280 49809 MT (starts with period.) 199 W( Incoming) 649 W( files have uppercase letters lowered. Literal means that none of these)200 W 12280 50914 MT (conversions are done; therefore, any directory path) 116 W( appearing in a received file specification must exist)115 W 12280 52019 MT (and be write-accessible. When literal naming is being used, the sender should) 63 W( not use path names in the)64 W 12280 53124 MT (file specification unless the same path exists on the target system and is writable.)SH 10280 54701 MT (type {binary, text} [{7, 8}])SH 12280 55806 MT (The file type is) 41 W( normally text, which means that conversion is done between Unix newline characters and)42 W 12280 56911 MT (the carriage-return/linefeed sequences required by the canonical) 112 W( Kermit file transmission format, and in)111 W 12280 58016 MT (common use on non-Unix systems. Binary means to) 103 W( transmit file contents without conversion. Binary)104 W 12280 59121 MT (\050`)SH /Courier SF (-i)SH /Times-Roman SF (' in command line notation\051 is necessary for binary files, and desirable in all) 339 W( Unix-to-Unix)338 W 12280 60226 MT (transactions to cut down on overhead.)SH 12280 61803 MT (The optional trailing parameter tells the bytesize for file transfer. It is 8 by default. If you specify 7,) 49 W( the)50 W 12280 62908 MT (high order bit will be stripped from each byte of) 9 W( sent and received files. This is useful for transferring text)8 W 12280 64013 MT (files that may have extraneous high order bits set in their disk representation \050e.g.) 111 W( Wordstar) 473 W( or similar)112 W 12280 65118 MT (word processor files\051.)SH 10280 66695 MT (warning {on, off})SH 12280 67800 MT (Normally off,) 136 W( which means that incoming files will silently overwrite existing files of the same name.)137 W 12280 68905 MT (When on \050`)28 W /Courier SF (-w)SH /Times-Roman SF (' on command line\051 Kermit will check if an) 28 W( arriving file would overwrite an existing file; if)27 W 12280 70010 MT (so, it will construct a new name for the arriving file, of the) 19 W( form)20 W /Courier SF 38377 XM (foo~)SH /Times-Italic SF (n)SH /Times-Roman SF (, where foo is the name they share)20 W 12280 71115 MT (and)SH /Times-Italic SF 14009 XM (n)SH /Times-Roman SF 14794 XM (is a) 35 W( "generation number"; if)34 W /Times-Italic SF 26307 XM (foo)SH /Times-Roman SF 27869 XM (exists, then the new file will be called)34 W /Courier SF 43500 XM (foo~1)SH /Times-Roman SF (. If)318 W /Courier SF 48268 XM (foo)SH /Times-Roman SF 50352 XM (and)SH /Courier SF 52080 XM (foo~1)SH ES %%Page: 14 15 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 14)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 10120 7886 MT (exist, the new file will be)30 W /Courier SF 20660 XM (foo~2)SH /Times-Roman SF (, and so on. If the new) 30 W( name would be longer than the maximum length)31 W 10120 8991 MT (for a filename, then characters would be) 21 W( deleted from the end first, for instance,)20 W /Courier SF 42536 XM (thelongestname)SH /Times-Roman SF 51206 XM (on a)20 W 10120 10096 MT (system with a limit of 14 characters would become)SH /Courier SF 30756 XM (thelongestn~1)SH /Times-Roman SF (.)SH /Times-Italic SF 12120 11887 MT (CAUTION:)SH /Times-Roman SF 17311 XM (If Control-F or Control-B is used to cancel an incoming file, and a file of the) 40 W( same)41 W 12120 12992 MT (name previously existed,)13 W /Times-Italic SF 22380 XM (and)SH /Times-Roman SF 24143 XM (the "file) 13 W( warning" feature is not enabled, then the previous copy of)12 W 12120 14097 MT (the file will disappear.)SH 6120 15888 MT (flow-control {none, xon/xoff})SH 8120 16993 MT (Normally xon/xoff for full duplex flow control. Should be set to 'none' if the) 28 W( other system cannot do xon/xoff)27 W 8120 18098 MT (flow control, or if you have issued a 'set handshake' command. If set to xon/xoff, then handshake should) SH( be set)1 W 8120 19203 MT (to none. This setting applies during both terminal connection and file transfer.)49 W /Times-Italic SF 40747 XM (Warning:)SH /Times-Roman SF 44879 XM (This command) 49 W( may)48 W 8120 20308 MT (have no) 214 W( effect on certain Unix systems, where Kermit puts the communication line into 'rawmode', and)215 W 8120 21413 MT (rawmode precludes flow control.)SH 6120 22990 MT (incomplete {discard, keep})SH 8120 24095 MT (Disposition for incompletely received files. If an incoming file is interrupted or an error occurs during transfer,)10 W 8120 25200 MT (the part) 62 W( that was received so far is normally discarded. If you "set incomplete keep" then such file fragments)61 W 8120 26305 MT (will be kept.)SH 6120 27882 MT (handshake {xon, xoff, cr, lf, bell, esc, none})SH 8120 28987 MT (Normally none.) 149 W( Otherwise,) 547 W( half-duplex communication line turnaround handshaking is done, which means)148 W 8120 30092 MT (Unix Kermit will) 46 W( not reply to a packet until it has received the indicated handshake character or has timed out)47 W 8120 31197 MT (waiting for it; the handshake setting applies only during file transfer. If you set handshake to other) 44 W( than none,)43 W 8120 32302 MT (then flow should be set to none.)SH 6120 33879 MT (line [device-name])SH 8120 34984 MT (The device name for the communication line to be) 275 W( used for file transfer and terminal connection, e.g.)274 W /Courier SF 8120 36089 MT (/dev/ttyi3)SH /Times-Roman SF (. If) 282 W( you specify a device name, Kermit will be in local mode, and you should remember) 16 W( to issue)17 W 8120 37194 MT (any other necessary 'set' commands, such as 'set speed'. If you omit) 20 W( the device name, Kermit will revert to its)19 W 8120 38299 MT (default mode of operation. If you specify)44 W /Courier SF 25385 XM (/dev/tty)SH /Times-Roman SF (, Kermit will enter remote mode \050useful when logged in)45 W 8120 39404 MT (through the "back port" of a system normally used as a local-mode workstation\051.) 101 W( When) 451 W( Unix Kermit enters)100 W 8120 40509 MT (local mode, it attempts to synchronize with other programs \050like) 3 W( uucp\051 that use external communication lines so)4 W 8120 41614 MT (as to prevent two programs using the same line at once; before attempting to lock the specified line, it will close)SH 8120 42719 MT (and unlock any external line that was previously in use. The method used for locking is the) 66 W( "uucp lock file",)67 W 8120 43824 MT (explained in more detail later.)SH 6120 45401 MT (modem-dialer {direct, hayes, racalvadic, ventel, ...})SH 8120 46506 MT (The type of modem dialer on the communication line. "Direct" indicates either there is no dialout modem,) 58 W( or)59 W 8120 47611 MT (that if the line requires carrier detection to open, then 'set line' will) 218 W( hang waiting for an incoming call.)217 W 8120 48716 MT ("Hayes", "Ventel", and the others indicate) 3 W( that 'set line' \050or the -l argument\051 will prepare for a subsequent 'dial')4 W 8120 49821 MT (command for) 25 W( the given dialer. Support for new dialers is added from time to time, so type 'set modem ?' for a)24 W 8120 50926 MT (list of those supported in your copy of Kermit. See the description of the 'dial' command)SH 6120 52503 MT (parity {even, odd, mark, space, none})SH 8120 53608 MT (Specify character parity for use in packets and terminal connection, normally none. If other than) 226 W( none,)225 W 8120 54713 MT (C-Kermit will seek to use the 8th-bit prefixing mechanism for transferring 8-bit) 21 W( binary data, which can be used)22 W 8120 55818 MT (successfully only if the other Kermit agrees; if not, 8-bit binary data cannot be successfully transferred.)SH 6120 57395 MT (prompt [string])SH 8120 58500 MT (The given string will be substituted for ")65 W /Courier SF (C-Kermit)SH /Times-Roman SF (>" as this program's prompt.) 65 W( If) 382 W( the string is omitted, the)66 W 8120 59605 MT (prompt will revert to ")33 W /Courier SF (C-Kermit>)SH /Times-Roman SF (". If) 316 W( the string is enclosed in) 33 W( doublequotes, the quotes will be stripped and)32 W 8120 60710 MT (any leading and trailing blanks will be retained.)SH 6120 62287 MT (send)SH /Times-Italic SF 8203 XM (parameter)SH /Times-Roman SF 8120 63392 MT (Establish parameters to use when sending packets. These will be in) 21 W( effect only for the initial packet sent, since)20 W 8120 64497 MT (the other Kermit may override these parameters during the protocol parameter exchange \050unless noted below\051.)SH 8120 66288 MT (end-of-packet)SH /Times-Italic SF 13923 XM (cc)SH /Times-Roman SF 10120 67393 MT (Specifies the) 114 W( control character needed by the other Kermit to recognize the end of a packet. C-Kermit)113 W 10120 68498 MT (sends this character at the end of each) 248 W( packet. Normally 13 \050carriage return\051, which most Kermit)249 W 10120 69603 MT (implementations require. Other Kermits require no) 97 W( terminator at all, still others may require a different)96 W 10120 70708 MT (terminator, like linefeed \05010\051.)SH ES %%Page: 15 16 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 15)SH 46800 50 8280 5709 UL /Times-Roman SF 10280 7886 MT (packet-length)SH /Times-Italic SF 15973 XM (n)SH /Times-Roman SF 12280 8991 MT (Specify the maximum packet length to) 30 W( send. Normally 90. Shorter packet lengths can be useful on noisy)29 W 12280 10096 MT (lines, or with systems or front ends or networks that have small buffers.) 10 W( The) 271 W( shorter the packet, the higher)11 W 12280 11201 MT (the overhead, but) 4 W( the lower the chance of a packet being corrupted by noise, and the less time to retransmit)3 W 12280 12306 MT (corrupted packets. This command) 178 W( overrides the value requested by the other Kermit during protocol)179 W 12280 13411 MT (initiation unless the other Kermit requests a shorter length.)SH 10280 14988 MT (pad-character)SH /Times-Italic SF 15971 XM (cc)SH /Times-Roman SF 12280 16093 MT (Designate a character to send before each packet.) 274 W( Normally,) 799 W( none is sent. Outbound padding is)275 W 12280 17198 MT (sometimes necessary for communicating with slow half duplex systems that provide no other means of)117 W 12280 18303 MT (line turnaround control. It can also) 55 W( be used to send special characters to communications equipment that)56 W 12280 19408 MT (needs to be put in "transparent" or "no echo" mode, when this can be accomplished in by feeding it a)132 W 12280 20513 MT (certain control character.)SH 10280 22090 MT (padding)SH /Times-Italic SF 13752 XM (n)SH /Times-Roman SF 12280 23195 MT (How many pad characters to send, normally 0.)SH 10280 24772 MT (start-of-packet)SH /Times-Italic SF 16361 XM (cc)SH /Times-Roman SF 12280 25877 MT (The normal) 125 W( Kermit packet prefix is Control-A \0501\051; this command changes the prefix C-Kermit puts on)126 W 12280 26982 MT (outbound packets. The only reasons this should) 136 W( ever be changed would be: Some piece of equipment)135 W 12280 28087 MT (somewhere between the two Kermit programs will not pass through a Control-A; or, some piece of of)132 W 12280 29192 MT (equipment similarly) 4 W( placed is echoing its input. In the latter case, the recipient of such an echo can change)3 W 12280 30297 MT (the packet prefix for outbound) 122 W( packets to be different from that of arriving packets, so that the echoed)123 W 12280 31402 MT (packets will be ignored. The opposite Kermit must also be told to) 170 W( change the prefix for its inbound)169 W 12280 32507 MT (packets.)SH 10280 34084 MT (timeout)SH /Times-Italic SF 13586 XM (n)SH /Times-Roman SF 12280 35189 MT (Specifies the number of) 74 W( seconds you want the other Kermit to wait for a packet before timing it out and)73 W 12280 36294 MT (requesting retransmission.)SH 8280 38085 MT (receive)SH /Times-Italic SF 11417 XM (parameter)SH /Times-Roman SF 10280 39190 MT (Establish parameters to request the other Kermit to use when sending packets.)SH 10280 40981 MT (end-of-packet)SH /Times-Italic SF 16083 XM (cc)SH /Times-Roman SF 12280 42086 MT (Requests the other Kermit to terminate its packets with the specified character.)SH 10280 43663 MT (packet-length)SH /Times-Italic SF 15973 XM (n)SH /Times-Roman SF 12280 44768 MT (Specify the maximum packet length to) 175 W( that you want the other Kermit to send, normally 90. If you)174 W 12280 45873 MT (specify a length of 95 or greater, then it will be used if the other Kermit supports, and) 70 W( agrees to use, the)71 W 12280 46978 MT (Kermit protocol extension for) 58 W( long packets. In this case, the maximum length depends upon the systems)57 W 12280 48083 MT (involved, but) 125 W( there would normally be no reason for packets to be more than about 1000 characters in)126 W 12280 49188 MT (length. The) 250 W( 'show parameters' command displays C-Kermit's current and maximum packet lengths.)SH 10280 50765 MT (pad-character)SH /Times-Italic SF 15971 XM (cc)SH /Times-Roman SF 12280 51870 MT (C-Kermit normally does not need to have incoming) 20 W( packets preceded with pad characters. This command)21 W 12280 52975 MT (allows C-Kermit to request the other Kermit to use)SH /Times-Italic SF 32861 XM (cc)SH /Times-Roman SF 33999 XM (as a pad character. Default)SH /Times-Italic SF 45133 XM (cc)SH /Times-Roman SF 46271 XM (is NUL, ASCII 0.)SH 10280 54552 MT (padding)SH /Times-Italic SF 13752 XM (n)SH /Times-Roman SF 12280 55657 MT (How many pad characters to ask for, normally 0.)SH 10280 57234 MT (start-of-packet)SH /Times-Italic SF 16361 XM (cc)SH /Times-Roman SF 12280 58339 MT (Change the prefix C-Kermit looks) 124 W( for on inbound packets to correspond with what the other Kermit is)123 W 12280 59444 MT (sending.)SH 10280 61021 MT (timeout)SH /Times-Italic SF 13586 XM (n)SH /Times-Roman SF 12280 62126 MT (Normally, each Kermit partner sets its packet timeout) 8 W( interval based on what the opposite Kermit requests.)7 W 12280 63231 MT (This command allows you to override the normal procedure and specify a timeout interval for) 200 W( Unix)201 W 12280 64336 MT (Kermit to use when waiting for packets) 103 W( from the other Kermit. If you specify 0, then no timeouts will)102 W 12280 65441 MT (occur, and Unix Kermit will wait forever for expected packets to arrive.)SH 8280 67232 MT (speed {0, 110, 150, 300, 600, 1200, 1800, 2400, 4800, 9600})SH 10280 68337 MT (The baud rate for the external communication line. This command cannot be used to change the speed of) 28 W( your)27 W 10280 69442 MT (own console terminal. Many Unix systems are set up in such a way that you must give this) 62 W( command after a)63 W 10280 70547 MT ('set line' command before you can use the line. 'set baud' is a synomym for 'set speed'.)SH ES %%Page: 16 17 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 16)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 6120 7886 MT (terminal)SH 8120 8991 MT (Used for) 14 W( specifying terminal parameters. Currently, 'bytesize' is the only parameter provided, and it can be set)15 W 8120 10096 MT (to 7 or 8. It's 7 by default.)SH 13 /Times-Bold AF 23127 13455 MT (The 'show' Command:)SH 10 /Times-Roman AF 6120 15828 MT (Syntax:)SH /Courier SF 9426 XM (show {parameters, versions})SH /Times-Roman SF 6120 18220 MT (The "show" command with the default argument of "parameters" displays the values of all the) 157 W( 'set' parameters)156 W 6120 19416 MT (described above. If you type "show versions", then C-Kermit will display the version numbers and dates) 68 W( of all its)69 W 6120 20612 MT (internal modules. You should use the "show versions" command to ascertain the vintage of) 78 W( your Kermit program)77 W 6120 21808 MT (before reporting problems to Kermit maintainers.)SH 13 /Times-Bold AF 22153 25167 MT (The 'statistics' Command:)SH 10 /Times-Roman AF 6120 27540 MT (The statistics command displays information about the most recent Kermit protocol transaction,) 83 W( including file and)84 W 6120 28736 MT (communication line i/o, timing and efficiency, as well as what encoding options) 154 W( were in effect \050such as 8th-bit)153 W 6120 29932 MT (prefixing, repeat-count compression\051.)SH 13 /Times-Bold AF 20022 33291 MT (The 'take' and 'echo' Commands:)SH 10 /Times-Roman AF 6120 35664 MT (Syntax:)SH /Courier SF 9426 XM (take)SH /Times-Italic SF 12426 XM (fn1)SH /Courier SF 7370 36860 MT (echo)SH /Times-Italic SF 10370 XM ([text to be echoed])SH /Times-Roman SF 6120 39252 MT (The 'take' command instructs C-Kermit to) 171 W( execute commands from the named file. The file may contain any)172 W 6120 40448 MT (interactive C-Kermit commands, including 'take'; command files may be nested to) 23 W( any reasonable depth, but it may)22 W 6120 41644 MT (not contain text to be sent to a remote system during the 'connect' command. This means that a command file like)41 W 6120 42840 MT (this:)SH /Courier SF 8520 44495 MT (set line /dev/tty17)SH 8520 45526 MT (set speed 9600)SH 8520 46557 MT (connect)SH 8520 47588 MT (login myuserid)SH 8520 48619 MT (mypassword)SH /Times-Italic SF 8520 49650 MT (etc)SH /Times-Roman SF 6120 51367 MT (will not send "login myserid" or any of the following text to the remote system. To carry) 1 W( on a canned dialog, use the)SH 6120 52563 MT ('script' command, described later.)SH 6120 54955 MT (The ')25 W /Courier SF (%)SH /Times-Roman SF (' command is useful for including comments in take-command) 25 W( files. It may only be used at the beginning of)26 W 6120 56151 MT (a line.)SH 6120 58543 MT (The 'echo' command may be used within command files to issue greetings, announce progress, ring the terminal)106 W 6120 59739 MT (bell, etc. The 'echo') 41 W( command should not be confused with the Unix 'echo' command, which can be used to show)42 W 6120 60935 MT (how meta characters would) 112 W( be expanded. The Kermit echo command simply displays its text argument \050almost\051)111 W 6120 62131 MT (literally at the terminal; the argument may contain octal escapes of) 121 W( the form ``)122 W /Courier SF (\134ooo)SH /Times-Roman SF ('', where)122 W /Courier SF 45443 XM (o)SH /Times-Roman SF 46415 XM (is an octal digit)122 W 6120 63327 MT (\0500-7\051, and there may be 1, 2,) 14 W( or 3 such digits, whose value specify an ASCII character, such as ``)13 W /Courier SF (\134007)SH /Times-Roman SF ('' \050or ``)13 W /Courier SF (\13407)SH /Times-Roman SF ('')SH 6120 64523 MT (or just ``)116 W /Courier SF (\1347)SH /Times-Roman SF (''\051 for beep, ``)116 W /Courier SF (\134012)SH /Times-Roman SF ('' for newline, etc. Of course, each backslash must be must be) 116 W( entered twice in)117 W 6120 65719 MT (order for it to be passed along to the echo command by the Kermit command parser.)SH 6120 68111 MT (Take-command files are in exactly) 14 W( the same syntax as interactive commands. Note that this implies that if you want)13 W 6120 69307 MT (to include special characters like question mark or backslash that you would have) 124 W( to quote with backslash when)125 W 6120 70503 MT (typing interactive commands, you must quote these characters the same way in command files. Long lines) 48 W( may be)47 W 6120 71699 MT (continued by ending them with a single backslash.)SH ES %%Page: 17 18 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 17)SH 46800 50 8280 5709 UL /Times-Roman SF 8280 7886 MT (Command files may be used in lieu of) 166 W( command macros, which have not been implemented in this version of)167 W 8280 9082 MT (C-Kermit. For) 412 W( instance, if you commonly connect to a system) 81 W( called 'B' that is connected to ttyh7 at 4800 baud,)80 W 8280 10278 MT (you could create a file called)SH /Courier SF 20054 XM (b)SH /Times-Roman SF 20904 XM (containing the commands)SH /Courier SF 10680 11933 MT (% C-Kermit command file to connect to System B thru /dev/ttyh7)SH 10680 12964 MT (set line /dev/ttyh7)SH 10680 13995 MT (set speed 4800)SH 10680 15026 MT (% Beep and give message)SH 10680 16057 MT (echo \134\134007Connecting to System B...)SH 10680 17088 MT (connect)SH /Times-Roman SF 8280 18805 MT (and then simply type 'take b' \050or 't b' since no other) 116 W( commands begin with the letter 't'\051 whenever you wish to)117 W 8280 20001 MT (connect to system B. Note the comment lines and the beep inserted into the 'echo' command.)SH 8280 22393 MT (For connecting to IBM mainframes, a number of 'set' commands are required; these, too,) 174 W( can be conveniently)173 W 8280 23589 MT (collected into a 'take' file like this one:)SH /Courier SF 10680 25244 MT (% Sample C-Kermit command file to set up current line)SH 10680 26275 MT (% for IBM mainframe communication)SH 10680 27306 MT (%)SH 10680 28337 MT (set parity mark)SH 10680 29368 MT (set handshake xon)SH 10680 30399 MT (set flow-control none)SH 10680 31430 MT (set duplex half)SH /Times-Roman SF 8280 33822 MT (Note that no single command is) 45 W( available to wipe out all of these settings and return C-Kermit to its default startup)46 W 8280 35018 MT (state; to do that, you can either restart the program, or else make a) 77 W( command file that executes the necessary 'set')76 W 8280 36214 MT (commands:)SH /Courier SF 10680 37869 MT (% Sample C-Kermit command file to restore normal settings)SH 10680 38900 MT (%)SH 10680 39931 MT (set parity none)SH 10680 40962 MT (set handshake none)SH 10680 41993 MT (set flow-control xon/xoff)SH 10680 43024 MT (set duplex full)SH /Times-Roman SF 8280 45416 MT (An implicit 'take' command is executed upon your)46 W /Courier SF 29313 XM (.kermrc)SH /Times-Roman SF 33810 XM (file when C-Kermit starts up, upon either interactive)47 W 8280 46612 MT (or command-line invocation. The)18 W /Courier SF 22257 XM (.kermrc)SH /Times-Roman SF 26725 XM (file should contain 'set' or other commands you want to be in effect at)17 W 8280 47808 MT (all times. For instance, you might want override the default action when) 102 W( incoming files have the same names as)103 W 8280 49004 MT (existing files -- in that case, put the command)SH /Courier SF 10680 50659 MT (set file warning on)SH /Times-Roman SF 8280 52376 MT (in your)53 W /Courier SF 11496 XM (.kermrc)SH /Times-Roman SF 15998 XM (file. On) 354 W( some non-Unix systems that run C-Kermit, the initialization file might have a different)52 W 8280 53572 MT (name, such as)SH /Courier SF 14112 XM (kermit.ini)SH /Times-Roman SF (.)SH 8280 55964 MT (Errors encountered during execution of take files \050such as failure to) 210 W( complete dial or script operations\051 cause)211 W 8280 57160 MT (termination of the current take file, popping to the level that invoked it \050take file, interactive level, or the) 120 W( shell\051.)119 W 8280 58356 MT (When kermit is executed in the background, errors during execution of a take file are fatal.)SH 8280 60748 MT (Under Unix, you may also use the shell's redirection mechanism to cause C-Kermit to execute commands from a)90 W 8280 61944 MT (file:)SH /Courier SF 10680 63599 MT (kermit < cmdfile)SH /Times-Roman SF 8280 65316 MT (or you can even pipe commands in from another process:)SH /Courier SF 10680 66971 MT (cmdprocess | kermit)SH ES %%Page: 18 19 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 18)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5981 UL 13 SS 22406 8071 MT (The 'connect' Command:)SH 10 /Times-Roman AF 6120 10444 MT (The 'connect' command \050'c' is) 53 W( an acceptable non-unique abbreviation for 'connect'\051 links your terminal to another)52 W 6120 11640 MT (computer as if it were) 91 W( a local terminal to that computer, through the device specified in the most recent 'set line')92 W 6120 12836 MT (command, or through the default) 130 W( device if your system is a PC or workstation. All characters you type at your)129 W 6120 14032 MT (keyboard are sent out the communication) 17 W( line \050and if you have 'set duplex half', also displayed on your screen\051, and)18 W 6120 15228 MT (all characters arriving at the communication port) 143 W( are displayed on the screen. Current settings of speed, parity,)142 W 6120 16424 MT (duplex, and flow-control are honored, and the data connection is 7 bits wide unless you have given the) 88 W( command)89 W 6120 17620 MT ('set terminal bytesize 8'. If you have issued a 'log) 52 W( session' command, everything you see on your screen will also)51 W 6120 18816 MT (be recorded) 25 W( to your session log. This provides a way to "capture" files from remote systems that don't have Kermit)26 W 6120 20012 MT (programs available.)SH 6120 22404 MT (To get back to your own system, you must type the escape character, which is Control-Backslash) 74 W( \050)73 W /Courier SF (^\134)SH /Times-Roman SF (\051 unless you)73 W 6120 23600 MT (have changed it with the 'set) 126 W( escape' command, followed by a single-character command, such as 'c' for "close)127 W 6120 24796 MT (connection". Single-character) 250 W( commands include:)SH 7120 26587 MT (c)SH 10120 XM (Close the connection)SH 7120 28134 MT (b)SH 10120 XM (Send a BREAK signal)SH 7120 29681 MT (0)SH 10120 XM (\050zero\051 send a null)SH 7120 31228 MT (s)SH 10120 XM (Give a status report about the connection)SH 7120 32775 MT (h)SH 10120 XM (Hangup the phone)SH /Courier SF 7120 34322 MT (^\134)SH /Times-Roman SF 10120 XM (Send Control-Backslash itself \050whatever you have defined the escape character to be,) 18 W( typed twice in a row)17 W 10120 35427 MT (sends one copy of it\051.)SH 6120 37218 MT (Uppercase and control equivalents for \050most of\051 these) 148 W( letters are also accepted. A space typed after the escape)149 W 6120 38414 MT (character is ignored. Any other character will produce a beep.)SH 6120 40806 MT (The connect command simply displays) 237 W( incoming characters on the screen. It is assumed any screen control)236 W 6120 42002 MT (sequences sent by the host will be handled by the) 22 W( firmware or emulation software in your terminal or PC. If special)23 W 6120 43198 MT (terminal emulation is) 82 W( desired, then the 'connect' command can invoked from the Unix command line \050)81 W /Courier SF (-c)SH /Times-Roman SF 49973 XM (or)SH /Courier SF 51137 XM (-n)SH /Times-Roman SF (\051,)SH 6120 44394 MT (piped through a terminal emulation filter, e.g.)SH /Courier SF 8520 46049 MT (kermit -l /dev/acu -b 1200 -c | tek)SH 13 /Times-Bold AF 23670 49408 MT (The 'dial' command:)SH 10 /Times-Roman AF 6120 51781 MT (Syntax:)SH /Courier SF 9426 XM (dial)SH /Times-Italic SF 12426 XM (telephone-number-string)SH /Times-Roman SF 6120 54173 MT (This command controls dialout modems; you should) 83 W( have already issued a "set line" and "set speed" command to)84 W 6120 55369 MT (identify the terminal device, and a "set modem" command to) 49 W( identify the type of modem to be used for dialing. In)48 W 6120 56565 MT (the "dial" command, you supply the phone number and the Kermit program feeds it to the modem in the appropriate)17 W 6120 57761 MT (format and then interprets dialer return codes and modem signals to inform you whether the call) 113 W( was completed.)112 W 6120 58957 MT (The telephone-number-string may contain imbedded modem-dialer commands,) 51 W( such as comma for Hayes pause, or)52 W 6120 60153 MT (`)SH /Courier SF (&)SH /Times-Roman SF (' for Ventel dialtone wait and `)SH /Courier SF (%)SH /Times-Roman SF (' for Ventel pause \050consult your modem manual for details\051.)SH 6120 62545 MT (At the time of this writing, support is included for the following modems:)SH /Symbol SF 7910 64450 MT (\267)SH /Times-Roman SF 8620 XM (AT&T 7300 Internal Modem)SH /Symbol SF 7910 65555 MT (\267)SH /Times-Roman SF 8620 XM (Cermetek Info-Mate 212A)SH /Symbol SF 7910 66660 MT (\267)SH /Times-Roman SF 8620 XM (Concord Condor CDS 220)SH /Symbol SF 7910 67765 MT (\267)SH /Times-Roman SF 8620 XM (DEC DF03-AC)SH /Symbol SF 7910 68870 MT (\267)SH /Times-Roman SF 8620 XM (DEC DF100 Series)SH /Symbol SF 7910 69975 MT (\267)SH /Times-Roman SF 8620 XM (DEC DF200 Series)SH /Symbol SF 7910 71080 MT (\267)SH /Times-Roman SF 8620 XM (General DataComm 212A/ED)SH ES %%Page: 19 20 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 19)SH 46800 50 8280 5709 UL /Symbol SF 10070 8000 MT (\267)SH /Times-Roman SF 10780 XM (Hayes Smartmodem 1200 and compatibles)SH /Symbol SF 10070 9105 MT (\267)SH /Times-Roman SF 10780 XM (Penril)SH /Symbol SF 10070 10210 MT (\267)SH /Times-Roman SF 10780 XM (Racal Vadic)SH /Symbol SF 10070 11315 MT (\267)SH /Times-Roman SF 10780 XM (US Robotics 212A)SH /Symbol SF 10070 12420 MT (\267)SH /Times-Roman SF 10780 XM (Ventel)SH 8280 14211 MT (Support for new modems is added to the program from time to time; you can check the current list by typing) 43 W( ")42 W /Courier SF (set)SH 8280 15407 MT (modem ?)SH /Times-Roman SF (".)SH 8280 17799 MT (The device used for dialing out) 57 W( is the one selected in the most recent "set line" command \050or on a workstation, the)58 W 8280 18995 MT (default line if no "set line" command was given\051. The "dial" command calls) 51 W( locks the path \050see the section on line)50 W 8280 20191 MT (locking below\051 and establishes a call on an) 41 W( exclusive basis. If it is desired to dial a call and then return to the shell)42 W 8280 21387 MT (\050such as to do kermit activities depending on standard in/out redirection\051, it is necessary to) 133 W( place the dialed call)132 W 8280 22583 MT (under one device name \050say, ")22 W /Courier SF (/dev/cua0)SH /Times-Roman SF ("\051 and then escape to the shell)22 W /Times-Italic SF 38226 XM (within Kermit)22 W /Times-Roman SF 44050 XM (on a linked device which is)23 W 8280 23779 MT (separate from the dialed line \050say, ")58 W /Courier SF (/dev/cul0)SH /Times-Roman SF ("\051. This) 364 W( is the same technique used by uucp \050to allow locks to be)57 W 8280 24975 MT (placed separately for dialing and conversing\051.)SH 8280 27367 MT (Because modem) 136 W( dialers have strict requirements to override the carrier-detect signal most Unix implementations)137 W 8280 28563 MT (expect, the sequence for dialing is more rigid than most other C-Kermit procedures.)SH 8280 30955 MT (Example one:)SH /Courier SF 10680 32610 MT (kermit -l /dev/cul0 -b 1200)SH 16200 50 10680 32810 UL 10680 33641 MT (C-Kermit>set modem-dialer hayes)SH /Times-Italic SF 31680 XM (hint: abbreviate)SH /Courier SF 38696 XM (set m h)SH 13200 50 16080 33841 UL 10680 34672 MT (C-Kermit>dial 9,5551212)SH 8400 50 16080 34872 UL 10680 35703 MT (Connected!)SH 10680 36734 MT (C-Kermit>connect)SH /Times-Italic SF 31680 XM (hint: abbreviate)SH /Courier SF 38696 XM (c)SH 4200 50 16080 36934 UL /Times-Italic SF 10680 37765 MT (logon, request remote server, etc.)SH /Courier SF 10680 38796 MT (^\134c)SH /Times-Italic SF 31680 XM (escape back)SH 1800 50 10680 38996 UL /Courier SF 10680 39827 MT (C-Kermit> ...)SH 10680 40858 MT (C-Kermit>quit)SH /Times-Italic SF 31680 XM (hint: abbreviate)SH /Courier SF 38696 XM (q)SH 2400 50 16080 41058 UL /Times-Roman SF 8280 42575 MT (this disconnects modem, and unlocks line.)SH 8280 44967 MT (Example two:)SH /Courier SF 10680 46622 MT (kermit)SH 3600 50 10680 46822 UL 10680 47653 MT (C-Kermit>set modem-dialer ventel)SH 13800 50 16080 47853 UL 10680 48684 MT (C-Kermit>set line /dev/cul0)SH 10800 50 16080 48884 UL 10680 49715 MT (C-Kermit>dial 9&5551212%)SH 9000 50 16080 49915 UL 10680 50746 MT (Connected!)SH 10680 51777 MT (C-Kermit> ...)SH /Times-Roman SF 8280 53494 MT (Example three:)SH /Courier SF 10680 55149 MT (kermit)SH 10680 56180 MT (C-Kermit>take my-dial-procedure)SH 13200 50 16080 56380 UL 10680 57211 MT (Connected!)SH /Times-Italic SF 10680 58926 MT (file my-dial-procedure)SH /Courier SF (:)SH 10680 59957 MT (set modem hayes)SH 10680 60988 MT (set line /dev/tty99)SH 10680 62019 MT (dial 5551212)SH 10680 63050 MT (connect)SH /Times-Roman SF 8280 64767 MT (In general, C-Kermit requires that the modem provide the "carrier detect" \050CD\051 signal when a call is in progress, and)7 W 8280 65963 MT (remove that signal when the call completes or the) 36 W( line drops. If a modem switch setting is available to force CD, it)37 W 8280 67159 MT (should normally not be in that setting.) 235 W( C-Kermit) 719 W( also requires \050on most systems\051 that the modem track the)234 W 8280 68355 MT (computer's "data) 34 W( terminal ready" \050DTR\051 signal. If a switch setting is available to simulate DTR asserted within the)35 W 8280 69551 MT (modem, then it should normally not be in that setting. Otherwise the modem will be unable to hang) 17 W( up at the end of)16 W 8280 70747 MT (a call or when interrupts are received by Kermit.)SH ES %%Page: 20 21 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 20)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 6120 7886 MT (For Hayes) 76 W( dialers,) 403 W( two important switch settings are #1 and #6. Switch #1 should be normally be UP so that the)77 W 6120 9082 MT (modem can act according to your computer's DTR signal. But if your computer, or) 95 W( particular implementation of)94 W 6120 10278 MT (Kermit, cannot control DTR,) 64 W( then switch 1 should be DOWN. Switch #6 should normally be UP so carrier-detect)65 W 6120 11474 MT (functions properly \050but put it DOWN if you have trouble with the UP position\051. Switches #2) 57 W( \050English versus digit)56 W 6120 12670 MT (result codes\051 and #4 \050Hayes echoes modem commands\051 may be in either position.)SH 6120 15062 MT (If you want to interrupt a) 6 W( dial command in progress \050for instance, because you just realize that you gave it the wrong)7 W 6120 16258 MT (number\051, type a Control-C to get back to command level.)SH 13 /Times-Bold AF 22948 19617 MT (The 'script' Command:)SH 10 /Times-Roman AF 6120 21990 MT (Syntax:)SH /Courier SF 9426 XM (script)SH /Times-Italic SF 13626 XM (expect send [expect send] . . .)SH /Times-Roman SF 6120 24382 MT ("expect" has the syntax:)SH /Times-Italic SF 15990 XM (expect[-send-expect[-send-expect[...]]])SH /Times-Roman SF 6120 26774 MT (The 'script' command carries on a "canned dialog" with a) 120 W( remote system, in which data is sent according to the)119 W 6120 27970 MT (remote system's responses. The typical use is for logging in to a remote system automatically.)SH 6120 30362 MT (C-Kermit's script facility) SH( operates in a manner similar to that commonly used by the Unix UUCP system's ")1 W /Courier SF (L.sys)SH /Times-Roman SF (")SH 6120 31558 MT (file entries. A login script is a sequence of the form:)SH /Times-Italic SF 8520 33273 MT (expect send [expect send] . . .)SH /Times-Roman SF 6120 34990 MT (where)SH /Times-Italic SF 8844 XM (expect)SH /Times-Roman SF 11679 XM (is a prompt or message to be issued) 31 W( by the remote site, and)30 W /Times-Italic SF 35851 XM (send)SH /Times-Roman SF 37964 XM (is the string \050names, numbers, etc\051 to)30 W 6120 36186 MT (return, and expects are separated from sends by spaces. The send may also be the keyword) 7 W( EOT, to send Control-D,)8 W 6120 37382 MT (or BREAK, to send a break signal. Letters in sends may be prefixed by `)SH /Courier SF (~)SH /Times-Roman SF (' to send special characters, including:)SH /Courier SF 8120 39173 MT (~b)SH /Times-Roman SF 10120 XM (backspace)SH /Courier SF 8120 40278 MT (~s)SH /Times-Roman SF 10120 XM (space)SH /Courier SF 8120 41383 MT (~q)SH /Times-Roman SF 10120 XM (`)SH /Courier SF (?)SH /Times-Roman SF ('\050trapped by Kermit's command interpreter\051)SH /Courier SF 8120 42488 MT (~n)SH /Times-Roman SF 10120 XM (linefeed)SH /Courier SF 8120 43593 MT (~r)SH /Times-Roman SF 10120 XM (carriage return)SH /Courier SF 8120 44698 MT (~t)SH /Times-Roman SF 10120 XM (tab)SH /Courier SF 8120 45803 MT (~')SH /Times-Roman SF 10120 XM (single quote)SH /Courier SF 8120 46908 MT (~~)SH /Times-Roman SF 10120 XM (tilde)SH /Courier SF 8120 48013 MT (~")SH /Times-Roman SF 10120 XM (double quote)SH /Courier SF 8120 49118 MT (~x)SH /Times-Roman SF 10120 XM (XON \050Control-Q\051)SH /Courier SF 8120 50223 MT (~c)SH /Times-Roman SF 10120 XM (don't append a carriage return)SH /Courier SF 8120 51328 MT (~)SH /Times-Italic SF (o[o[o]])SH /Times-Roman SF 12276 XM (an octal character)SH /Courier SF 8120 52433 MT (~d)SH /Times-Roman SF 10120 XM (delay approx 1/3 second during send)SH /Courier SF 8120 53538 MT (~w)SH /Times-Italic SF ([d[d]])SH /Times-Roman SF 12376 XM (wait specified interval during expect, then time out)SH 6120 55329 MT (As with some UUCP systems, sent strings are followed by)SH /Courier SF 29758 XM (~r)SH /Times-Roman SF 31208 XM (unless they have a)SH /Courier SF 38762 XM (~c)SH /Times-Roman SF (.)SH 6120 57721 MT (Only the last 7 characters in each expect are matched. A null)32 W /Times-Italic SF 31307 XM (expect)SH /Times-Roman SF (, e.g.)32 W /Courier SF 36118 XM (~0)SH /Times-Roman SF 37599 XM (or two adjacent dashes, causes a short)31 W 6120 58917 MT (delay before proceeding to the next send sequence. A null expect always succeeds.)SH 6120 61309 MT (As with UUCP, if the expect string does not arrive, the script attempt fails. If) 30 W( you expect that a sequence might not)31 W 6120 62505 MT (arrive, as with UUCP, conditional sequences may be expressed in the form:)SH /Times-Italic SF 8520 64220 MT (-send-expect[-send-expect[...]])SH /Times-Roman SF 6120 65937 MT (where dashed sequences are followed as long as previous) 41 W( expects fail. Timeouts for expects can be specified using)40 W /Courier SF 6120 67133 MT (~w)SH /Times-Roman SF (;)SH /Courier SF 7848 XM (~w)SH /Times-Roman SF 9298 XM (with no arguments waits 15 seconds.)SH /Times-Italic SF 6120 69525 MT (Expect/send)SH /Times-Roman SF 11398 XM (transactions can be easily be debugged by logging) 196 W( transactions. This records all exchanges, both)197 W 6120 70721 MT (expected and actual. The script execution will also be logged in the session log, if that is activated.)SH ES %%Page: 21 22 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.4. Interactive Operation)SH 10 /Times-Italic AF 51775 XM (Page 21)SH 46800 50 8280 5709 UL /Times-Roman SF 8280 7886 MT (Note that `)1 W /Courier SF (\134)SH /Times-Roman SF (' characters in login scripts, as in any other C-Kermit interactive) 1 W( commands, must be doubled up. A line)SH 8280 9082 MT (may be ended with a single `)SH /Courier SF (\134)SH /Times-Roman SF (' for continuation.)SH 8280 11474 MT (Example one:)SH 8280 13866 MT (Using a modem, dial a UNIX host site. Expect "login" \050...gin\051, and if it doesn't come,) 13 W( simply send a null string with)14 W 8280 15062 MT (a)SH /Courier SF 9035 XM (~r)SH /Times-Roman SF (. \050Some) 372 W( Unixes require either an EOT or a BREAK instead of the null sequence, depending on the particular)61 W 8280 16258 MT (site's "logger" program.\051 After providing user id and password, respond "x" to a question-mark prompt, expect the)43 W 8280 17454 MT (Bourne shell ")101 W /Courier SF ($)SH /Times-Roman SF (" prompt) 101 W( \050and send return if it doesn't arrive\051. Then cd to directory kermit, and run the program)100 W 8280 18650 MT (called "wermit", entering the interactive connect state after wermit is loaded.)SH /Courier SF 10680 20305 MT (set modem ventel)SH 10680 21336 MT (set line /dev/tty77)SH 10680 22367 MT (set baud 1200)SH 10680 23398 MT (dial 9&5551212)SH 10680 24429 MT (script gin:--gin:--gin: smith ssword: mysecret ~q x $--$ \134)SH 11280 25460 MT (cd~skermit $ wermit)SH 10680 26491 MT (connect)SH /Times-Roman SF 8280 28208 MT (Note that 'set line' is issued)SH /Times-Italic SF 19668 XM (after)SH /Times-Roman SF 21807 XM ('set modem', but)SH /Times-Italic SF 28862 XM (before)SH /Times-Roman SF 31667 XM ('set baud' or other line-related parameters.)SH 8280 30600 MT (Example two:)SH 8280 32992 MT (Using a modem, dial the Telenet network. This network expects) 132 W( three returns with slight delays between them.)133 W 8280 34188 MT (These are sent following) 120 W( null expects. The single return is here sent as a null string, with a return appended by)119 W 8280 35384 MT (default. Four) 540 W( returns are sent to) 145 W( be safe before looking for the prompt. Then the Telenet id and password are)146 W 8280 36580 MT (entered. Then) 322 W( Telenet is instructed to connect to a host site) 36 W( \050c 12345\051. The host has a data switch that asks "which)35 W 8280 37776 MT (system"; the) 39 W( script responds "myhost" \050if the "which system" prompt doesn't appear, the Telenet connect command)40 W 8280 38972 MT (is reissued\051. The script waits for an ``)178 W /Courier SF (@)SH /Times-Roman SF ('' prompt from the host, then sends the user ID \050"joe"\051 and) 178 W( password)177 W 8280 40168 MT (\050"secret"\051, looks for another ``)160 W /Courier SF (@)SH /Times-Roman SF ('' prompt, runs Kermit, and in response to the) 160 W( Kermit's prompt \050which ends in)161 W 8280 41364 MT (``)SH /Courier SF (>)SH /Times-Roman SF (''\051, gives the commands "set parity even" and) 56 W( "server". Files are then exchanged. The commands are in a take)55 W 8280 42560 MT (file; note the continuation of the 'script' command onto several lines using the `)SH /Courier SF (\134)SH /Times-Roman SF (' terminator.)SH /Courier SF 10680 44215 MT (set modem hayes)SH 10680 45246 MT (set line /dev/acu)SH 10680 46277 MT (set speed 1200)SH 10680 47308 MT (set parity mark)SH 10680 48339 MT (dial 9,5551212)SH 10680 49370 MT (script ~0 ~0 ~0 ~0 ~0 ~0 ~0 ~0 @--@--@ id~saa001122 = 002211 @ \134)SH 13080 50401 MT (c~s12345 ystem-c~s12345-ystem myhost @ joe~ssecret @ kermit \134)SH 13080 51432 MT (> set~sparity~seven > server)SH 10680 52463 MT (send some.stuff)SH 10680 53494 MT (get some.otherstuff)SH 10680 54525 MT (bye)SH 10680 55556 MT (quit)SH /Times-Roman SF 8280 57273 MT (Since these commands may be) 149 W( executed totally in the background, they can also be scheduled. A typical shell)150 W 8280 58469 MT (script, which might be scheduled by cron, would be as follows \050csh used for this example\051:)SH /Courier SF 10680 60124 MT (#)SH 10680 61155 MT (#keep trying to dial and log onto remote host and exchange files)SH 10680 62186 MT (#wait 10 minutes before retrying if dial or script fail.)SH 10680 63217 MT (#)SH 10680 64248 MT (cd someplace)SH 10680 65279 MT (while \050 1 \051)SH 15480 66310 MT (kermit < /tonight.cmd >> nightly.log &)SH 15480 67341 MT (if \050 ! $status \051 break)SH 15480 68372 MT (sleep 600)SH 10680 69403 MT (end)SH /Times-Roman SF 8280 71795 MT (File)SH /Courier SF 10193 XM (tonight.cmd)SH /Times-Roman SF 17150 XM (might have two takes) 107 W( in it, for example, one to take a file with the set modem, set line, set)106 W ES %%Page: 22 23 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 22)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.4)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 6120 7886 MT (baud, dial, and script, and a second take of a) 69 W( file with send/get commands for the remote server. The last lines of)70 W /Courier SF 6120 9082 MT (tonight.cmd)SH /Times-Roman SF 12970 XM (should be a bye and a quit.)SH 13 /Times-Bold AF 23344 12441 MT (The 'help' Command:)SH 10 /Times-Roman AF 6120 14814 MT (Syntax:)SH /Courier SF 9776 XM (help)SH /Times-Italic SF 7920 15845 MT (or)SH /Courier SF (: help)SH /Times-Italic SF 13009 XM (keyword)SH 7920 16876 MT (or)SH /Courier SF (: help {set, remote})SH /Times-Italic SF 21409 XM (keyword)SH /Times-Roman SF 6120 18593 MT (Brief help messages or menus are always available at interactive command level) 70 W( by typing a question mark at any)69 W 6120 19789 MT (point. A) 274 W( slightly more verbose form of help is available) 12 W( through the 'help' command. The 'help' command with no)13 W 6120 20985 MT (arguments prints a brief summary of how to enter commands) 59 W( and how to get further help. 'help' may be followed)58 W 6120 22181 MT (by one of the top-level C-Kermit command keywords, such) 135 W( as 'send', to request information about a command.)136 W 6120 23377 MT (Commands such as 'set' and 'remote' have a further level of help. Thus you may type 'help', 'help) 13 W( set', or 'help set)12 W 6120 24573 MT (parity'; each will provide a successively more detailed level of help.)SH 13 /Times-Bold AF 20347 27932 MT (The 'exit' and 'quit' Commands:)SH 10 /Times-Roman AF 6120 30305 MT (These two commands are identical. Both of them do the following:)SH /Symbol SF 7910 32210 MT (\267)SH /Times-Roman SF 8620 XM (Attempt to insure that the terminal is returned to normal.)SH /Symbol SF 7910 33315 MT (\267)SH /Times-Roman SF 8620 XM (Relinquish access to any communication line assigned via 'set line'.)SH /Symbol SF 7910 34420 MT (\267)SH /Times-Roman SF 8620 XM (Relinquish any uucp and multiuser locks on the communications line.)SH /Symbol SF 7910 35525 MT (\267)SH /Times-Roman SF 8620 XM (Hang up the modem, if the communications line supports data terminal ready.)SH /Symbol SF 7910 36630 MT (\267)SH /Times-Roman SF 8620 XM (Close any open logs or other files.)SH 6120 39022 MT (After exit from C-Kermit, your default directory will be the) 140 W( same as when you started the program. The 'exit')141 W 6120 40218 MT (command is issued implicitly whenever C-Kermit halts normally, e.g. after a command line invocation,) 152 W( or after)151 W 6120 41414 MT (certain kinds of interruptions.)SH 14 /Times-Bold AF 6120 45016 MT (1.5. UUCP Lock Files)SH 10 /Times-Roman AF 6120 47134 MT (Unix has no standard way of obtaining exclusive access to an external communication line.) 13 W( When) 277 W( you issue the 'set)14 W 6120 48330 MT (line' command to Unix Kermit, Unix) 125 W( would normally grant you access to the line even if some other process is)124 W 6120 49526 MT (making use of it. The method adopted by most Unix systems to handle this situation is) 149 W( the "UUCP lock file".)150 W 6120 50722 MT (UUCP, the Unix-to-Unix Copy program, creates a file) 175 W( in its directory \050usually)174 W /Courier SF 39711 XM (/usr/spool/uucp)SH /Times-Roman SF (, on some)174 W 6120 51918 MT (systems)SH /Courier SF 9537 XM (/etc/locks)SH /Times-Roman SF (\051 with a name like)SH /Courier SF 23008 XM (LCK..)SH /Times-Italic SF (name)SH /Times-Roman SF (, where)SH /Times-Italic SF 31367 XM (name)SH /Times-Roman SF 33783 XM (is the device name, for instance)SH /Courier SF 46641 XM (tty07)SH /Times-Roman SF (.)SH 6120 54310 MT (Unix Kermit uses UUCP lock files in order to avoid conflicts with UUCP, tip,) 96 W( or other programs that follow this)97 W 6120 55506 MT (convention. Whenever) 280 W( you attempt to access an external line) 15 W( using the 'set line' command or `)14 W /Courier SF (-l)SH /Times-Roman SF (' on the command)14 W 6120 56702 MT (line, Kermit) 48 W( looks in the UUCP directory for a lock file corresponding to that device. For instance, if you 'set line)49 W 6120 57898 MT (/dev/ttyi6' then Kermit looks for the file)SH /Courier SF 8520 59553 MT (/usr/spool/uucp/LCK..ttyi6)SH /Times-Roman SF 6120 61270 MT (If it finds this file, it gives you an error message and a directory listing of the file so that) 12 W( you can see who is using it,)11 W 6120 62466 MT (e.g.)SH /Courier SF 8520 64121 MT (-r--r--r-- 1) 600 W( fdc) SH( 4) 4200 W( May 7 13:02 /usr/spool/uucp/LCK..ttyi6)SH /Times-Roman SF 6120 65838 MT (In this case, you would look up user fdc to find out how soon the line will become free.)SH 6120 68230 MT (This convention requires that the uucp directory be publicly readable and writable. If it is not, the) 114 W( program will)115 W 6120 69426 MT (issue an appropriate warning message, but will allow you to proceed at your own risk \050and the) 67 W( risk of anyone else)66 W 6120 70622 MT (who might also be using the same line\051.)SH ES %%Page: 23 24 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.5. UUCP Lock Files)SH 10 /Times-Italic AF 51775 XM (Page 23)SH 46800 50 8280 5709 UL /Times-Roman SF 8280 7886 MT (If no lock file is found, Unix Kermit) 52 W( will attempt create one, thus preventing anyone who subsequently tries to run)53 W 8280 9082 MT (Kermit, UUCP, tip, or similar programs on the same line from) 63 W( gaining access until you release the line. If Kermit)62 W 8280 10278 MT (could not create the lock file \050for instance because the uucp directory) 108 W( is write-protected\051, then you will receive a)109 W 8280 11474 MT (warning message but will be allowed to proceed at your -- and everyone else's -- risk. When) 110 W( Kermit terminates)109 W 8280 12670 MT (normally, your lock file is removed.)SH 8280 15062 MT (Even when the lock directory is writable and readable, the) 132 W( locking mechanism depends upon all users using the)133 W 8280 16258 MT (same name for the same) 222 W( device. If a device has more than one path associated with it, then a lock can be)221 W 8280 17454 MT (circumvented by using an alias.)SH 8280 19846 MT (When a lock-creating program) 68 W( abruptly terminates, e.g. because it crashes or is killed via shell command, the lock)69 W 8280 21042 MT (file remains in the uucp directory, spuriously indicating) 36 W( that the line is in use. If the lock file is owned by yourself,)35 W 8280 22238 MT (you may remove it. Otherwise, you'll have to get the owner or the system manager to remove it,) 47 W( or else wait for a)48 W 8280 23434 MT (system task to do so; uucp supports a function \050uuclean\051 which removes these files after a predetermined age -- uucp)9 W 8280 24630 MT (sites tend to run this function periodically via crontab.)SH 8280 27022 MT (Locking is not needed, or used, if communications occur over the user's login terminal line \050normally)SH /Courier SF 49219 XM (/dev/tty)SH /Times-Roman SF (\051.)SH 8280 29414 MT (It may be seen that line locking is fraught with peril.) 178 W( It) 608 W( is included in Unix Kermit only because other Unix)179 W 8280 30610 MT (communication programs rely on it. While it is naturally desirable to assure exclusive access) 110 W( to a line, it is also)109 W 8280 31806 MT (undesirable to refuse access to a vacant line only because of) 9 W( a spurious lock file, or because the uucp directory is not)10 W 8280 33002 MT (appropriately protected.)SH 14 /Times-Bold AF 8280 36604 MT (1.6. C-Kermit under Berkeley or System III/V Unix:)SH 10 /Times-Roman AF 8280 38722 MT (C-Kermit may be interrupted at command) 169 W( level or during file transfer by typing Control-C. The program will)168 W 8280 39918 MT (perform its normal exit function, restoring the terminal and releasing any) 137 W( lock. If a protocol transaction was in)138 W 8280 41114 MT (progress, an error packet will be sent to the opposite Kermit so that it can terminate cleanly.)SH 8280 43506 MT (C-Kermit may be invoked in the background \050")6 W /Courier SF (&)SH /Times-Roman SF (" on shell commmand line\051. If a background process is "killed", the)5 W 8280 44702 MT (user will have to manually) 27 W( remove any lock file and may need to restore the modem. This is because the kill signal)28 W 8280 45898 MT (\050)SH /Courier SF (kill\050)SH /Times-Italic SF (x)SH /Courier SF (,9\051)SH /Times-Roman SF (\051 cannot be trapped by Kermit.)SH 8280 48290 MT (During execution of a) 106 W( system command \050'directory', 'cwd', or `)105 W /Courier SF (!)SH /Times-Roman SF ('\051, C-Kermit can often be returned to command)105 W 8280 49486 MT (level by typing a single Control-C. \050With System III/V, the) 20 W( usual interrupt function \050often the DEL key\051 is replaced)21 W 8280 50682 MT (by Control-C.\051)SH 8280 53074 MT (Under Berkeley Unix only: C-Kermit may also be interrupted by)71 W /Courier SF 35153 XM (^Z)SH /Times-Roman SF 36674 XM (to put the process in the background. In this)70 W 8280 54270 MT (case the terminal is not restored. You will have to type Control-J followed by "reset" followed by another Control-J)17 W 8280 55466 MT (to get your terminal back to normal.)SH 8280 57858 MT (Control-C, Control-Z, and Control-)142 W /Courier SF (\134)SH /Times-Roman SF 23837 XM (lose their normal functions) 142 W( during terminal connection and also during file)141 W 8280 59054 MT (transfer when the controlling tty line is being used for packet i/o.)SH 8280 61446 MT (If you are running C-Kermit) 198 W( in "quiet mode" in the foreground, then interrupting the program with a console)199 W 8280 62642 MT (interrupt like Control-C will) 22 W( not restore the terminal to normal conversational operation. This is because the system)21 W 8280 63838 MT (call to enable console interrupt) 144 W( traps will cause the program to block if it's running in the background, and the)145 W 8280 65034 MT (primary reason for quiet mode is) 10 W( to allow the program to run in the background without blocking, so that you can do)9 W 8280 66230 MT (other work in the foreground.)SH 8280 68622 MT (If C-Kermit is run in the background \050"&" on shell commmand line\051, then the interrupt signal) 143 W( \050Control-C\051 \050and)144 W 8280 69818 MT (System III/V quit signal\051 are ignored. This prevents an interrupt signal intended for a foreground job) 207 W( \050say a)206 W 8280 71014 MT (compilation\051 from being trapped by a background Kermit session.)SH ES %%Page: 24 25 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 24)SH 12 /Times-Bold AF 32187 XM (Kermit User Guide: UNIX KERMIT 1.7)SH 46800 50 6120 6071 UL 14 SS 6120 8138 MT (1.7. C-Kermit on the DEC Pro-3xx with Pro/Venix Version 1)SH 10 /Times-Roman AF 6120 10256 MT (The DEC Professional 300 series are PDP-11/23 based personal computers. Venix Version) 253 W( 1 is a Unix v7)254 W 6120 11452 MT (derivative. It) 473 W( should not be confused with Venix Version 2, which is based on ATT System V; these comments)111 W 6120 12648 MT (apply to Venix Version 1 only. C-Kermit runs in local mode on the Pro-3)86 W /Times-Italic SF (xx)SH /Times-Roman SF 38129 XM (when invoked from the) 86 W( console; the)87 W 6120 13844 MT (default device is)2 W /Courier SF 12930 XM (/dev/com1.dout)SH /Times-Roman SF (. When) 254 W( connected to a remote system \050using C-Kermit's 'connect' command\051,)1 W 6120 15040 MT (Pro/Venix itself \050not Kermit\051 provides VT52 terminal emulation. Terminal operation) 157 W( at high speeds \050like 9600)158 W 6120 16236 MT (baud\051 requires xon/xoff flow control, which unfortunately interferes with applications such as the) 54 W( EMACS that use)53 W 6120 17432 MT (Control-Q and Control-S as commands.)SH 6120 19824 MT (When logging in to a Pro-3xx \050or any workstation\051 through the "back port", it may be necessary to give the)210 W 6120 21020 MT (command "set line /dev/tty" in order to get C-Kermit to function correctly in remote mode \050on a system) 44 W( in which it)43 W 6120 22216 MT (normally expects to be operating in local mode\051.)SH 14 /Times-Bold AF 6120 25818 MT (1.8. C-Kermit under VAX/VMS)SH 10 /Times-Roman AF 6120 27936 MT (C-Kermit can be built) 28 W( using VAX-11 C to run under VMS. Most of the descriptions in this manual hold true, but it)29 W 6120 29132 MT (should be noted that as of this writing the VMS support is not thoroughly) 64 W( tested, and no explicit support exists for)63 W 6120 30328 MT (the various types of VMS files and their attributes.)SH 6120 32720 MT (The C-Kermit init file for VMS is called)SH /Courier SF 22563 XM (KERMIT.INI)SH /Times-Roman SF (.)SH 14 /Times-Bold AF 6120 36322 MT (1.9. C-Kermit on the Macintosh and other Systems)SH 10 /Times-Roman AF 6120 38440 MT (The "protocol kernel" of C-Kermit is also used by Columbia's Macintosh Kermit. The user and system) 41 W( interface is)42 W 6120 39636 MT (entirely different, and is covered in a separate document.)SH 6120 42028 MT (There is also a Kermit for the Commodore Amiga) 175 W( based on C-Kermit, as well as versions for MS-DOS, Data)174 W 6120 43224 MT (General operating systems, etc.)SH 14 /Times-Bold AF 6120 46826 MT (1.10. C-Kermit Restrictions and Known Bugs)SH 10 /Times-Roman AF 8120 48944 MT (1.)SH 9120 XM (Editing characters: The program's interactive command interrupt, delete, and kill) 234 W( characters are)235 W 7482 50 9120 49144 UL 9120 50049 MT (Control-C, Delete \050or Backspace\051, and Control-U, respectively. There is) 78 W( currently no way to change)77 W 9120 51154 MT (them to suit your taste or match those used by your shell, in case those are different.)SH 8120 53364 MT (2.)SH 9120 XM (Flow control:) 102 W( C-Kermit) 455 W( attempts to use XON/XOFF flow control during protocol operations, but it)103 W 5241 50 9120 53564 UL 9120 54469 MT (also puts the communication line into "rawmode". On many systems, rawmode) 37 W( disables flow control,)36 W 9120 55574 MT (so even though you may have "set flow xon/xoff", no flow control will) 15 W( be done. This is highly system)16 W 9120 56679 MT (and Unix-version dependent.)SH 8120 58889 MT (3.)SH 9120 XM (High baud rates: There's no way to specify baud rates higher than 9600 baud.) 99 W( Most) 446 W( Unix systems)98 W 6530 50 9120 59089 UL 9120 59994 MT (don't supply symbols) 72 W( for them \050unless you use EXTA, EXTB\051, and even when they do, the program)73 W 9120 61099 MT (has no way of knowing whether a specific port's serial i/o controller supports those rates.)SH 8120 63309 MT (4.)SH 9120 XM (Modem controls: If a connection is made over a) 89 W( communication line \050rather than on the controlling)88 W 6672 50 9120 63509 UL 9120 64414 MT (terminal line\051, and that line has modem controls, \050e.g. data terminal ready) 244 W( and carrier detection)245 W 9120 65519 MT (implementation\051, returning to the shell level will disconnect the conversation. In that case, one should)24 W 9120 66624 MT (use interactive mode) 386 W( commands, and avoid use of piped shell-level operation \050also see 'set)387 W 9120 67729 MT (modem-dialer' and 'dial' commands.\051)SH 8120 69939 MT (5.)SH 9120 XM (Login Scripts: The present login scripts implementation follows the Unix conventions) 205 W( of uucp's)204 W 5622 50 9120 70139 UL 9120 71044 MT (")SH /Courier SF (L.sys)SH /Times-Roman SF (" file, rather than the normal Kermit "INPUT/OUTPUT" style.)SH ES %%Page: 25 26 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.10. C-Kermit Restrictions and Known Bugs)SH 10 /Times-Italic AF 51775 XM (Page 25)SH 46800 50 8280 5709 UL /Times-Roman SF 10280 7886 MT (6.)SH 11280 XM (Dial-out vs dial-in) 83 W( communications lines: C-Kermit requires a dial-out or dedicated line for the "set)84 W 16667 50 11280 8086 UL 11280 8991 MT (line" or "-l" options.) 52 W( Most) 352 W( systems have some lines dedicated to dial-in, which they enable "loggers")51 W 11280 10096 MT (on, and some lines available for dial-out. Recent releases of Unix \050ATT) 337 W( & Berkeley\051 have)338 W 11280 11201 MT (mechanisms for changing the directionality of a line.)SH 10280 13411 MT (7.)SH 11280 XM (Using C-Kermit on Local Area Networks: C-Kermit can successfully operate at speeds up to) 115 W( 9600)114 W 17155 50 11280 13611 UL 11280 14516 MT (baud over LANs, provided the network buffers are big enough to accommodate Kermit packets.)SH 11280 16726 MT (When computers are connected to LAN's) 376 W( through asynchronous terminal interfaces, then the)377 W 11280 17831 MT (connection should be) 3 W( configured to do XON/XOFF flow control between the network interface and the)2 W 11280 18936 MT (computer, rather than passing these) 45 W( signals through transparently. This can help prevent Kermit from)46 W 11280 20041 MT (overrunning the LAN's buffers if they) 4 W( are small \050or if the LAN is congested\051, and will can also prevent)3 W 11280 21146 MT (the LAN from overrunning a slow Kermit's buffers.)SH 11280 23356 MT (If the network hardware cannot accept 100 characters at a time, and flow control cannot be done)174 W 11280 24461 MT (between the network and the computer, then Kermit's) 67 W( "set send/receive packet-length" command can)66 W 11280 25566 MT (be used to shorten the packets.)SH 10280 27776 MT (8.)SH 11280 XM (Resetting terminal after abnormal termination) 41 W( or kill: When C-Kermit terminates abnormally \050say, for)42 W 21246 50 11280 27976 UL 11280 28881 MT (example, by a kill command issued) 71 W( by the operator\051 the user may need to reset the terminal state. If)70 W 11280 29986 MT (commands do not seem to be accepted at the shell) 129 W( prompt, try Control-J "stty sane" Control-J \050use)130 W 11280 31091 MT ("reset" on Berkeley Unix\051. That should take the terminal out of "raw mode" if it was stuck there.)SH 10280 33301 MT (9.)SH 11280 XM (Remote host commands may time-out on lengthy activity: Using "remote host") 261 W( to instruct the)260 W 24799 50 11280 33501 UL 11280 34406 MT (C-Kermit server to invoke Unix functions \050like "make"\051 that might) 37 W( take a long time to produce output)38 W 11280 35511 MT (can cause timeout conditions.)SH 9780 37721 MT (10.)SH 11280 XM (XOFF deadlocks:) 27 W( When) 303 W( connecting back to C-Kermit after a transaction, or after finishing the server,)26 W 6832 50 11280 37921 UL 11280 38826 MT (it may be necessary to type a Control-Q to clear up an) 7 W( XOFF deadlock. There's not much the program)8 W 11280 39931 MT (can do about this...)SH 14 /Times-Bold AF 8280 43533 MT (1.11. How to Build C-Kermit for a Unix System)SH 10 /Times-Roman AF 8280 45651 MT (The C-Kermit files, as distributed from Columbia, all begin with the prefix "ck". You should make a directory for)55 W 8280 46847 MT (these files and then cd to it. A makefile is provided to build C-Kermit for various Unix systems \050there) 41 W( are separate)42 W 8280 48043 MT (makefiles for VMS and the Macintosh\051. As distributed, the makefile has the name) 78 W( ")77 W /Courier SF (ckuker.mak)SH /Times-Roman SF (". You) 404 W( should)77 W 8280 49239 MT (rename it to ")37 W /Courier SF (makefile)SH /Times-Roman SF (" and then type) 37 W( "make xxx", where xxx is the symbol for your system, for instance "make)38 W 8280 50435 MT (bsd" to make) 79 W( C-Kermit for 4.x BSD Unix. The result will be a program called "wermit". You should test this to)78 W 8280 51631 MT (make sure it works; if it does, then you can rename it to "kermit" and) 27 W( install it for general use. See the makefile for)28 W 8280 52827 MT (a list of the systems supported and the corresponding "make" arguments.)SH 14 /Times-Bold AF 8280 56429 MT (1.12. Adapting C-Kermit to Other Systems)SH 10 /Times-Roman AF 8280 58547 MT (C-Kermit is designed for portability. The level of portability is) 23 W( indicated in parentheses after the module name: "C")22 W 8280 59743 MT (means any system that has a C compiler that) 113 W( conforms to the description in "The C Programming Language" by)114 W 8280 60939 MT (Kernighan &) 107 W( Ritchie \050Prentice-Hall, 1978\051. "Cf" is like "C", but also requires "standard" features like printf and)106 W 8280 62135 MT (fprintf, argument passing via argv/argc, and so on,) 39 W( as described in Kernighan & Ritchie. "Unix" means the module)40 W 8280 63331 MT (should be useful under any Unix implementation; it requires features such as) 19 W( fork\050\051 and pipes. Anything else means)18 W 8280 64527 MT (that the module is particular to the indicated system. C-Kermit file names are of the form:)SH /Courier SF 8280 66919 MT (ck<)SH /Times-Italic SF (system)SH /Courier SF (><)SH /Times-Italic SF (what)SH /Courier SF (>.<)SH /Times-Italic SF (type)SH /Courier SF (>)SH /Times-Roman SF 8280 69311 MT (where the part before the dot is no more than 6 characters long, the part after) 12 W( the dot no more than 3 characters long,)13 W 8280 70507 MT (and:)SH ES %%Page: 26 27 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 26)SH 12 /Times-Bold AF 31587 XM (Kermit User Guide: UNIX KERMIT 1.12)SH 46800 50 6120 5709 UL 10 /Courier AF 6120 7886 MT (<)SH /Times-Italic SF (type)SH /Courier SF (>)SH /Times-Roman SF 9236 XM (is the file type:)SH 7120 9677 MT (c:)SH 10120 XM (C language source)SH 7120 10782 MT (h:)SH 10120 XM (Header file for C language source)SH 7120 11887 MT (w:)SH 10120 XM (Wart preprocessor source, converted by Wart \050or Lex\051 to a C program)SH 7120 12992 MT (nr:)SH 10120 XM (Nroff/Troff text formatter source)SH 7120 14097 MT (mss:)SH 10120 XM (Scribe text formatter source)SH 7120 15202 MT (doc:)SH 10120 XM (Documentation)SH 7120 16307 MT (hlp:)SH 10120 XM (Help text)SH 7120 17412 MT (bld:)SH 10120 XM (Instructions for building the program)SH 7120 18517 MT (bwr:)SH 10120 XM (A "beware" file - list of known bugs)SH 7120 19622 MT (upd:)SH 10120 XM (Program update log)SH 7120 20727 MT (mak:)SH 10120 XM (Makefile)SH /Courier SF 6120 22518 MT (<)SH /Times-Italic SF (system)SH /Courier SF (>)SH /Times-Roman SF 10236 XM (is a single character to tell what system the file applies to:)SH 7120 24309 MT (a:)SH 10120 XM (Descriptive material, documentation)SH 7120 25414 MT (c:)SH 10120 XM (All systems with C compilers)SH 7120 26519 MT (d:)SH 10120 XM (Data General)SH 7120 27624 MT (h:)SH 10120 XM (Harris computers \050reserved\051)SH 7120 28729 MT (i:)SH 10120 XM (Commodore Amiga \050Intuition\051)SH 7120 29834 MT (m:)SH 10120 XM (Macintosh)SH 7120 30939 MT (p:)SH 10120 XM (IBM PC, PC-DOS \050reserved\051)SH 7120 32044 MT (u:)SH 10120 XM (Unix)SH 7120 33149 MT (v:)SH 10120 XM (VAX/VMS)SH 7120 34254 MT (w:)SH 10120 XM (Wart)SH /Courier SF 6120 36045 MT (<)SH /Times-Italic SF (what)SH /Courier SF (>)SH /Times-Roman SF 9515 XM (is mnemonic \050up to 3 characters\051 for what's in the file:)SH 7120 37836 MT (aaa:)SH 10120 XM (A "read-me" file, like this one)SH 7120 38941 MT (cmd:)SH 10120 XM (Command parsing)SH 7120 40046 MT (con:)SH 10120 XM (Connect command)SH 7120 41151 MT (deb:)SH 10120 XM (Debug/Transaction Log formats, Typedefs)SH 7120 42256 MT (dia:)SH 10120 XM (Modem/Dialer control)SH 7120 43361 MT (fio:)SH 10120 XM (System-depdendent File I/O)SH 7120 44466 MT (fns:)SH 10120 XM (Protocol support functions)SH 7120 45571 MT (fn2:)SH 10120 XM (More protocol support functions)SH 7120 46676 MT (ker:)SH 10120 XM (General C-Kermit definitions, information, documentation)SH 7120 47781 MT (mai:)SH 10120 XM (Main program)SH 7120 48886 MT (pro:)SH 10120 XM (Protocol)SH 7120 49991 MT (scr:)SH 10120 XM (Script command)SH 7120 51096 MT (tio:)SH 10120 XM (System-dependent terminal i/o & control and interrupt handing)SH 7120 52201 MT (usr:)SH 10120 XM (User interface)SH 7120 53306 MT (us2:)SH 10120 XM (More user interface)SH 7120 54411 MT (us3:)SH 10120 XM (Still more user interface)SH 6120 56202 MT (Examples:)SH /Courier SF 6120 57993 MT (ckufio.c)SH /Times-Roman SF 14120 XM (File i/o for Unix)SH /Courier SF 6120 59098 MT (ckmtio.c)SH /Times-Roman SF 14120 XM (Terminal i/o for Macintosh)SH /Courier SF 6120 60203 MT (ckuker.mss)SH /Times-Roman SF 14120 XM (Scribe source for for Kermit User Guide chapter)SH /Courier SF 6120 61308 MT (ckuker.nr)SH /Times-Roman SF 14120 XM (Nroff source file for Unix C-Kermit man page)SH 6120 63099 MT (The following material discusses each of the C-Kermit modules briefly.)SH /Courier SF 6120 64890 MT (ckcmai.c, ckcker.h, ckcdeb.h \050Cf\051)SH /Times-Roman SF (:)SH 8120 65995 MT (This is the main program. It contains) 33 W( declarations for global variables and a small amount of code to initialize)34 W 8120 67100 MT (some variables and invoke) 249 W( the command parser. In its distributed form, it assumes that command line)248 W 8120 68205 MT (arguments are passed to it via argc and argv. Since this portion of code is only several lines long,) 39 W( it should be)40 W 8120 69310 MT (easy to) 66 W( replace for systems that have different styles of user interaction. The header files define symbols and)65 W 8120 70415 MT (macros used by the various modules of C-Kermit.)15 W /Courier SF 28697 XM (ckcdeb.h)SH /Times-Roman SF 33762 XM (is the only header file that is included by all the)16 W 8120 71520 MT (C-Kermit modules, so it) 201 W( contains not only the debug format definitions, but also any compiler-dependent)200 W ES %%Page: 27 28 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (1.12. Adapting C-Kermit to Other Systems)SH 10 /Times-Italic AF 51775 XM (Page 27)SH 46800 50 8280 5709 UL /Times-Roman SF 10280 7886 MT (typedefs.)SH /Courier SF 8280 9463 MT (ckwart.c \050Cf\051, ckcpro.w \050C\051)SH /Times-Roman SF (:)SH 10280 10568 MT (The ckcpro module embodies the Kermit protocol state) 50 W( table and the code to accomplish state switching. It is)49 W 10280 11673 MT (written in "wart", a language which may be) 68 W( regarded as a subset of the Unix "lex" lexical analyzer generator.)69 W 10280 12778 MT (Wart implements enough of lex to allow the ckprot) 70 W( module to function. Lex itself was not used because it is)69 W 10280 13883 MT (proprietary. The) 736 W( protocol module)243 W /Courier SF 25326 XM (ckcpro.w)SH /Times-Roman SF 30619 XM (is read by wart, and a system-independent C program is)243 W 10280 14988 MT (produced. The) 250 W( syntax of a Wart program is illustrated by)SH /Courier SF 33498 XM (ckcpro.w)SH /Times-Roman SF (, and is described in)SH /Courier SF 46519 XM (ckwart.doc)SH /Times-Roman SF (.)SH /Courier SF 8280 16565 MT (ckcfns.c \050C\051)SH /Times-Roman SF (:)SH 10280 17670 MT (The module contains all the Kermit protocol) 55 W( support functions -- packet formation, encoding, decoding, block)56 W 10280 18775 MT (check calculation, filename and data conversion, protocol parameter) 180 W( negotiation, and high-level interaction)179 W 10280 19880 MT (with the communication line and) 48 W( file system. To accommodate small systems, this module has been split into)49 W 10280 20985 MT (two --)SH /Courier SF 12946 XM (ckcfns.c)SH /Times-Roman SF 17996 XM (and)SH /Courier SF 19690 XM (ckcfn2.c)SH /Times-Roman SF (.)SH /Courier SF 8280 22562 MT (ckutio.c)SH /Times-Roman SF (:)SH 10280 23667 MT (This module contains the) 5 W( system-dependent primitives for communication line i/o, timers, and interrupts for the)6 W 10280 24772 MT (various versions of Unix. Certain important variables are defined in this module, which determine whether)126 W 10280 25877 MT (C-Kermit is by default remote or local, what the default communication device is, and) 7 W( so forth. The tio module)8 W 10280 26982 MT (maintains its own private database of file descriptors and modes for) 79 W( the console terminal and the file transfer)78 W 10280 28087 MT (communication line so that other modules \050like ckcfns or the terminal connect module\051 need not be concerned)47 W 10280 29192 MT (with them. The variations among Unix implementations with respect to) 228 W( terminal control and timers are)227 W 10280 30297 MT (accommodated via conditional compilation.)SH /Courier SF 8280 31874 MT (ckufio.c)SH /Times-Roman SF (:)SH 10280 32979 MT (This module contains system-dependent primitives) 267 W( for file i/o, wildcard \050meta character\051 expansion, file)266 W 10280 34084 MT (existence and access checking, and system command execution for the) 57 W( various versions of Unix. It maintains)58 W 10280 35189 MT (an internal database of i/o "channels" \050file pointers in this case\051 for the) 57 W( files C-Kermit cares about -- the input)56 W 10280 36294 MT (file \050the) 70 W( file which is being sent\051, the output file \050the file being received\051, the various logs, the screen, and so)71 W 10280 37399 MT (forth. This) 588 W( module varies little among Unix) 169 W( implementations except for the wildcard expansion code; the)168 W 10280 38504 MT (directory structure of 4.2bsd Unix is different from that of other Unix systems. Again, variation among Unix)67 W 10280 39609 MT (systems is selected using conditional compilation.)SH /Courier SF 8280 41186 MT (ckuusr.h, ckuusr.c, ckuus2.c, ckuus3.c)SH /Times-Roman SF 31330 XM (\050Unix\051:)SH 10280 42291 MT (This is the "user interface" for) 123 W( C-Kermit. It includes the command parser, the screen output functions, and)124 W 10280 43396 MT (console input functions. The command parser comes in) 188 W( two pieces -- the traditional Unix command line)187 W 10280 44501 MT (decoder \050which is quite small and compact\051, and the interactive keyword parser \050which is rather large\051. This)82 W 10280 45606 MT (module is fully replacable; its interface to the) 5 W( other modules is very simple, and is explained at the beginning of)4 W 10280 46711 MT (the source file. The ckuusr module) 60 W( also includes code to execute any commands directly which don't require)61 W 10280 47816 MT (the Kermit protocol) 19 W( -- local file management, etc. The module is rated "Unix" because it makes occasional use)18 W 10280 48921 MT (of the)SH /Courier SF 12835 XM (system\050\051)SH /Times-Roman SF 17885 XM (function.)SH 10280 50498 MT (Note that while)SH /Courier SF 16696 XM (ckuusr)SH /Times-Roman SF 20546 XM (is logically one module, it has been split) SH( up into three C source files, plus a header file)1 W 10280 51603 MT (for the symbols they share in common. This is to accommodate small systems that cannot handle) 20 W( big modules.)19 W /Courier SF 10280 52708 MT (ckuusr.c)SH /Times-Roman SF 15621 XM (has the command line and top-level interactive) 291 W( command parser;)292 W /Courier SF 44377 XM (ckuus2.c)SH /Times-Roman SF 49719 XM (has the help)292 W 10280 53813 MT (command and strings;)275 W /Courier SF 20188 XM (ckuus3)SH /Times-Roman SF 24313 XM (has the set and remote commands along with) 275 W( the logging, screen, and)274 W 10280 54918 MT ("interrupt" functions.)SH /Courier SF 8280 56495 MT (ckucmd.c, ckucmd.h)SH /Times-Roman SF 19330 XM (\050Cf\051:)SH 10280 57600 MT (This is an interactive command parsing package developed for C-Kermit. It is written portably enough) 77 W( to be)76 W 10280 58705 MT (usable on any system that) 24 W( has a C compiler that supports functions like printf. The file name parsing functions)25 W 10280 59810 MT (depend upon primitives defined in the fio module; if these primitives cannot be supplied for a certain) 67 W( system,)66 W 10280 60915 MT (then the filename parsing functions can be deleted,) 78 W( and the package will still be useful for parsing keywords,)79 W 10280 62020 MT (numbers, arbitrary text strings, and) 242 W( so forth. The style of interaction is the same as that found on the)241 W 10280 63125 MT (DECSYSTEM-20.)SH /Courier SF 8280 64702 MT (ckucon.c)SH /Times-Roman SF 13330 XM (\050Unix\051:)SH 10280 65807 MT (This is the connect module.) 267 W( As) 782 W( supplied, it should operate in any Unix environment, or any C-based)266 W 10280 66912 MT (environment that provides) 34 W( the fork\050\051 function. The module requires access to global variables that specify line)35 W 10280 68017 MT (speed, parity, duplex, flow control,) 91 W( etc, and invokes functions from the tio module to accomplish the desired)90 W 10280 69122 MT (settings and input/output, and functions from the fio module to perform session logging.) 281 W( No) 814 W( terminal)282 W 10280 70227 MT (emulation is performed, but since standard i/o is used for the console,) 113 W( this may be piped through a terminal)112 W 10280 71332 MT (emulation filter. The ckucon function may be entirely replaced, so long as the global settings are honored by) SH( its)1 W ES %%Page: 28 29 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 28)SH 12 /Times-Bold AF 31587 XM (Kermit User Guide: UNIX KERMIT 1.12)SH 46800 50 6120 5709 UL 10 /Times-Roman AF 8120 7886 MT (replacement. PC) 474 W( implementations of) 112 W( C-Kermit may require the ck?con module to do screen control, escape)111 W 8120 8991 MT (sequence interpretation, etc, and may also wish to write special code to get the best possible performance.)SH /Courier SF 6120 10568 MT (ckudia.c)SH /Times-Roman SF 11170 XM (\050Unix\051:)SH 8120 11673 MT (This is the) 211 W( dialer module. As supplied, it handles Hayes, Ventel, Penril, Racal-Vadic, and several other)210 W 8120 12778 MT (modems.)SH /Courier SF 6120 14355 MT (ckuscr.c)SH /Times-Roman SF 11170 XM (\050Unix\051:)SH 8120 15460 MT (This is the login script module. As supplied, it handles uucp-style scripts.)SH 6120 17251 MT (Moving C-Kermit to a new system entails:)SH 8120 19042 MT (1.)SH 9120 XM (Creating a new)16 W /Courier SF 15472 XM (ck?tio)SH /Times-Roman SF 19338 XM (module in C, assembler, or whatever) 16 W( language is most appropriate for system)15 W 9120 20147 MT (programming on the new system. If the system is Unix-like, then support may be) 101 W( added within the)102 W /Courier SF 9120 21252 MT (ckutio.c)SH /Times-Roman SF 14170 XM (module itself using conditional compilation.)SH 8120 23462 MT (2.)SH 9120 XM (Creating a new)SH /Courier SF 15424 XM (ck?fio)SH /Times-Roman SF 19274 XM (module, as above.)SH 8120 25672 MT (3.)SH 9120 XM (If the system is not Unix-like, then a new)120 W /Courier SF 26976 XM (ckuusr)SH /Times-Roman SF 30945 XM (module may be required, as well as a different)119 W 9120 26777 MT (invocation of it from)SH /Courier SF 17675 XM (ckcmai)SH /Times-Roman SF (.)SH 8120 28987 MT (4.)SH 9120 XM (If the) 171 W( distributed connect module doesn't work or performs poorly, then it may be replaced. For)172 W 9120 30092 MT (instance, interrupt-driven i/o may be required, especially if the system doesn't have forks.)SH 6120 31883 MT (Those who favor a different style of user/program interaction from that) 119 W( provided in)118 W /Courier SF 41185 XM (ckuusr.c)SH /Times-Roman SF 46353 XM (may replace the)118 W 6120 33079 MT (entire module, for instance with one that) 312 W( provides a mouse/window/icon environment, a menu/function-key)313 W 6120 34275 MT (environment, etc.)SH 6120 36667 MT (A few guidelines should be followed to maintain portability:)SH /Symbol SF 7910 38572 MT (\267)SH /Times-Roman SF 8620 XM (Keep variable and function names to 6 characters) 91 W( or less. Don't use identifiers that are distinguished)90 W 8620 39677 MT (from one another only by alphabetic case.)SH /Symbol SF 7910 41666 MT (\267)SH /Times-Roman SF 8620 XM (Keep modules small. For instance, on a PDP-11 it is necessary to keep the code) 165 W( segment of each)166 W 8620 42771 MT (module below 8K) 63 W( in order to allow the segment mapping to occur which is necessary to run programs)62 W 8620 43876 MT (larger than 64K on a non-I-and-D-space machine.)SH /Symbol SF 7910 45865 MT (\267)SH /Times-Roman SF 8620 XM (Keep strings short; many compilers have restrictive maximum lengths; 128 is the smallest) 115 W( maximum)116 W 8620 46970 MT (string constant length we've encountered so far.)SH /Symbol SF 7910 48959 MT (\267)SH /Times-Roman SF 8620 XM (Keep \050f,s\051printf formats short. If these exceed some compiler dependent maximum \050say,) 44 W( 128\051 memory)43 W 8620 50064 MT (will be overwritten and the program will probably core dump.)SH /Symbol SF 7910 52053 MT (\267)SH /Times-Roman SF 8620 XM (Do not introduce system dependencies into)SH /Courier SF 26118 XM (ckcpro.w)SH /Times-Roman SF 31168 XM (or)SH /Courier SF 32251 XM (ckcfn*.c)SH /Times-Roman SF (.)SH /Symbol SF 7910 54042 MT (\267)SH /Times-Roman SF 8620 XM (If a variable is a character, declare as CHAR, not int, to prevent the) 111 W( various sign extension and byte)112 W 8620 55147 MT (swapping foulups that occur when characters are placed in integer variables.)SH /Symbol SF 7910 57136 MT (\267)SH /Times-Roman SF 8620 XM (Remember that different systems may use different length words for different things. Don't assume an)39 W 8620 58241 MT (integer can be used as a pointer, etc.)SH /Symbol SF 7910 60230 MT (\267)SH /Times-Roman SF 8620 XM (Don't declare static functions; these can wreak havoc with systems that do segment mapping.)SH /Symbol SF 7910 62219 MT (\267)SH /Times-Roman SF 8620 XM (In conditional compilations expressions, use)261 W /Courier SF 27924 XM (#ifdef)SH /Times-Roman SF 32035 XM (and)SH /Courier SF 33990 XM (#ifndef)SH /Times-Roman SF 38701 XM (and not)261 W /Courier SF 42445 XM (#if)SH /Times-Roman SF (, which is not)262 W 8620 63324 MT (supported by some compilers. Also, don't use any operators in these expressions; many compilers) 37 W( will)36 W 8620 64429 MT (fail to understand expressions) 17 W( like)18 W /Courier SF 22622 XM (#ifdef FOO | BAR)18 W /Times-Roman SF (. Also,) 286 W( don't put trailing tokens on)18 W /Courier SF 46698 XM (#else)SH /Times-Roman SF ('s)SH 8620 65534 MT (or)SH /Courier SF 9703 XM (#endif)SH /Times-Roman SF ('s \050use)SH /Courier SF 16191 XM (/*)SH /Times-Roman SF 17641 XM (comments)SH /Courier SF 22002 XM (*/)SH /Times-Roman SF (\051.)SH /Symbol SF 7910 67523 MT (\267)SH /Times-Roman SF 8620 XM (Don't define multiline macros.)SH 6120 69314 MT (In general, remember that this program will have to be compilable by old compilers and runnable on small systems.)SH ES %%Page: 29 30 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (C-Kermit)SH 10 /Times-Italic AF 51775 XM (Page 29)SH 46800 50 8280 6252 UL 16 /Times-Bold AF 8280 8272 MT (Index)SH 8 /Times-Roman AF 12280 10429 MT (Background 8,) 400 W( 11)SH 12280 12277 MT (C-Kermit 1)400 W 12280 14125 MT (Dialout Modems) SH( 18)400 W 12280 15973 MT (Emergency Exit) SH( 3)400 W 12280 17821 MT (File Warning) SH( 3)400 W 12280 19669 MT (Hayes Modem) SH( 20)400 W 12280 21517 MT (IBM 17)400 W 12280 23365 MT (Modems 18)400 W 12280 25213 MT (TELENET 21)400 W 12280 27061 MT (Unix Kermit) SH( 1)400 W 12280 28909 MT (Warning 3)400 W ES %%Page: 30 31 BS 0 SI 10 /Times-Italic AF 6120 4404 MT (Page 30)SH 12 /Times-Bold AF 43052 XM (Kermit User Guide)SH 46800 50 6120 6252 UL ES %%Page: i 32 BS 0 SI 12 /Times-Bold AF 8280 4404 MT (C-Kermit)SH 10 /Times-Italic AF 52497 XM (Page i)SH 46800 50 8280 5709 UL 16 /Times-Bold AF 25591 8272 MT (Table of Contents)SH 12 SS 8280 10684 MT (1. UNIX KERMIT)SH 54480 XM (1)SH 10 SS 9780 12074 MT (1.1. The Unix File System)SH 54580 XM (2)SH 9780 13154 MT (1.2. File Transfer)SH 54580 XM (2)SH 9780 14234 MT (1.3. Command Line Operation)SH 54580 XM (3)SH 9780 15314 MT (1.4. Interactive Operation)SH 54580 XM (7)SH 9780 16394 MT (1.5. UUCP Lock Files)SH 54080 XM (22)SH 9780 17474 MT (1.6. C-Kermit under Berkeley or System III/V Unix:)SH 54080 XM (23)SH 9780 18554 MT (1.7. C-Kermit on the DEC Pro-3xx with Pro/Venix Version 1)SH 54080 XM (24)SH 9780 19634 MT (1.8. C-Kermit under VAX/VMS)SH 54080 XM (24)SH 9780 20714 MT (1.9. C-Kermit on the Macintosh and other Systems)SH 54080 XM (24)SH 9780 21794 MT (1.10. C-Kermit Restrictions and Known Bugs)SH 54080 XM (24)SH 9780 22874 MT (1.11. How to Build C-Kermit for a Unix System)SH 54080 XM (25)SH 9780 23954 MT (1.12. Adapting C-Kermit to Other Systems)SH 54080 XM (25)SH 12 SS 8280 25478 MT (Index)SH 53880 XM (29)SH ES %%Trailer %%Pages: 32 %%DocumentFonts: Times-Roman Times-Bold Times-Italic Courier Symbol