home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ibmtsonih / tsnkerdoc.txt < prev    next >
Text File  |  2020-01-01  |  412KB  |  8,349 lines

  1. 1
  2. -
  3. -
  4. -
  5. -
  6. -
  7. 0                          Kermit File Transfer Package
  8. -
  9.                                    August 1986
  10. -
  11. -
  12. -
  13. -
  14. -
  15. -
  16. -                            Copyright (C) 1981,1986
  17.              Trustees of Columbia University in the City of New York
  18. 0      Permission is granted to any individual or institution to use, copy,
  19.      or redistribute this document so long as it is not sold for profit, and
  20.                    provided this copyright notice is retained.
  21. 0      This manual, which is based on the Columbia University Kermit User's
  22.      Guide, contains modifications made by the National Institutes of Health.
  23. -
  24. -                                Computer Center
  25.                     Division of Computer Research & Technology
  26.                           National Institutes of Health
  27.                             Bethesda, Maryland  20892
  28. 1
  29. 1                                                                               i
  30. -
  31.                                 Table of Contents
  32. 0Statement of Kermit Software Support ..................................   1
  33. 0Preface ...............................................................   4
  34. 0How to Use This Manual ................................................   7
  35. 01.  Introduction ......................................................   9
  36. 0    1.1.  Why Kermit? .................................................  10
  37.      1.2.  How Kermit Works ............................................  11
  38. 02.  How to Use Kermit .................................................  13
  39. 0    2.1.  Transferring a File .........................................  15
  40.      2.2.  Basic Kermit Commands .......................................  16
  41.      2.3.  Real Examples ...............................................  19
  42.            2.3.1.  IBM PC to DEC-10 Connection .........................  20
  43.                    2.3.1.1.  Transfer Files Between the DEC-10 and
  44.                              IBM PC Using Server Mode ..................  20
  45.                    2.3.1.2.  Transfer Files Between the DEC-10 and
  46.                              IBM PC Using Send/Receive .................  22
  47.            2.3.2.  IBM PC to TSO Connection ............................  24
  48.                    2.3.2.1.  Transfer Files Between TSO and IBM PC
  49.                              Using Server Mode .........................  24
  50.                    2.3.2.2.  Transfer Files Between TSO and IBM PC
  51.                              Using Send/Receive ........................  26
  52. 03.  Kermit Commands ...................................................  29
  53. 0    3.1.  Remote and Local Operation ..................................  30
  54.      3.2.  The Command Dialog ..........................................  32
  55.      3.3.  Notation ....................................................  34
  56.      3.4.  Summary of Kermit Commands ..................................  35
  57.      3.5.  The SEND Command ............................................  37
  58.      3.6.  The RECEIVE Command .........................................  39
  59.      3.7.  GET .........................................................  40
  60.      3.8.  SERVER ......................................................  41
  61.      3.9.  BYE .........................................................  41
  62.      3.10.  FINISH .....................................................  41
  63.      3.11.  REMOTE .....................................................  42
  64.      3.12.  LOCAL ......................................................  44
  65.      3.13.  CONNECT ....................................................  45
  66.      3.14.  HELP .......................................................  45
  67.      3.15.  TAKE .......................................................  45
  68.      3.16.  EXIT, QUIT .................................................  45
  69.      3.17.  The SET Command ............................................  46
  70.      3.18.  DEFINE .....................................................  55
  71.      3.19.  SHOW .......................................................  56
  72.      3.20.  STATISTICS .................................................  56
  73.      3.21.  LOG ........................................................  56
  74.      3.22.  TRANSMIT ...................................................  56
  75.      3.23.  INPUT ......................................................  57
  76.      3.24.  OUTPUT .....................................................  57
  77. 1ii
  78. -
  79.      3.25.  PAUSE ......................................................  57
  80.      3.26.  SCRIPT .....................................................  57
  81. 04.  Kermit Implementations ............................................  59
  82. 05.  DECsystem-10 Kermit ...............................................  63
  83. 0    5.1.  The DECsystem-10 File System ................................  64
  84.            5.1.1.  TOPS-10 File Specifications .........................  64
  85.            5.1.2.  TEXT FILES AND BINARY FILES .........................  65
  86.            5.1.3.  FILES KERMIT-10 CANNOT HANDLE .......................  67
  87.      5.2.  Program Operation ...........................................  68
  88.      5.3.  Remote and Local Operation ..................................  70
  89.      5.4.  Conditioning Your Job for Kermit ............................  71
  90.      5.5.  Kermit-10 Commands ..........................................  72
  91.            5.5.1.  Commands for File Transfer ..........................  72
  92.            5.5.2.  Server Operation ....................................  76
  93.            5.5.3.  Commands for Local File Management ..................  76
  94.            5.5.4.  The SET, SHOW, and DEFINE Commands ..................  78
  95.            5.5.5.  Program Management Commands .........................  83
  96.      5.6.  Raw Download ................................................  84
  97.      5.7.  Kermit-10 Examples ..........................................  85
  98. 06.  TSO Kermit ........................................................  87
  99. 0    6.1.  The IBM MVS File System .....................................  88
  100.      6.2.  Program Operation ...........................................  90
  101.            6.2.1.  Starting TSO Kermit .................................  94
  102.            6.2.2.  TSO Kermit Commands .................................  94
  103.      6.3.  Conditioning Your Session for Kermit ........................  96
  104.      6.4.  TSO Kermit Commands .........................................  97
  105.            6.4.1.  Server Operation ....................................  97
  106.            6.4.2.  Commands for File Transfer ..........................  99
  107.            6.4.3.  Commands for Local Data Set Management ..............  99
  108.            6.4.4.  The SET, RESET, and SHOW Commands ................... 101
  109.            6.4.5.  Program Management Commands ......................... 104
  110.      6.5.  TSO Kermit Examples ......................................... 105
  111.      6.6.  Additional Information ...................................... 109
  112.      6.7.  Error Messages .............................................. 109
  113. 07.  MS-DOS Kermit for the IBM-PC ...................................... 111
  114. 0    7.1.  The MS-DOS File System ...................................... 113
  115.            7.1.1.  File Specifications ................................. 113
  116.            7.1.2.  File Formats ........................................ 114
  117.      7.2.  Program Operation ........................................... 115
  118.      7.3.  Kermit-MS Commands .......................................... 120
  119.            7.3.1.  Commands for Terminal Connection .................... 121
  120.            7.3.2.  Commands for File Transfer .......................... 122
  121.            7.3.3.  Commands Controlling Remote Kermit Servers .......... 127
  122.            7.3.4.  Commands for File Management ........................ 128
  123.            7.3.5.  The SERVER Command .................................. 134
  124.            7.3.6.  The SET Command ..................................... 135
  125.            7.3.7.  The SHOW Command .................................... 150
  126.            7.3.8.  Command Macros ...................................... 151
  127. 1                                                                             iii
  128. -
  129.      7.4.  Terminal Emulation .......................................... 152
  130.            7.4.1.  Screen Scroll ....................................... 155
  131.            7.4.2.  Screen Dump ......................................... 155
  132.            7.4.3.  Printer Control ..................................... 156
  133.            7.4.4.  Key Redefinitions ................................... 156
  134.      7.5.  IBM-PC MS Kermit Terminal Emulator Summary .................. 158
  135.            7.5.1.  Keyboard Layout and Characters Sent ................. 158
  136.            7.5.2.  Responses to Characters Received by the Terminal
  137.                    Emulator ............................................ 161
  138.            7.5.3.  DEC VT102 Functions while in VT52 Mode .............. 164
  139.            7.5.4.  Heath-19 Functions .................................. 165
  140.      7.6.  Installing MS-DOS Kermit on a Fixed Disk .................... 167
  141. 08.  APPLE-DOS Kermit .................................................. 169
  142. 0    8.1.  The DOS 3.3 File System ..................................... 170
  143.      8.2.  Program Operation ........................................... 172
  144.      8.3.  Remote and Local Operation .................................. 174
  145.      8.4.  KERMIT-A2 Commands .......................................... 175
  146.      8.5.  Matching KERMIT-A2 to Your System ........................... 190
  147. 0Appendix A -- When Things Go Wrong .................................... 193
  148. 0    A.1.  Basic Connection Problems ................................... 193
  149.      A.2.  Terminal Connection Works But The Transfer Won't Start ...... 194
  150.      A.3.  Special Characters .......................................... 196
  151.      A.4.  3270 Protocol Emulators ..................................... 196
  152.      A.5.  The Transfer Starts But Then Gets Stuck ..................... 197
  153.            A.5.1.  The Microcomputer is Hung ........................... 197
  154.            A.5.2.  The Connection is Broken ............................ 197
  155.            A.5.3.  The Disk is Full .................................... 197
  156.            A.5.4.  Message Interference ................................ 198
  157.            A.5.5.  Transmission Delays ................................. 198
  158.            A.5.6.  Noise Corruption .................................... 198
  159.            A.5.7.  Host Errors ......................................... 199
  160.      A.6.  File is Garbage ............................................. 199
  161.      A.7.  Junk After End of File ...................................... 199
  162.      A.8.  Data Set Problems Under TSO ................................. 199
  163. 0Appendix B -- ASCII and EBCDIC Tables ................................. 201
  164. 0    B.1.  The ASCII Character Set ..................................... 201
  165.      B.2.  ASCII to EBCDIC Translation Table ........................... 205
  166.      B.3.  EBCDIC to ASCII Translation Table ........................... 207
  167. 0Appendix C -- Microcomputer to Microcomputer File Transfer ............ 209
  168. 0    C.1.  Getting Ready to Use Kermit ................................. 209
  169.      C.2.  Connecting the Computers .................................... 211
  170.      C.3.  Communicating Between Computers ............................. 213
  171.      C.4.  Sending and Receiving Files ................................. 215
  172.      C.5.  Figuring Out Why (If) Kermit Does Not Work .................. 217
  173. 1iv
  174. -
  175. 1                                                                               v
  176. -
  177.                                  List of Figures
  178. 0   Figure 1-1:   A Kermit Packet ...................................  11
  179.     Figure 1-2:   Kermit File Transfer ..............................  12
  180.     Figure 3-1:   Local and Remote Kermits ..........................  31
  181. 1vi
  182. -
  183. 1                                                                             vii
  184. -
  185.                                   List of Tables
  186. 0   Table 7-1:   Kermit-MS Screen Scroll Keys ....................... 155
  187. 1viii
  188. -
  189. 1Kermit File Transfer Package                                                   1
  190. -
  191.                        Statement of Kermit Software Support
  192. 0Kermit is a unique product for the NIH Computer Center.  There are two  personal
  193.  computer  implementations  (IBM  PC and APPLE ][) that can be used with two host
  194.  implementations (IBM TSO and DECsystem-10).  For the various versions there  are
  195.  different points of contact for questions and problems.  These points of contact
  196.  are summarized in the table below.  Users unsure as to which group  to  contact,
  197.  should  contact  the PAL Unit or submit a Programmer Trouble Report (PTR) to get
  198.  clarification.
  199. 0                                NIH Users              Non-NIH Users
  200.            Kermit Version        Who to Contact         Who to Contact
  201.            --------------        --------------         --------------
  202.            DECsystem-10          DEC-10 or PTR          DEC-10 or PTR
  203.            TSO                   PAL or PTR             PAL or PTR
  204.            MS-DOS for IBM PC     PWO or PTR             PTR
  205.            APPLE ][              PTR                    PTR
  206. 0DEC-10 - DEC-10 Support (496-4823)
  207.  PAL    - Programmer Assistance and Liaison Unit (496-5525)
  208.  PTR    - Programmer Trouble Report (via ENTER PTR in WYLBUR or WYLBUR under TSO;
  209.           via R PTR on the DEC-10)
  210.  PWO    - Personal Workstation Office (496-2282)
  211. 0The IBM TSO and  DECsystem-10  implementations  have  been  designated  Level  1
  212.  Software  and  receive  the  full  range  of support services offered by the NIH
  213.  Computer Center.
  214. 0The IBM PC and APPLE ][ implementations have been designated Level  2  Software.
  215.  The "Definition of Support for Level 2 Software" can be found on the next page.
  216. 0Although other implementations of Kermit (not  supported  by  the  NIH  Computer
  217.  Center)  may  sometimes  work  successfully,  problems that arise are wholly the
  218.  responsibility of the  user.   Unsupported  implementations  may  cease  working
  219.  without  warning  since  Computer  Center  changes are preannounced only if they
  220.  affect supported products.
  221. -
  222. -
  223. -
  224. -
  225. -
  226. -
  227. 0                                            Statement of Kermit Software Support
  228. 12                                                   Kermit File Transfer Package
  229. -
  230.                              Level 2 Software Support
  231.                               (Revised August, 1986)
  232. -This software product, or a certain portion of it, has  been  assigned  Level  2
  233.  support  status.  The Level 2 designation is made by the Computer Center for any
  234.  of three reasons:  First, an entire software product may be designated  Level  2
  235.  if  it is in test status, or the Center determines that rapid problem resolution
  236.  and long-term product availability can not be ensured with  the  vendor  support
  237.  available.   Second, an interface to specific peripheral hardware devices (e.g.,
  238.  terminals or plotters) will receive Level 2 support, even if  the  remainder  of
  239.  the product is designated Level 1.  Third, an interface to processors not at the
  240.  NIH Computer Utility (e.g., microprocessors  or  other  computer  installations)
  241.  will receive Level 2 support, even if the remainder of the product is designated
  242.  Level 1.
  243. 0If a hardware device/terminal is not specifically mentioned in the documentation
  244.  for  this  product,  no  interface  to it is supported (even as Level 2).  While
  245.  unsupported devices may sometimes function with  the  interfaces  provided,  any
  246.  problems  encountered are wholly the user's responsibility.  This support policy
  247.  is necessary in order to provide services for the large number of devices (e.g.,
  248.  terminals,  plotters,  microprocessors) commonly owned/used by end users.  It is
  249.  not practical for the NIH Computer Center  to  be  familiar  with  the  hardware
  250.  characteristics of the myriad devices that can take advantage of these services.
  251. 0Users of this product should be  fully  aware  that  the  support  for  Level  2
  252.  software  provides  documentation,  non-critical Programmer Trouble Report (PTR)
  253.  service,  and  limited  INTERFACE  preannouncement  of  changes,  but  does  not
  254.  guarantee  continued  availability  or conversion assistance if this software is
  255.  discontinued by the vendor or the Computer Center.
  256. 0In addition, no Programmer Assistance and Liaison (PAL) Unit consulting will  be
  257.  available  on  questions  pertaining  to  the  use  of  or problems with Level 2
  258.  software.  The Computer Center  will  accept  PTRs  for  problems  if  they  are
  259.  accompanied  by all of the documentation necessary for diagnosis and resolution.
  260.  When the Computer Center staff member responsible for the problem area described
  261.  in  a Level 2 PTR receives all pertinent documentation on the problem, the staff
  262.  member will frequently act as a technical guide with  the  burden  of  the  work
  263.  remaining with the user.
  264. 0Resolving or circumventing problems with Level 2 software may require  resources
  265.  (e.g., hardware/terminals or source code) that are not available to the Computer
  266.  Center staff.  Since the Computer Center is often completely unfamiliar with the
  267.  specific  devices/terminals involved, the vendor may be the sole source of vital
  268.  information required for problem resolution or circumvention.  For this  reason,
  269.  the "Critical" designation for PTRs is not applicable and will be disregarded by
  270.  the Center.  Once a PTR and all supporting  documentation  is  received  by  the
  271.  Computer  Center,  the  work to get a resolution is a mutual effort of the user,
  272.  the Computer Center and the author or vendor for those  products  designated  as
  273.  Level 2.  Since the Computer Center must rely on the cooperation/interest of the
  274.  vendor/developer of a product, it is possible that some problems  may  never  be
  275.  resolved.
  276. -
  277.  Statement of Kermit Software Support
  278. 1Kermit File Transfer Package                                                   3
  279. -
  280.  The effects of the support given by the Computer  Center  to  Level  2  software
  281.  should be thoroughly considered before incorporating this software into critical
  282.  applications.  It must be stressed that  the  proper  functioning  or  long-term
  283.  availability of Level 2 software cannot be guaranteed by the Computer Center.
  284. 0The following chart outlines Computer Center  services  available  for  Level  2
  285.  software.  For further information on Levels of software and how to submit PTRs,
  286.  see the appropriate section of the Computer Center Users  Guide    If  questions
  287. +                                   ________ ______ _____  _____.
  288.  remain  on this policy, contact the PAL Unit Consulting Desk of the NIH Computer
  289.  Center.
  290. -SERVICE                            SUPPORT FOR LEVEL 2 SOFTWARE
  291. 0CONSULTING (PAL DESK)
  292.    a) personal visit                        No
  293.    b) telephone                             No
  294.                                          (Users will have to rely
  295.                                          on technical documentation
  296.                                          provided by the Computer
  297.                                          Center and their own
  298.                                          resources)
  299. 0PROGRAMMER TROUBLE REPORT (PTR)            Yes
  300. 0"CRITICAL" PTR DESIGNATION                 No
  301. 0REFUNDS                                    Yes
  302. 0DOCUMENTATION                              Yes
  303. 0TRAINING                                   Resources
  304.                                             permitting
  305.  SOFTWARE MAINTENANCE
  306.   a) Currency maintained with respect       Resources
  307.      to new versions and facilities         permitting
  308.   b) Formal change testing (Test Job        No
  309.      Stream)
  310.   c) Informal change testing                Yes
  311.   d) Guarantee of orderly, fully            No
  312.      documented conversion if product
  313.      is discontinued
  314.   e) Preannouncement in INTERFACE of        Resources
  315.      all new facilities                     permitting
  316.   f) Preannouncement in INTERFACE of        Resources
  317.      changes which cause old versions       permitting
  318.      of programs to function
  319.      incorrectly or differently
  320.   g) Preannouncement in INTERFACE of        Yes
  321.      discontinuance of support or changes
  322.      in support status (Level)
  323.   h) Preventive and corrective fixing       Resources
  324.      by Computer Center staff               permitting
  325. -                                            Statement of Kermit Software Support
  326. 14                                                   Kermit File Transfer Package
  327. -
  328.                                      Preface
  329. 0Kermit is the name of a protocol for transferring files  from  one  computer  to
  330.  another over ordinary asynchronous terminal connections.  Kermit implementations
  331.  have been written for many different computers, and in general any two computers
  332.  that  have  Kermit can exchange sequential files correctly and completely.  This
  333.  manual describes the use of Kermit.
  334. 0This manual describes an "ideal" Kermit implementation and  then  describes  the
  335.  Kermit  implementations  supported  by  the NIH Computer Center in detail.  Each
  336.  implementation of Kermit has a HELP facility that serves as an adjunct  to  this
  337.  manual.
  338. -
  339. -
  340. -
  341. -
  342. -
  343. -
  344. -
  345. -
  346. -
  347. -
  348. -
  349. -
  350. -
  351. -
  352. 0Preface
  353. 1Kermit File Transfer Package                                                   5
  354. -
  355.                            History and Acknowledgements
  356. 0The Kermit file transfer protocol was designed at the Columbia University Center
  357.  for  Computing  Activities (CUCCA) in 1981-82 mainly by Bill Catchings and Frank
  358.  da Cruz.  Bill wrote the first two programs, one for the  DECsystem-20  and  one
  359.  for a CP/M-80 microcomputer.
  360. 0The initial objective was to allow CUCCA users on  DEC-20  and  IBM  timesharing
  361.  systems  to  archive their files on microcomputer floppy disks.  The design owes
  362.  much to the ANSI and ISO models, and ideas were borrowed from  similar  projects
  363.  at Stanford University and the University of Utah.  The protocol was designed to
  364.  accommodate the "sensitive" communications front end of the  full-duplex  DEC-20
  365.  system as well as the peculiarities of half-duplex IBM mainframe communications.
  366.  The protocol was soon implemented successfully on CUCCA IBM 4341  systems  under
  367.  VM/CMS by Daphne Tzoar of CUCCA.
  368. 0Meanwhile it was becoming apparent that Kermit was useful  for  more  than  just
  369.  file archiving; IBM PCs were beginning to appear in the offices and departments,
  370.  and there arose a general need for file transfer  among  all  Columbia  systems.
  371.  Daphne soon had prepared an IBM PC implementation.
  372. 0After the initial success with Kermit, it was presented at conferences  of  user
  373.  groups  like  DECUS and SHARE, and requests for Kermit began to be received from
  374.  other sites.  Since the protocol description had  been  documented,  some  sites
  375.  wrote  their  own implementations for new computers, or adapted one of the CUCCA
  376.  implementations to run on additional systems, and sent back these  new  versions
  377.  to  Columbia so they could be shared with others.  In this way, Kermit has grown
  378.  to support more than 100 different systems; it has been sent  on  magnetic  tape
  379.  from  Columbia  to  thousands  of  sites in dozens of countries, and has reached
  380.  hundreds or thousands more through various user groups and networks.
  381. 0Thanks are due  to  the  hundreds  of  individuals  and  institutions  who  have
  382.  contributed over the years to making Kermit what it is today.
  383. 0Credit for the Kermit  implementations  described  in  this  manual  belongs  to
  384.  Columbia  University and Utah State University (IBM PC), the National Institutes
  385.  of Health (TSO), Stevens Institute of Technology (DEC-10), and the University of
  386.  Maryland (Apple ][).
  387. 0The Kermit protocol was named after Kermit the  Frog,  star  of  the  television
  388.  series  THE  MUPPET  SHOW;  the  name  Kermit  is  used  by permission of Henson
  389.  Associates, Inc., New York.
  390. 0A two-part article describing the Kermit protocol appeared in the June and  July
  391.  1984 issues of BYTE Magazine.
  392. 0The book Kermit, A File Transfer Protocol  by  Frank  da  Cruz,  Digital  Press,
  393.  Bedford,  MA 01730 (1986) describes Kermit in detail, from the points of view of
  394.  the user, of computer professionals who have to install it or support  its  use,
  395.  and  of  programmers  who  wish  to  write  new Kermit implementations, and also
  396.  contains tutorial sections on data communications,  file  organization,  plus  a
  397.  detailed troubleshooting guide, along with many illustrations and tables.
  398. -
  399.                                                                           Preface
  400. 16                                                   Kermit File Transfer Package
  401. -
  402.                                     Disclaimer
  403. 0Neither Columbia University, nor the National  Institutes  of  Health,  nor  the
  404.  editor,  nor  the  authors  of  the  individual  chapters, nor any individual or
  405.  institution contributing Kermit implementations or documentation to the Columbia
  406.  University Kermit Distribution, acknowledge any liability for any claims arising
  407.  from use or  misuse  of  Kermit  implementations  or  for  inaccuracies  in  the
  408.  documentation  or  bugs  in  the  implementations.   Kermit  implementations are
  409.  produced on a voluntary basis and contributed freely for public use in the  hope
  410.  that  they will be useful, but without any kind of warranty or guarantee, or any
  411.  commitment to address or fix problems.  In practice, Kermit implementations  and
  412.  documentation  are  contributed  in  good  faith,  and  will  be  supported on a
  413.  best-effort basis, time and other commitments permitting.
  414. -
  415. -
  416. -
  417. -
  418. -
  419. -
  420. -
  421. -
  422. -
  423. -
  424. -
  425. -
  426. -
  427. -
  428.  Preface
  429. 1Kermit File Transfer Package                                                   7
  430. -
  431.                               How to Use This Manual
  432. 0Section 2, How to Use Kermit, tells all you need to know to  transfer  files  in
  433.  most  cases,  and  shows some specific examples.  Note that in all examples, the
  434.  user entered fields are underlined to separate the computer  generated  messages
  435.  and prompts from the commands given by the user.
  436. 0If you follow the examples in Section 2 but you can't make a terminal connection
  437.  or  you  can't  transfer  files successfully, consult Appendix A, When Things Go
  438.  Wrong.
  439. 0If you expect to be a heavy user of Kermit, you should read  Section  3,  Kermit
  440.  Commands,  which  describes  all the features of Kermit in detail.  You may find
  441.  that familiarity with the material in  this  section  will  help  you  get  past
  442.  difficulties  that  can  crop up when you are making new kinds of connections or
  443.  transferring unusual kinds of files.  You will also find  descriptions  of  some
  444.  advanced  file  management  features  that  have  been  omitted from the earlier
  445.  sections.
  446. 0Section 4, Kermit Implementations, briefly lists the systems for which Kermit is
  447.  available  as  of this writing.  The subsequent chapters describe the particular
  448.  implementations that are supported by the NIH Computer Center.  You should  read
  449.  the  appropriate  section  for each system with which you are using Kermit; each
  450.  section describes the file naming conventions and other system features that are
  451.  important  to Kermit users, and lists the Kermit commands for that system mainly
  452.  in terms of their differences from the "ideal" Kermit described in Section 3.
  453. 0Appendix B shows the ASCII character set and the  translation  tables  used  for
  454.  ASCII/EBCDIC  conversion by TSO Kermit.  Users wanting to transfer files between
  455.  microcomputers should read  Appendix  C,  Microcomputer  to  Microcomputer  File
  456.  Transfer.
  457. -
  458. -
  459. -
  460. -
  461. -
  462. -
  463. -
  464. -
  465.                                                            How to Use This Manual
  466. 18                                                   Kermit File Transfer Package
  467. -
  468. -
  469. -
  470. -
  471. -
  472. -
  473. -
  474. -
  475. -
  476. -
  477. -
  478. -
  479. -
  480. -
  481. -
  482. -
  483. -
  484. -
  485. -
  486. 0How to Use This Manual
  487. 1Kermit File Transfer Package                                                   9
  488. -
  489.  1.  Introduction
  490. 0There is an ever-increasing need  to  move  information  from  one  computer  to
  491.  another.  Information can be exchanged using magnetic media -- tapes or disks --
  492.  or over networks.  Networks  are  expensive,  and  when  your  computer  is  not
  493.  connected  to  one  (or to the right one), you must find other means to transfer
  494.  information.  In the early  days  of  computing,  magnetic  media  formats  were
  495.  relatively  standardized,  but  with  the  arrival of microcomputers things have
  496.  changed:  most microcomputer users have no access to tapes, and disk formats are
  497.  incompatible  between  most  microcomputer  makes  and  models.   Even when disk
  498.  formats agree, the disk must be physically moved from one system to the other in
  499.  order for information to be exchanged -- the effort and delay can be significant
  500.  if the systems are widely separated.
  501. 0The telecommunication line provides an  alternative  to  networks  and  magnetic
  502.  media.   Asynchronous  telecommunication is the method used by most terminals to
  503.  connect to most computers.  When  dedicated  "hardwired"  connections,  such  as
  504.  those  found  between  a  timesharing  computer and its local terminals, are not
  505.  available, computer users can create their own connections with a telephone  and
  506.  a modem.
  507. 0Most computers come equipped with asynchronous telecommunications interfaces, or
  508.  "serial ports," which allow them to act as, or communicate with, terminals.  The
  509.  question is how to use the serial  port  to  exchange  data.   Fortunately,  the
  510.  standards for connecting terminals to computers are almost universally followed:
  511.  connector configuration (DB-25 or DB-9), transmission signals  (EIA  RS-232),  a
  512.  commonly accepted set of transmission speeds (bits per second), and a convention
  513.  for encoding characters in  storage  and  during  transmission  (ASCII).   These
  514.  standards  provide  the  physical  medium  and  the data format, but they do not
  515.  specify a process for exchanging data.
  516. -
  517. -
  518. -
  519. -
  520. -
  521. -
  522. -
  523. -
  524. 0                                                       Section 1 -- Introduction
  525. 110                                                  Kermit File Transfer Package
  526. -
  527.  1.1.  Why Kermit?
  528. 0When data is transmitted from one computer to another,  the  receiving  computer
  529.  has to be instructed to take in the data and put it somewhere, and it also needs
  530.  a way of ensuring that the data has been received correctly  and  completely  in
  531.  spite of several factors that will tend to interfere with this process:
  532. 0    1.  Noise -- It is rarely safe to assume that there will  be  no  electrical
  533.          interference  on  a  line;  any long or switched data communication line
  534.          will have occasional interference, or noise, which typically results  in
  535.          garbled  or  extra  characters.   Noise corrupts data, perhaps in subtle
  536.          ways that might not be noticed until it's too late.
  537. 0    2.  Timing -- Data must not come in faster than the  receiving  machine  can
  538.          handle  it.  Although line speeds at the two ends of the connection must
  539.          match before communication can take place, the receiving  machine  might
  540.          not  be  able  to  process  a steady stream of input at that speed.  Its
  541.          central processor may be too slow or too heavily loaded, or its  buffers
  542.          too  full or too small.  The typical symptom of a timing problem is lost
  543.          data; most operating systems will simply discard incoming data they  are
  544.          not prepared to receive.
  545. 0    3.  Line Outages -- A line may stop working for short periods because  of  a
  546.          faulty  connector,  loss  of  power,  or  similar  reason.  On dialup or
  547.          switched connections, such intermittent failures may cause  the  carrier
  548.          to drop and the connection to be closed, but for any connection in which
  549.          the carrier signal is not used, the symptom will be lost data.
  550. 0To prevent corruption of data  and  to  synchronize  communication,  cooperating
  551.  computers  can  send  special  messages  to  one  another  along  with the data.
  552.  Intermingling of control information with data together requires a set of  rules
  553.  for  distinguishing control messages from data, and specifying what the messages
  554.  are and the actions associated with each message.  Such a set of rules is called
  555.  a protocol.
  556. 0Kermit is a file transfer protocol.  It is specifically designed for transfer of
  557.  sequential  files  over  ordinary serial telecommunication lines.  Kermit is not
  558.  necessarily better than other terminal-oriented file transfer protocols  but  it
  559.  is free, it is well documented, and it has been implemented compatibly on a wide
  560.  variety of microcomputers and mainframes.
  561. -
  562. -
  563. -
  564. -
  565. -
  566.  Introduction -- Section 1
  567. 1Kermit File Transfer Package                                                  11
  568. -
  569.  1.2.  How Kermit Works
  570. 0Kermit transfers data by encapsulating it in  packets  of  control  information.
  571.  This  information includes a synchronization marker, a packet sequence number to
  572.  allow detection of lost packets, a length indicator,  and  a  "block  check"  to
  573.  allow verification of the data, as shown in Figure 1-1.
  574. 0    +------+------+------+------+--------- - - - -+-------+
  575.      | MARK | LEN  | SEQ  | TYPE | DATA            | CHECK |
  576.      +------+------+------+------+--------- - - - -+-------+
  577. 0                  Figure 1-1:  A Kermit Packet
  578. 0The MARK (usually an ASCII Control-A character) appears at the beginning of  the
  579.  packet.   The  next  character  is a length field (LEN), specifying how long the
  580.  rest of the packet is.  The sequence number (SEQ) is  used  to  detect  lost  or
  581.  duplicated  packets;  retransmission is requested for lost packets and duplicate
  582.  packets are discarded.  The TYPE field specifies  whether  the  packet  contains
  583.  data  or  control  information.  The CHECK field contains a quantity obtained by
  584.  combining all the other characters in the packet  together  in  one  of  several
  585.  ways;  the  sender  computes  this value and sends it.  The packet receiver also
  586.  computes the value and checks it against the value  sent;  if  they  agree,  the
  587.  packet  is  accepted;  if  they disagree, then the packet has been corrupted and
  588.  retransmission is requested.  The DATA field contains up  to  90  characters  of
  589.  data.   All fields except the mark are encoded as printable ASCII characters, to
  590.  prevent host or network interference.  Figure  1-2  shows  how  a  typical  file
  591.  transfer  proceeds.   Figure  1-2 does not show how Kermit recovers from errors.
  592.  Very briefly, here's how it works:
  593. 0   - If a packet is corrupted in transit by noise or  loss  of  characters,  the
  594.       block  check  will  be  wrong.   A  file  receiver  will  NAK  ("negatively
  595.       acknowledge") a corrupted packet, which causes the sender to retransmit the
  596.       same    packet.     A   file   sender   only   receives   ACKs   ("positive
  597.       acknowledgements") and NAKs from the receiver; a corrupted ACK or NAK  from
  598.       the receiver is treated exactly the same as a NAK.
  599. 0   - If the file sender does not receive an ACK within  the  prescribed  timeout
  600.       interval,  it  retransmits  the same packet.  If the file receiver does not
  601.       receive an expected packet within the timeout interval, it sends a NAK  for
  602.       the expected packet.
  603. -
  604. -
  605. -
  606. -
  607. -
  608.                                                         Section 1 -- Introduction
  609. 112                                                  Kermit File Transfer Package
  610. -
  611.    Sender                 Receiver
  612. 0  Send-Init ------------->         Sender and Receiver exchange greetings
  613.         <-------------------- ACK
  614. 0  File-Header ----------->         Sender sends first file name to Receiver
  615.         <-------------------- ACK   Receiver acknowledges
  616. 0  File-Data ------------->         Sender sends first file data packet
  617.         <-------------------- ACK
  618. 0  File-Data ------------->         Sender sends second file data packet
  619.         <-------------------- ACK
  620. 0  File-Data --xx~~~p'''-->         Third data packet is corrupted by noise
  621.         <-------------------- NAK    and Receiver negatively acknowledges it
  622. 0  File-Data ------------->         Sender retransmits third packet
  623.         <-------------------- ACK
  624. 0  File-Data packets are sent and acknowledged until the whole file is sent
  625. 0  End-Of-File ----------->         Sender indicates first file is complete
  626.         <-------------------- ACK
  627. 0  File-Header ----------->         Name second of file
  628.         <-------------------- ACK
  629. 0  File-Data ------------->         First data packet for second file
  630.         <-------------------- ACK
  631. 0  File-Data packets are sent and ack'd until the whole file is sent
  632. 0  End-Of-File ----------->         Sender indicates second file is complete
  633.         <-------------------- ACK
  634. 0  End-Of-Transaction ---->         Sender indicates no more files to come
  635.         <-------------------  ACK
  636. 0                      Figure 1-2:  Kermit File Transfer
  637. 0Several encoding, compression, and block check options are provided.   Very  few
  638.  assumptions  are  made  about the capabilities of either computer, so the Kermit
  639.  protocol can work between many different kinds  of  systems.   The  protocol  is
  640.  described  in  detail  in  the  Kermit  Protocol Manual (available from Columbia
  641.  University), and in the BYTE Magazine article on Kermit, published in  the  June
  642.  and July 1984 issues.
  643. -
  644. -
  645. -Introduction -- Section 1
  646. 1Kermit File Transfer Package                                                  13
  647. -
  648.  2.  How to Use Kermit
  649. 0Kermit embodies a set of rules  for  transferring  files  reliably  between  two
  650.  computers.   Usually,  one  computer  is  a  large  system  (a  host,  such as a
  651.  timesharing system with many terminals), and the other is  a  personal  computer
  652.  (PC),  although  use  of Kermit between two personal computers is also possible.
  653.  The host believes that the PC is an ordinary terminal.  In order for the  Kermit
  654.  protocol  to  work,  a  Kermit  program  must  be  running  on  each  end of the
  655.  communication line -- one on the host, one on the PC.
  656. 0Your task is just to get the two Kermits started.  You  have  to  use  a  single
  657.  keyboard  and screen to talk to two different computers, two different programs.
  658.  Let's talk about a common case:  you are sitting at a  personal  computer  (PC),
  659.  which  has  a serial communication port.  The serial port is connected to a host
  660.  computer using a dialup modem.
  661. 0Normally, when you use your PC, you are "talking" directly to it; your  commands
  662.  are  interpreted  directly  by  the PC's operating system (CP/M, PC-DOS, MS-DOS,
  663.  UNIX, etc.), or by some  program  that  runs  on  the  PC  (an  editor,  a  text
  664.  formatter, a spreadsheet...). The version of Kermit on your PC is a program like
  665.  any other, but it has a  special  ability  to  either  interpret  your  commands
  666.  directly,  like  other  programs,  or to pass everything you type through to the
  667.  other, remote computer.  When  you  tell  Kermit  to  CONNECT,  it  sends  every
  668.  character you type out the serial port to the remote computer, and it puts every
  669.  character that comes in the serial port from the remote computer onto the screen
  670.  of your PC.  This is called terminal emulation -- one computer acts as though it
  671.  were a terminal on another.  You are now "talking" to the remote  computer,  and
  672.  the PC is mimicking a terminal.
  673. 0Kermit, like most interactive programs, has a prompt.  The prompt is a string of
  674.  characters  it  types on the left margin to indicate that it is ready for you to
  675.  type a command.  Kermit's prompt is normally "Kermit-xx>."   The  xx  identifies
  676.  the  implementation  of  Kermit;  the  Kermit  that runs on the DEC-10 is called
  677.  "Kermit-10" and its prompt is "Kermit-10>"; the Kermit that runs on the  IBM  PC
  678.  microcomputers  is called "Kermit-MS" and its prompt is "Kermit-MS>"; the Kermit
  679.  that runs under TSO is "Kermit-TSO>", and so  forth.   If  you  become  confused
  680.  about  which  Kermit  you  are talking to, the prompt should provide a clue.  In
  681.  addition, most Kermits print an informative message like
  682. 0  [Connecting to host, type Control-] C to return to PC]
  683. 0when you CONNECT, and type another message like
  684. 0  [Back to PC]
  685. 0when you return.
  686. 0Having "connected" to the host, there must be a way for you to "get back" to the
  687.  PC.   This  is  accomplished  by  an  escape  sequence.   As  Kermit passes your
  688.  characters through to the host, it checks each one to  see  if  it's  a  special
  689.  predefined  escape  character  (usually  not the key labelled ESC).  When the PC
  690.  sees this character, it stops ignoring you -- you are once  again  "talking"  to
  691. -
  692.                                                    Section 2 -- How to Use Kermit
  693. 114                                                  Kermit File Transfer Package
  694. -
  695.  the  PC,  not  the host.  The escape character is normally chosen to be one that
  696.  you will not need to type while talking to the host, and one  that  is  hard  to
  697.  type  by  accident -- it's usually a control character, such as Control-], which
  698.  is entered by holding down the  key  marked  CTRL  or  CONTROL  and  typing  the
  699.  indicated  character  (in  this  case, a right bracket "]").  The CTRL key works
  700.  just like a SHIFT key.  Control characters are written either as CTRL-]  or  X],
  701.  where ] is the character to be typed while holding down CTRL.
  702. -
  703. -
  704. -
  705. -
  706. -
  707. -
  708. -
  709. -
  710. -
  711. -
  712. -
  713. -
  714. -
  715. -
  716. -
  717. -
  718.  How to Use Kermit -- Section 2
  719. 1Kermit File Transfer Package                                                  15
  720. -
  721.  2.1.  Transferring a File
  722. 0To transfer a file, you must first run the Kermit program on your PC.  Then tell
  723.  Kermit to CONNECT you to the host.  Next dial the telephone number of the remote
  724.  Kermit's modem and now you're talking to the remote host -- at  this  point  you
  725.  must login/logon, and then run Kermit on the host.
  726. 0Now you have a Kermit on each end of the wire.  The next step is  to  tell  each
  727.  Kermit what to do.  Suppose you want to transfer a file from the host to the PC;
  728.  you would first tell the host to go into server mode with  the  SERVER  command,
  729.  then "escape" back to the PC Kermit and tell it to GET (download) the file.  The
  730.  transfer begins -- you can sit back and watch, or go do something else.  The  PC
  731.  Kermit  will  produce a running display on your screen as the transfer proceeds,
  732.  and will notify you when it is complete.
  733. 0The desired file is now on your PC's disk.  The Kermit protocol has ensured that
  734.  the  file  arrived  correctly and completely.  Now if you have no other files to
  735.  transfer, you must clean up after yourself:  type BYE to terminate Kermit on the
  736.  host,  your  session on the host, and Kermit on the PC.  Now you can do whatever
  737.  you had planned for your file -- edit it, print it on your PC printer, etc.   To
  738.  transfer a file from the PC to the host (upload), issue the SEND command instead
  739.  of the GET command.
  740. 0Kermit allows an alternative to the server  mode  for  transferring  files,  the
  741.  send/receive  mode.   The send/receive mode was the only mode available in older
  742.  implementations of Kermit and is generally more cumbersome to  use  than  server
  743.  mode.   If  you  were  downloading using send/receive mode, you would start your
  744.  session just as described above.  But instead  of  typing  SERVER  to  the  host
  745.  Kermit,  you  tell  Kermit to SEND the file, then "escape" back to the PC Kermit
  746.  and tell it to RECEIVE the file.  The PC Kermit will produce a  running  display
  747.  on  your  screen  as  the  transfer  proceeds,  and  will  notify you when it is
  748.  complete.  To cleanup, CONNECT back to the host, exit from Kermit on  the  host,
  749.  logout/logoff from the host, "escape" back to PC Kermit and exit from it.
  750. 0The Kermit protocol, and most Kermit programs, allow you to send a file reliably
  751.  from  the  host  to the PC, from the PC to the host, from host to host, or PC to
  752.  PC, usually without any special regard for the nature of the particular machines
  753.  involved.   Most  implementations  also allow files to be sent in groups, with a
  754.  single command, such as "send *.*". The scenario for each of these is  the  same
  755.  as above -- only the details of how to establish the actual connection differ.
  756. 0Kermit works best with "text" (or "printable") files -- files composed  only  of
  757.  letters,  digits,  punctuation  marks,  carriage  returns, tabs, and so forth --
  758.  since these can be represented on almost any kind of computer.  Kermit  is  also
  759.  able to transfer "binary" files -- files such as executable programs -- composed
  760.  of arbitrary bit patterns, but binary files normally are meaningful only to  the
  761.  kind  of computer on which they are generated.  Nevertheless, Kermit can usually
  762.  move such files from system A to system B (where they are not much use) and back
  763.  to system A in their original condition, although in most cases special measures
  764.  must be taken to accomplish this.
  765. -
  766. -                                                  Section 2 -- How to Use Kermit
  767. 116                                                  Kermit File Transfer Package
  768. -
  769.  We'll look at some concrete examples in Section 2.3.  First  you  need  to  know
  770.  what the basic Kermit commands are.
  771. -
  772.  2.2.  Basic Kermit Commands
  773. 0These are generic descriptions of the  most  basic  Kermit  commands.   Detailed
  774.  descriptions will come later.  In these descriptions, local refers to the system
  775.  that you are using directly (IBM PC, APPLE ][), remote refers to the  system  to
  776.  which  you  are CONNECTed via Kermit (DECsystem-10, TSO).  Commands may take one
  777.  or more operands on the same line, and are terminated by a carriage return.
  778. -CONNECT
  779. 0Make a "virtual terminal" connection to the remote system.  To "escape"  from  a
  780.  virtual  terminal  connection  back  to  the  local Kermit, type Kermit's escape
  781.  character (e.g., Control-]), followed by the letter "C".
  782. 0NOTE: Control-], Ctrl-], and X] are three equivalent notations which mean to use
  783.        the  CONTROL  key  like a SHIFT key with respect to the next character (in
  784.        this case the right bracket key).
  785. -SERVER
  786. 0Cease taking commands from the keyboard and receive all further instructions  in
  787.  the  form  of  Kermit  packets  from the other (local) Kermit.  Issue the SERVER
  788.  command to the remote Kermit only, never to the local Kermit.  The local  Kermit
  789.  must  have  commands  for  communicating with remote servers; these include GET,
  790.  SEND, FINISH, and BYE or LOGOUT.
  791. 0After issuing SERVER, return to  the  local  system  and  issue  server-directed
  792.  commands  from  there.   If  your  local  Kermit does not have a BYE, LOGOUT, or
  793.  FINISH command, then it does not have the full ability  to  communicate  with  a
  794.  Kermit  server and you should not put the remote Kermit into server mode.  These
  795.  commands (used to exit from server mode) are described below.
  796. 0Any non-standard parameters should be selected with SET commands before  putting
  797.  the remote Kermit in server mode.
  798. -
  799. -
  800. -
  801. -
  802. -How to Use Kermit -- Section 2
  803. 1Kermit File Transfer Package                                                  17
  804. -
  805.  GET remote-filespec
  806. 0Request a remote Kermit operating in server mode to send the file or file  group
  807.  specified  by  remote-filespec.   A file group is usually specified by including
  808.  "wildcard" characters like "*" in the file specification.  Examples:
  809. 0      GET foo.txt
  810.        GET *.for
  811. 0The GET command can be issued to the local Kermit only.   This  means  that  you
  812.  must have CONNECTed to the other system, logged in, run Kermit there, issued the
  813.  SERVER command, and escaped back to the  local  Kermit.   Note  that  the  local
  814.  Kermit  does  not attempt to validate the remote-filespec.  If the server cannot
  815.  parse it, or  cannot  access  the  specified  file(s),  it  will  send  back  an
  816.  appropriate error message.
  817. -SEND filespec
  818. 0Send the file or file group specified by filespec from this Kermit to the  other
  819.  Kermit.   The  name  of  each  file  is  passed to the other Kermit in a special
  820.  control packet so it can be stored there with the same name.  A  file  group  is
  821.  usually  specified  by  including  "wildcard"  characters  like  "*" in the file
  822.  specification.  Examples:
  823. 0      SEND foo.txt
  824.        SEND *.for
  825. 0Some implementations of Kermit may not support transfer of  file  groups;  these
  826.  versions would require a separate SEND command for each file to be transferred.
  827. -BYE or LOGOUT
  828. 0Shut down the remote server and exit from Kermit.  This will cause  the  job  at
  829.  the remote end to log itself out.  You need not connect back and clean up unless
  830.  you get an error message in response to this  command  (for  instance,  if  your
  831.  logged-out  disk  quota  is  exceeded  on  the remote host).  BYE and LOGOUT may
  832.  differ in their effect on the local Kermit.
  833. -FINISH
  834. 0Shut down the server without having it log itself out, and don't exit  from  the
  835.  local Kermit.  A subsequent CONNECT command will put you back at your session on
  836.  the remote host, at system or Kermit command level.
  837. -EXIT or QUIT
  838. 0Exit from Kermit back to the operating system.
  839. -
  840. 0                                                  Section 2 -- How to Use Kermit
  841. 118                                                  Kermit File Transfer Package
  842. -
  843.  HELP
  844. 0Type a summary of Kermit commands and what they do.
  845. -RECEIVE
  846. 0Receive a file or file group from the other Kermit.  If an incoming file name is
  847.  not  legal,  then  the receiving Kermit may attempt to transform it to a similar
  848.  legal name.  Options may be provided for handling filename collisions.  Note the
  849.  distinction between the RECEIVE and GET commands:  RECEIVE instructs the program
  850.  to wait passively; whereas, GET actively sends  a  request  to  a  server.   The
  851.  RECEIVE command is not used when the remote Kermit is in server mode.
  852. -SET
  853. 0Establish various non-standard settings, such as CONNECT escape character,  file
  854.  characteristics, communication line number, speed, parity, or flow control.  All
  855.  of these are explained later.
  856. -SHOW
  857. 0Display the values of SET options.
  858. -?
  859. 0Typed almost anywhere within a Kermit command:  List the commands,  options,  or
  860.  operands that are possible at this point.  This command may or may not require a
  861.  carriage return, depending on the operating system.
  862. -
  863. -
  864. -
  865. -
  866. -
  867. -
  868. -
  869. -How to Use Kermit -- Section 2
  870. 1Kermit File Transfer Package                                                  19
  871. -
  872.  2.3.  Real Examples
  873. 0Kermit can be used in several ways:  from a PC that is  connected  to  a  larger
  874.  host computer; from a host computer which is connected to another host; from one
  875.  PC to another.  This section restricts its examples to PC and  host  connections
  876.  that are supported at NIH.
  877. -
  878. -
  879. -
  880. -
  881. -
  882. -
  883. -
  884. -
  885. -
  886. -
  887. -
  888. -
  889. -
  890. -
  891. -
  892. -
  893. 0                                                  Section 2 -- How to Use Kermit
  894. 120                                                  Kermit File Transfer Package
  895. -
  896.  2.3.1.  IBM PC to DEC-10 Connection
  897. -2.3.1.1.  Transfer Files Between the DEC-10 and IBM PC Using Server Mode
  898. 0User responses are underlined  notes are enclosed in brackets or are  listed  to
  899. +                   __________,
  900.  the far right of the relevant input/output.
  901. 0A>k_____                      ; Start Kermit on the IBM PC.
  902. +  _ermit
  903.  IBM-PC Kermit-MS V2.29   26 May 86
  904.  Type ? for help
  905. 0Kermit-MS>comment           DO WYLBUR for WYLBUR
  906.  Kermit-MS>comment           DO DEC10  for DEC-10
  907.  Kermit-MS>comment           DO TSO    for TSO
  908.  Kermit-MS>comment           DO 3270   for Protocol Conversion Facility
  909.  Kermit-MS>                    ; This is the Kermit prompt for the PC.
  910.  Kermit-MS>do _____            ; Set Kermit parameters for the DEC-10.
  911. +          ___dec10
  912. 0[Commands issued from the DEC10 macro are displayed]
  913. 0Kermit-MS>connect             ; Connect to the communications line.
  914. +          _______
  915. 0[The screen changes to the display of the terminal being emulated.]
  916. 0ATDT49_2222                   ; Issue modem command to dial the DEC-10.
  917. +______2____
  918. 0[Assumes Hayes-compatible modem; dial 492-2222 using a  manual  dial  modem;  if
  919.   using  an  AT&T  2224B  modem,  type  AT4922222 or use the interactive commands
  920.   described in the NIH Terminal Operators Guide.]
  921. 0[Various modem messages]
  922. 0CONNECT                       ; You are now connected to the DEC-10.
  923. 0[Type a carriage return.]
  924. 0NIH Timesharing               ; The DEC-10 system prints its herald.
  925. 0NIH Tri-SMP 7.02-GG      15:35:24 TTY24 system 1378/1381/1453
  926.  Connected to Node GRUMPY(42) Line # 12
  927.  Please LOGIN or ATTACH
  928. 0.login prj,prg                ; Login with your PPN.
  929. + _____________
  930.  JOB 56 NIH Tri-SMP 7.02-GG      TTY24
  931.  Password:______               ; Enter your password.
  932. 0[DEC-10 messages related to login]
  933. 0.r ______                     ; Start Kermit on the DEC-10.
  934. + __kermit
  935. 0TOPS-10 KERMIT version 3(133)
  936. -
  937.  How to Use Kermit -- Section 2
  938. 1Kermit File Transfer Package                                                  21
  939. -
  940.  [Issue SET commands as needed.  If you want to transfer binary data, originating
  941.   on the PC, change the FILE BYTE-SIZE setting to 8 (i.e., SET FILE BYTE-SIZE 8).
  942.   All parameter values that you want to change must  be  set  before  the  remote
  943.   Kermit  is  placed  in  server  mode.   These  parameters  and their values are
  944.   described under the SET command in the DECsystem-10 Kermit section.]
  945. 0Kermit-10>server              ; Tell the DEC-10 Kermit to be a server.
  946. +          ______
  947. 0[Kermit Server running on the DEC host.  Please type  your  escape  sequence  to
  948.  return  to  your  local  machine.  Shut down the server by typing the Kermit BYE
  949.  command on your local machine.]
  950. 0X]c                           ; Now escape back to the microcomputer.
  951. +___
  952. 0[Back to the microcomputer.]
  953. 0Kermit-MS>get ________        ; Get the DEC-10 file named test.pas.
  954. +          ____test.pas
  955. 0[PC screen shows file transfer status during download of the DEC-10 file to  the
  956.   IBM PC.]
  957. 0Kermit-MS>send ________       ; Send the IBM PC file named test.for.
  958. +          _____test.for
  959. 0[PC screen shows file transfer status during upload of the IBM PC  file  to  the
  960.   DEC-10.]
  961. 0Kermit-MS>bye                 ; Shut down the DEC-10 Kermit & session, PC Kermit.
  962. +          ___
  963.  A>                            ; Back at PC-DOS automatically.
  964. 0[Here you can do some work on the microcomputer, edit files, etc.]
  965. -
  966. -
  967. -
  968. -
  969. -
  970. -
  971. -
  972. -
  973. 0                                                  Section 2 -- How to Use Kermit
  974. 122                                                  Kermit File Transfer Package
  975. -
  976.  2.3.1.2.  Transfer Files Between the DEC-10 and IBM PC Using Send/Receive
  977. 0User responses are underlined  notes are enclosed in brackets or are  listed  to
  978. +                   __________,
  979.  the far right of the relevant input/output.
  980. 0A>k_____                      ; Start Kermit on the IBM PC.
  981. +  _ermit
  982.  IBM-PC Kermit-MS V2.29   26 May 86
  983.  Type ? for help
  984. 0Kermit-MS>comment           DO WYLBUR for WYLBUR
  985.  Kermit-MS>comment           DO DEC10  for DEC-10
  986.  Kermit-MS>comment           DO TSO    for TSO
  987.  Kermit-MS>comment           DO 3270   for Protocol Conversion Facility
  988.  Kermit-MS>                    ; This is the Kermit prompt for the PC.
  989.  Kermit-MS>do _____            ; Set Kermit parameters for the DEC-10.
  990. +          ___dec10
  991. 0[Commands issued from the DEC10 macro are displayed]
  992. 0Kermit-MS>connect             ; Connect to the communications line.
  993. +          _______
  994. 0[The screen changes to the display of the terminal being emulated.]
  995. 0ATDT49_2222                   ; Issue modem command to dial the DEC-10.
  996. +______2____
  997. 0[Assumes Hayes-compatible modem; dial 492-2222 using a  manual  dial  modem;  if
  998.   using  an  AT&T  2224B  modem,  type  AT4922222 or use the interactive commands
  999.   described in the NIH Terminal Operators Guide.]
  1000. 0[Various modem messages]
  1001. 0CONNECT                       ; You are now connected to the DEC-10.
  1002. 0[Type a carriage return.]
  1003. 0NIH Timesharing               ; The DEC-10 system prints its herald.
  1004. 0NIH Tri-SMP 7.02-GG      15:35:24 TTY24 system 1378/1381/1453
  1005.  Connected to Node GRUMPY(42) Line # 12
  1006.  Please LOGIN or ATTACH
  1007. 0.login prj,prg                ; Login with your PPN.
  1008. + _____________
  1009.  JOB 56 NIH Tri-SMP 7.02-GG      TTY24
  1010.  Password:______               ; Enter your password.
  1011. 0[DEC-10 messages related to login]
  1012. 0.r ______                     ; Start Kermit on the DEC-10.
  1013. + __kermit
  1014. 0TOPS-10 KERMIT version 3(133)
  1015. 0[Issue SET commands as needed.  If you want to transfer binary data, originating
  1016. -
  1017. 0How to Use Kermit -- Section 2
  1018. 1Kermit File Transfer Package                                                  23
  1019. -
  1020.   on the PC, change the FILE BYTE-SIZE setting to 8 (i.e., SET FILE BYTE-SIZE 8).
  1021.   All parameter values that you want to change must  be  set  before  the  remote
  1022.   Kermit  is  issued  the  SEND  command.   These parameters and their values are
  1023.   described under the SET command in the DECsystem-10 Kermit section.]
  1024. 0Kermit-10>send ________       ; Send the DEC-10 file named test.rpt.
  1025. +          _____test.rpt
  1026.  X]c                           ; Now escape back to the microcomputer.
  1027. +___
  1028. 0[Back to the microcomputer.]
  1029. 0Kermit-MS>receive             ; Tell the IBM PC a file is coming.
  1030. +          _______
  1031. 0[PC screen shows file transfer status during download of the DEC-10 file to  the
  1032.   IBM PC.]
  1033. 0Kermit-MS>connect             ; Connect to the DEC-10.
  1034. +          _______
  1035. 0[The screen changes to the display of the terminal being emulated.]
  1036. 0[In this example DECsystem-10 Kermit is reset to receive a PC binary file.]
  1037. 0Kermit-10>set file byte-size 8  ; Set parameter for PC binary file transfer.
  1038. +          ____________________
  1039.  Kermit-10>receive             ; Tell the DEC-10 a file is coming.
  1040. +          _______
  1041.  X]c                           ; Now escape back to the microcomputer.
  1042. +___
  1043. 0[Back to the microcomputer.]
  1044. 0Kermit-MS>set eof noctrl-z    ; Set end of file handling for binary file.
  1045. +          ________________
  1046.  Kermit-MS>send _____dat       ; Send the IBM PC file named test.dat.
  1047. +          _____test.___
  1048. 0[PC screen shows file transfer status during upload of the IBM PC  file  to  the
  1049.   DEC-10.]
  1050. 0Kermit-MS>connect             ; Connect to the DEC-10.
  1051. +          _______
  1052. 0[The screen changes to the display of the terminal being emulated.]
  1053. 0Kermit-10>quit                ; Get out of the DEC-10 Kermit.
  1054. +          ____
  1055. 0.kjob__                       ; Logout.
  1056. + ____/d
  1057. 0[DEC-10 messages related to logout]
  1058. 0X]c                           ; Now escape back to the microcomputer.
  1059. +___
  1060. 0[Back to the microcomputer.]
  1061. 0Kermit-MS>quit                ; Shut down the PC Kermit.
  1062. +          ____
  1063.  A>                            ; Back at PC-DOS.
  1064. 0[Here you can do some work on the microcomputer, edit files, etc.]
  1065. -
  1066. 0                                                  Section 2 -- How to Use Kermit
  1067. 124                                                  Kermit File Transfer Package
  1068. -
  1069.  2.3.2.  IBM PC to TSO Connection
  1070. -2.3.2.1.  Transfer Files Between TSO and IBM PC Using Server Mode
  1071. 0User responses are underlined  notes are enclosed in brackets or are  listed  to
  1072. +                   __________,
  1073.  the far right of the relevant input/output.
  1074. 0A>k_____                      Start Kermit on the IBM PC.
  1075. +  _ermit
  1076.  IBM-PC Kermit-MS V2.29   26 May 86
  1077.  Type ? for help
  1078. 0Kermit-MS>comment           DO WYLBUR for WYLBUR
  1079.  Kermit-MS>comment           DO DEC10  for DEC-10
  1080.  Kermit-MS>comment           DO TSO    for TSO
  1081.  Kermit-MS>comment           DO 3270   for Protocol Conversion Facility
  1082.  Kermit-MS>                    This is the Kermit prompt for the PC.
  1083.  Kermit-MS>do ___              Set Kermit parameters for TSO.
  1084. +          ___tso
  1085. 0[Commands issued from TSO macro are displayed]
  1086. 0Kermit-MS>connect             Connect to the communications line.
  1087. +          _______
  1088. 0[The screen changes to the display of the terminal being emulated.]
  1089. 0ATDT49_____                   Issue modem command to dial TSO.
  1090. +______22223
  1091. 0[Assumes Hayes-compatible modem; dial 492-2223 using a  manual  dial  modem;  if
  1092.   using  an  AT&T  2224B  modem,  type  AT4922223 or use the interactive commands
  1093.   described in the NIH Terminal Operators Guide.]
  1094. 0[Various modem messages]
  1095. 0CONNECT                       You are now connected to TSO.
  1096.  logon                         Start the TSO LOGON process.
  1097. +_____
  1098.  INITIALS? iii
  1099. +          ___
  1100.  ACCOUNT? aaaa
  1101. +         ____
  1102.  KEYWORD? kkk
  1103. +         ___
  1104.  TERMINAL? none
  1105. +          ____
  1106.  BOX? bbb
  1107. +     ___
  1108.  AAAAIII LOGON IN PROGRESS AT 11:26:19 ON JUNE 11, 1986
  1109.   NIH/DCRT/CCB TSO
  1110. 0[TSO messages related to logon]
  1111. 0READY                         TSO LOGON process complete.
  1112.  kermit                        Start TSO Kermit.
  1113. +______
  1114.  NIH KERMIT-TSO VERSION 1.0
  1115. 0[Issue SET commands as needed.  If you want to transfer binary data rather  than
  1116.   text  data, change the DATA setting (e.g., SET DATA BINARY).  If you want files
  1117.   that are transferred to TSO to not be stored  on  the  TMP  volumes,  you  must
  1118. -
  1119.  How to Use Kermit -- Section 2
  1120. 1Kermit File Transfer Package                                                  25
  1121. -
  1122.   change  the  VOLUME setting (e.g., SET VOLUME FILE21), as in this example.  All
  1123.   parameter values that you want to change must be set before the  remote  Kermit
  1124.   is  placed  in  server  mode.   These parameters and their values are described
  1125.   under the SET command in the TSO Kermit section.]
  1126. 0KERMIT-TSO> set vol    file21 Tell TSO Kermit where to put data sets.
  1127. +            _______ume
  1128. +                   __________
  1129.  KERMIT-TSO> server            Tell TSO Kermit to be a server.
  1130. +            ______
  1131.   Now entering SERVER mode - type FINISH or LOGOUT on micro to halt SERVER
  1132.  X]c                           Now escape back to the microcomputer.
  1133. +___
  1134. 0[Back to the microcomputer.]
  1135. 0Kermit-MS>get ________        Get the TSO file named TEST.PLI.
  1136. +          ____test.pli
  1137. 0[PC screen shows file transfer status during download of the TSO data set to the
  1138.   IBM PC.]
  1139. 0Kermit-MS>send test.for       Send the IBM PC file named TEST.FOR.
  1140. +          _____________
  1141. 0[PC screen shows file transfer status during upload of the IBM PC file to TSO.]
  1142. 0Kermit-MS>bye                 Shut down TSO Kermit & session, PC Kermit.
  1143. +          ___
  1144.  A>                            Back at PC-DOS automatically.
  1145. 0[Here you can do some work on the microcomputer, edit files, etc.]
  1146. -
  1147. -
  1148. -
  1149. -
  1150. -
  1151. -
  1152. -
  1153. -
  1154. -
  1155. -
  1156.                                                    Section 2 -- How to Use Kermit
  1157. 126                                                  Kermit File Transfer Package
  1158. -
  1159.  2.3.2.2.  Transfer Files Between TSO and IBM PC Using Send/Receive
  1160. 0User responses are underlined  notes are enclosed in brackets or are  listed  to
  1161. +                   __________,
  1162.  the far right of the relevant input/output.
  1163. 0A>k_____                      Start Kermit on the IBM PC.
  1164. +  _ermit
  1165.  IBM-PC Kermit-MS V2.29   26 May 86
  1166.  Type ? for help
  1167. 0Kermit-MS>comment           DO WYLBUR for WYLBUR
  1168.  Kermit-MS>comment           DO DEC10  for DEC-10
  1169.  Kermit-MS>comment           DO TSO    for TSO
  1170.  Kermit-MS>comment           DO 3270   for Protocol Conversion Facility
  1171.  Kermit-MS>                    This is the Kermit prompt for the PC.
  1172.  Kermit-MS>do ___              Set Kermit parameters for TSO.
  1173. +          ___tso
  1174. 0[Commands issued from TSO macro are displayed]
  1175. 0Kermit-MS>connect             Connect to the communications line.
  1176. +          _______
  1177. 0[The screen changes to the display of the terminal being emulated.]
  1178. 0ATDT49_____                   Issue modem command to dial TSO.
  1179. +______22223
  1180. 0[Assumes Hayes-compatible modem; dial 492-2223 using a  manual  dial  modem;  if
  1181.   using  an  AT&T  2224B  modem,  type  AT4922223 or use the interactive commands
  1182.   described in the NIH Terminal Operators Guide.]
  1183. 0[Various modem messages]
  1184. 0CONNECT                       You are now connected to TSO.
  1185.  logon                         Start the TSO LOGON process.
  1186. +_____
  1187.  INITIALS? iii
  1188. +          ___
  1189.  ACCOUNT? aaaa
  1190. +         ____
  1191.  KEYWORD? kkk
  1192. +         ___
  1193.  TERMINAL? none
  1194. +          ____
  1195.  BOX? bbb
  1196. +     ___
  1197.  AAAAIII LOGON IN PROGRESS AT 11:26:19 ON JUNE 11, 1986
  1198.   NIH/DCRT/CCB TSO
  1199. 0[TSO messages related to logon]
  1200. 0READY                         TSO LOGON process complete.
  1201.  kermit                        Start TSO Kermit.
  1202. +______
  1203.  NIH KERMIT-TSO VERSION 1.0
  1204. 0[Issue SET commands as needed.  If you want to transfer binary data rather  than
  1205.   text  data,  change  the  DATA  setting (e.g., SET DATA BINARY).  All parameter
  1206.   values that you want to change must be set before the SEND command is issued to
  1207.   the  remote  Kermit.  These parameters and their values are described under the
  1208.   SET command in the TSO Kermit section.]
  1209. -
  1210. 0How to Use Kermit -- Section 2
  1211. 1Kermit File Transfer Package                                                  27
  1212. -
  1213.  KERMIT-TSO> send _______      Send the TSO file named DB2.RPT.
  1214. +            _____db2.rpt
  1215.  X]c                           Now escape back to the microcomputer.
  1216. +___
  1217. 0[Back to the microcomputer.]
  1218. 0Kermit-MS>receive             Tell the PC that a file is coming.
  1219. +          _______
  1220. 0[PC screen shows file transfer status during download of the TSO data set to the
  1221.   IBM PC.]
  1222. 0Kermit-MS>connect             Connect to TSO.
  1223. +          _______
  1224. 0[The screen changes to the display of the terminal being emulated.]
  1225. 0[Issue SET commands as needed.  If you want to transfer binary data rather  than
  1226.   text data, change the DATA setting (e.g., SET DATA BINARY), as in this example.
  1227.   If you want files that are transferred to TSO to  not  be  stored  on  the  TMP
  1228.   volumes,  you  must  change the VOLUME setting (e.g., SET VOLUME FILE21), as in
  1229.   this example.  All parameter values that you want to change must be set  before
  1230.   the RECEIVE command is issued to the remote Kermit.  These parameters and their
  1231.   values are described under the SET command in the TSO Kermit section.]
  1232. 0KERMIT-TSO> set data binary   Set parameter for binary file transfer.
  1233. +            _______________
  1234.  KERMIT-TSO> set vol    file21 Tell TSO Kermit where to put data sets.
  1235. +            _______ume
  1236. +                   __________
  1237.  KERMIT-TSO> receive           Tell TSO Kermit a file is coming.
  1238. +            _______
  1239.  X]c                           Now escape back to the microcomputer.
  1240. +___
  1241. 0[Back to the microcomputer.]
  1242. 0Kermit-MS>set eof noctrl-z    Set end of file handling for binary file.
  1243. +          ________________
  1244.  Kermit-MS>send _________      Send the IBM PC file TEST5.DAT.
  1245. +          _____test5.dat
  1246. 0[PC screen shows file transfer status during upload of the IBM PC file to TSO.]
  1247. 0Kermit-MS>connect             Connect to TSO.
  1248. +          _______
  1249. 0[The screen changes to the display of the terminal being emulated.]
  1250. 0KERMIT-TSO> quit              Get out of TSO Kermit.
  1251. +            ____
  1252. 0READY
  1253.  logoff                        Logoff from TSO.
  1254. +______
  1255. 0[TSO messages related to logoff]
  1256. 0X]c                           Now escape back to the microcomputer.
  1257. +___
  1258. 0[Back to the microcomputer.]
  1259. 0Kermit-MS>quit                Shut down the PC Kermit.
  1260. +          ____
  1261.  A>                            Back at PC-DOS automatically.
  1262. -
  1263. 0                                                  Section 2 -- How to Use Kermit
  1264. 128                                                  Kermit File Transfer Package
  1265. -
  1266.  [Here you can do some work on the microcomputer, edit files, etc.]
  1267. -
  1268. -
  1269. -
  1270. -
  1271. -
  1272. -
  1273. -
  1274. -
  1275. -
  1276. -
  1277. -
  1278. -
  1279. -
  1280. -
  1281. -
  1282. -
  1283. -
  1284. -
  1285.  How to Use Kermit -- Section 2
  1286. 1Kermit File Transfer Package                                                  29
  1287. -
  1288.  3.  Kermit Commands
  1289. 0An "ideal" Kermit program will be described here, which has most of the features
  1290.  specified  in  the  Kermit Protocol Manual (available from Columbia University).
  1291.  No Kermit program will have all these commands or  support  all  these  options.
  1292.  The exact form of some of the commands may differ from version to version.  Some
  1293.  Kermit programs may support system-dependent options not  described  here.   The
  1294.  intention  of  this  description is to provide a base from which specific Kermit
  1295.  programs can be described in terms of their differences from the "ideal."
  1296. -
  1297. -
  1298. -
  1299. -
  1300. -
  1301. -
  1302. -
  1303. -
  1304. -
  1305. -
  1306. -
  1307. -
  1308. -
  1309. -
  1310. -
  1311. 0                                                    Section 3 -- Kermit Commands
  1312. 130                                                  Kermit File Transfer Package
  1313. -
  1314.  3.1.  Remote and Local Operation
  1315. 0In any connection between two Kermit programs, one  Kermit  is  remote  and  the
  1316.  other  is local.  The remote Kermit is usually running on a mainframe, which you
  1317.  have CONNECTed to through a PC or other computer.  When  Kermit  runs  remotely,
  1318.  all  file  transfer is done over the job's controlling terminal line -- the same
  1319.  line over which you logged in, and to which you would type interactive commands.
  1320.  What  the  system  thinks is your terminal is really another computer, usually a
  1321.  microcomputer, running its own copy of Kermit.
  1322. 0When Kermit is in "local mode," file transfer is done over an  external  device,
  1323.  such  as  a  microcomputer's  serial communication port, or an assigned terminal
  1324.  line on a mainframe.  The local Kermit is connected  in  some  way  (such  as  a
  1325.  dialout mechanism) to another computer, again running its own copy of Kermit.  A
  1326.  local Kermit is in control of the screen, a remote Kermit has no  direct  access
  1327.  to it.  Microcomputer Kermits are run in local mode unless instructed otherwise;
  1328.  mainframe Kermits run remotely unless some special command places them in  local
  1329.  mode.   Some commands make sense only for remote Kermits, others only for local,
  1330.  still others can be used with either.  Local and remote operation of  Kermit  is
  1331.  shown  schematically  here:  The Kermit program on the PC is a local Kermit.  It
  1332.  can control the screen, the keyboard, and the  communications  port  separately,
  1333.  thus  it  can  update  the  screen  with status information, watch for interrupt
  1334.  signals from the keyboard, and transfer packets on the communications port,  all
  1335.  at   the  same  time.   See  Figure  3.1  on  the  next  page  for  a  schematic
  1336.  representation of these relationships.
  1337. 0The Kermit program running on the mainframe is a remote Kermit.  The  user  logs
  1338.  in to the mainframe through a terminal port.  The host computer cannot tell that
  1339.  the user is really coming in through a microcomputer.  The keyboard, screen, and
  1340.  port  functions  are  all  combined  in  the  user's  mainframe  terminal  line.
  1341.  Therefore a remote Kermit is cut off from your screen and keyboard  during  file
  1342.  transfer.
  1343. -
  1344. -
  1345. -
  1346. -
  1347. -
  1348. -
  1349. -
  1350. -Kermit Commands -- Section 3
  1351. 1Kermit File Transfer Package                                                  31
  1352. -
  1353.  PC is Local, Mainframe is Remote:
  1354. 0             Communication
  1355.               Line                    (Packets)
  1356.               +---------------/  /-----------------+  Other terminals
  1357.               |                                    |  |  |  |
  1358.               |                                    |  |  |  |
  1359.     PC        |     LOCAL              Mainframe   |  |  |  |  REMOTE
  1360.    +----------+----------+            +------------+--+--+--+--------+
  1361.    |   Serial Port       |            |            |                 |
  1362.    |                     |            |            |                 |
  1363.    |                     |            |            |                 |
  1364.    |  +---------------+  |            |            Your session's    |
  1365.    |  | Packets: 724  |  |            |            terminal line     |
  1366.    |  | Retries:   7  |  |            |                              |
  1367.    |  | File: FOO.BAR |  |            |                              |
  1368.    |  +---------------+  |            |                              |
  1369.    |   Screen            |            |                              |
  1370.    |                     |            |                              |
  1371.    +---------------+-----+            +------------------------------+
  1372.                    |
  1373.                    | (Commands)
  1374.                    |
  1375.       +------------+---------+
  1376.        \       Keyboard       \
  1377.         +----------------------+
  1378.                    You
  1379. 0                     Figure 3-1:   Local and Remote Kermits
  1380. -
  1381. -
  1382. -
  1383. -
  1384. -
  1385. -
  1386. -
  1387. -
  1388. -                                                    Section 3 -- Kermit Commands
  1389. 132                                                  Kermit File Transfer Package
  1390. -
  1391.  3.2.  The Command Dialog
  1392. 0Most Kermit programs communicate  with  you  through  interactive  keyword-style
  1393.  command  dialog.  The program issues a prompt, indicating that it is waiting for
  1394.  you to type a command.  The prompt is usually of the form
  1395. 0                                   Kermit-xx>
  1396. 0where xx indicates the version  of  Kermit  --  Kermit-MS>  for  MS-DOS  Kermit,
  1397.  KERMIT-A2> for APPLE DOS Kermit, etc.
  1398. 0In response to the program's prompt you  may  type  a  keyword,  such  as  SEND,
  1399.  RECEIVE,  or EXIT, possibly followed by additional keywords or operands, each of
  1400.  which is called a field.  You can abbreviate keywords (but not  file  names)  to
  1401.  any length that makes them distinguishable from any other keyword valid for that
  1402.  field.  You can type a question mark at any time to get information about what's
  1403.  expected or valid at that point.  You can push the ESC (escape) key at any point
  1404.  in a command keyword, and Kermit will complete the  partially  entered  keyword.
  1405.  The  ESC  and  "?"   features  work best on full duplex systems (all but the IBM
  1406.  mainframe, so far), where the program can "wake up" immediately and perform  the
  1407.  required  function.   On half duplex or record-oriented systems, the ESC feature
  1408.  is not available, and the "?"  requires a carriage return to follow.
  1409. 0In the following example, the user types "set" and then a question mark to  find
  1410.  out  what the SET options are.  The user then continues the command at the point
  1411.  where the question mark was typed, adding a "d" and another question mark to see
  1412.  what  set  options  start  with  "d."   The  user  then  adds  a  "eb" to select
  1413.  "debugging" (the only SET option that starts with  "deb")  followed  by  an  ESC
  1414.  (shown  here  by  a  dollar  sign)  to  complete the current field, then another
  1415.  question mark to see what the possibilities are  for  the  next  field,  and  so
  1416.  forth.  The command is finally terminated by a carriage return.  Before carriage
  1417.  return is typed, however, the command can be edited or erased by backspacing and
  1418.  re-keying  the  command.   Finally,  the  same  command  is entered again with a
  1419.  minimum of keystrokes, with  each  field  abbreviated  to  its  shortest  unique
  1420.  length.
  1421. 0In the example, the parts the user types are underlined; all the rest is  system
  1422.  typeout:
  1423. -
  1424. -
  1425. -
  1426. -
  1427. -
  1428. -Kermit Commands -- Section 3
  1429. 1Kermit File Transfer Package                                                  33
  1430. -
  1431.    Kermit-10>set ? keyword (no defined keywords match this input)
  1432. +            _____
  1433.      or one of the following:
  1434.     block-check-type       debugging        delay
  1435.     escape                 file             handshake
  1436.     incomplete-file        line             local-echo
  1437.     message                parity           prompt
  1438.     receive                repeat           retry
  1439.     send                   server-timer     XON-XOFF-processing
  1440.    Kermit-10>set d? one of the following:
  1441. +            ______
  1442.     debugging   delay
  1443.    Kermit-10>set deb$       ?  one of the following:
  1444. +            ________ugging _
  1445.     log-file     no-log-file  off          on
  1446.     full   half
  1447.    Kermit-10>set deb of
  1448. +            __________
  1449. -
  1450. -
  1451. -
  1452. -
  1453. -
  1454. -
  1455. -
  1456. -
  1457. -
  1458. -
  1459. -
  1460. -
  1461. -
  1462. -                                                    Section 3 -- Kermit Commands
  1463. 134                                                  Kermit File Transfer Package
  1464. -
  1465.  3.3.  Notation
  1466. 0In the command descriptions, the following notation is used:
  1467. 0anything    A parameter - A field not enclosed in brackets or braces is replaced
  1468.              by an argument of the specified type (number, filename, etc.).
  1469. 0[anything]  A field enclosed in square brackets is optional.   If  omitted,  the
  1470.              field  defaults  to  an  appropriate  value.   You  don't  type  the
  1471.              brackets.
  1472. 0$x,y,z     A list of alternatives is enclosed in curly braces; you type one  of
  1473.              the alternatives.
  1474. 0number      A whole number, entered in the prevailing notation of the system.
  1475. 0character   A single character, entered literally, or as a number (perhaps octal
  1476.              or hexadecimal) representing the ASCII value of the character.
  1477. 0floating-point-number
  1478. 0            A  "real"  number,  possibly  containing  a  decimal  point  and   a
  1479.              fractional part.
  1480. 0filespec    A file specification, i.e., the name of a file, possibly including a
  1481.              search   path,   device  or  directory  name,  or  other  qualifying
  1482.              information, and possibly containing "wildcard" or  pattern-matching
  1483.              characters to denote a group of files.
  1484. 0XX          A control character  may  be  written  using  "uparrow"  or  "caret"
  1485.              notation,  since  many  systems display control characters this way.
  1486.              Control characters are produced by holding down the key marked  CTRL
  1487.              or Control and typing the appropriate character, e.g. X.
  1488. -Commands are shown in upper case, but can be entered in any combination of upper
  1489.  and lower case.
  1490. -
  1491. -
  1492. -
  1493. -
  1494. -
  1495. -
  1496.  Kermit Commands -- Section 3
  1497. 1Kermit File Transfer Package                                                  35
  1498. -
  1499.  3.4.  Summary of Kermit Commands
  1500. 0Here is a brief list of Kermit commands as they are to be found in  most  Kermit
  1501.  programs.  The following sections will describe these commands in detail.
  1502. -For exchanging files:
  1503. 0    SEND, RECEIVE, GET
  1504. -For connecting to a remote host:
  1505. 0    CONNECT, SET LINE, SET PARITY, SET DUPLEX,
  1506.      SET HANDSHAKE, SET ESCAPE,
  1507.      SET FLOW-CONTROL, SET SPEED (or BAUD)
  1508. -For acting as a server:
  1509. 0    SERVER
  1510. -For talking to a server:
  1511. 0    BYE OR LOGOUT, FINISH, GET, SEND, REMOTE
  1512. -Setting non-standard transmission and file parameters:
  1513. 0    SET BLOCK-CHECK, SET DEBUG, SET DELAY, SET FILE,
  1514.      SET INCOMPLETE, SET PARITY, SET RETRY, SET SEND (or
  1515.      RECEIVE), END-OF-LINE, START-OF-PACKET,
  1516.      PACKET-LENGTH, PAUSE, TIMEOUT, PADDING
  1517. -For defining "macros" of commands:
  1518. 0    DEFINE
  1519. -For interrupting transmission:
  1520. 0    Control-X, Control-Z, Control-C, Control-E
  1521. -Getting information:
  1522. 0    HELP, STATISTICS, SHOW
  1523. -
  1524. -
  1525.                                                      Section 3 -- Kermit Commands
  1526. 136                                                  Kermit File Transfer Package
  1527. -
  1528.  Executing command files:
  1529. 0    TAKE
  1530. -For recording the history of a file transfer operation:
  1531. 0    LOG TRANSACTIONS
  1532. -For non-protocol file capture or transmission:
  1533. 0    LOG SESSION, TRANSMIT, INPUT, OUTPUT, PAUSE, CLEAR, SCRIPT
  1534. -For closing log files:
  1535. 0    CLOSE
  1536. -Leaving the program:
  1537. 0    EXIT, QUIT
  1538. -If you have a file called KERMIT.INI in your default or home disk,  Kermit  will
  1539.  execute  an  automatic  TAKE command on it upon initial startup.  KERMIT.INI may
  1540.  contain any Kermit commands, for instance SET commands, or DEFINEs for macros to
  1541.  configure  Kermit  to  various  systems  or  communications  media.  Note:  Your
  1542.  particular implementation of Kermit may use a different name for this file.  The
  1543.  NIH Computer Center supplies a suitable file on the Kermit distribution diskette
  1544.  for the IBM PC.
  1545. -
  1546. -
  1547. -
  1548. -
  1549. -
  1550. -
  1551. -
  1552. -Kermit Commands -- Section 3
  1553. 1Kermit File Transfer Package                                                  37
  1554. -
  1555.  3.5.  The SEND Command
  1556. 0Syntax:
  1557. 0Sending a single file:
  1558. 0    SEND nonwild-filespec1 [filespec2]
  1559. -Sending multiple files:
  1560. 0    SEND wild-filespec1 [filespec2]
  1561. -The SEND command causes a file or file group to be sent  to  the  other  system.
  1562.  There  are  two  forms  of  the command, depending on whether filespec1 contains
  1563.  "wildcard" characters.  Use of wildcard characters is the most common method  of
  1564.  indicating  a  group  of  files in a single file specification.  For instance if
  1565.  FOO.FOR is a single file, a FORTRAN program named FOO, then  *.FOR  might  be  a
  1566.  group of FORTRAN programs.
  1567. -    Sending a File Group --
  1568. 0If filespec1 contains wildcard characters then all matching files will be  sent,
  1569.  in  directory-listing order.  If a file can't be opened for READ access, it will
  1570.  be skipped.  Some Kermit programs allow the initial file in a wildcard group  to
  1571.  be  specified with the optional filespec2.  This allows a previously interrupted
  1572.  wildcard transfer to continue from where it left off, or it can be used to  skip
  1573.  some files that would be transmitted first.
  1574. -    Sending a Single File --
  1575. 0If filespec1 does not contain any wildcard  characters,  then  the  single  file
  1576.  specified  by  filespec1  will  be  sent.   Optionally, filespec2 may be used to
  1577.  specify the name under  which  the  file  will  arrive  at  the  target  system;
  1578.  filespec2  is  not  parsed or validated locally in any way.  If filespec2 is not
  1579.  specified, the file will be sent with its own name.
  1580. -    SEND Command General Operation --
  1581. 0Files will be sent with their filename and filetype (for  instance  FOO.BAR,  no
  1582.  device   or   directory   field,   no  generation  number  or  attributes).   If
  1583.  communication line parity is being used (see SET  PARITY),  the  sending  Kermit
  1584.  will  request that the other Kermit accept a special kind of prefix notation for
  1585.  binary files.  This is an advanced feature, and not all Kermits have it; if  the
  1586.  other  Kermit  does  not  agree to use this feature, binary files cannot be sent
  1587.  correctly.
  1588. -
  1589. -                                                    Section 3 -- Kermit Commands
  1590. 138                                                  Kermit File Transfer Package
  1591. -
  1592.  The sending Kermit will also ask the  other  Kermit  whether  it  can  handle  a
  1593.  special  prefix  encoding  for  repeated characters.  If it can, then files with
  1594.  long strings of  repeated  characters  will  be  transmitted  very  efficiently.
  1595.  Columnar   data,   highly   indented  text,  and  binary  files  are  the  major
  1596.  beneficiaries of this technique.
  1597. -    SEND Remote Operation --
  1598. 0If you are running Kermit remotely (for instance,  from  a  microcomputer),  you
  1599.  should "escape back" to your local Kermit within a reasonable amount of time and
  1600.  give the RECEIVE command.  Don't take more than a minute or two to complete  the
  1601.  switch,  or  Kermit  may  "time out" and give up.  (In that case, you'll have to
  1602.  CONNECT back to the remote system and reissue the SEND command.)
  1603. -    SEND Local Operation --
  1604. 0If you're running Kermit locally, for instance on a  microcomputer,  you  should
  1605.  have  already  run  Kermit on the remote system and issued either a RECEIVE or a
  1606.  SERVER command.
  1607. 0Once you give Kermit the SEND command, the name of each file will be printed  on
  1608.  your  screen  as  the  transfer  begins,  and  information  will be displayed to
  1609.  indicate the packet traffic.  When the  specified  operation  is  complete,  the
  1610.  program  will sound a beep, and the status of the operation will be indicated by
  1611.  a message like OK, Complete, Interrupted, or Failed.
  1612. 0If you see many packet retry indications, you  are  probably  suffering  from  a
  1613.  noisy  connection.   You may be able to cut down on the retransmissions by using
  1614.  SET SEND PACKET-LENGTH to decrease the  packet  length;  this  will  reduce  the
  1615.  probability  that a given packet will be corrupted by noise, and reduce the time
  1616.  required to retransmit a corrupted packet.
  1617. 0If you notice a file being sent which you do not really want to  send,  you  may
  1618.  cancel  the  operation  immediately by typing either Control-X or Control-Z.  If
  1619.  you are sending a file group, Control-X  will  cause  the  current  file  to  be
  1620.  skipped,  and  Kermit will go on to the next file, whereas Control-Z will cancel
  1621.  sending the entire group and return you to Kermit command level.
  1622. -
  1623. -
  1624. -
  1625. -
  1626. -
  1627. 0Kermit Commands -- Section 3
  1628. 1Kermit File Transfer Package                                                  39
  1629. -
  1630.  3.6.  The RECEIVE Command
  1631. 0Syntax:  RECEIVE [filespec]
  1632. 0The RECEIVE command tells Kermit to wait for the arrival of a file or file group
  1633.  sent  by  a  SEND  command  from  the  other  system.  If only one file is being
  1634.  received, you may include the  optional  filespec  as  the  name  to  store  the
  1635.  incoming file under; otherwise, the name is taken from the incoming file header.
  1636.  If the name in the header is not a legal file name on the local  system,  Kermit
  1637.  will attempt to transform it to a legal name.
  1638. 0If an incoming file has the same name as an existing file,  Kermit  will  either
  1639.  overwrite the old file or else try to create a new unique name, depending on the
  1640.  setting of FILE WARNING.
  1641. 0If you have SET PARITY, then 8th-bit prefixing will be requested.  If the  other
  1642.  side  cannot do this, binary files cannot be transferred correctly.  The sending
  1643.  Kermit may also request that repeated characters be compressed.
  1644. 0If an incoming file does not  arrive  in  its  entirety,  Kermit  will  normally
  1645.  discard  it; it will not appear in your directory.  You may change this behavior
  1646.  by using the command SET INCOMPLETE KEEP, which will cause as much of  the  file
  1647.  as arrived to be saved in your directory.
  1648. -    RECEIVE Remote Operation --
  1649. 0If you are running Kermit remotely, you should escape back to your local  Kermit
  1650.  and  give the SEND command.  You should do this within about two minutes, or the
  1651.  protocol may time out and give up; if this happens, you can CONNECT back to  the
  1652.  remote system and reissue the RECEIVE command.
  1653. -    RECEIVE Local Operation --
  1654. 0If you are running Kermit locally, you should already have issued a SEND command
  1655.  to  the  remote  Kermit, and then escaped back to the host Kermit.  (You can not
  1656.  issue a RECEIVE command to a Kermit server, you must use  the  GET  command  for
  1657.  that.)
  1658. 0As files arrive, their names  will  be  shown  on  your  screen,  along  with  a
  1659.  continuous display of the packet traffic.
  1660. 0If a file begins to arrive that you don't really want, you can attempt to cancel
  1661.  it  by typing Control-X; this sends a cancellation request to the remote Kermit.
  1662.  If the remote Kermit understands this request (not all implementations of Kermit
  1663.  support this feature), it will comply; otherwise it will continue to send.  If a
  1664.  file group is being sent, you can request  the  entire  group  be  cancelled  by
  1665.  typing Control-Z.
  1666. -
  1667. -
  1668.                                                      Section 3 -- Kermit Commands
  1669. 140                                                  Kermit File Transfer Package
  1670. -
  1671.  3.7.  GET
  1672. 0LOCAL ONLY -- Syntax: GET [remote-filespec]
  1673. 0The GET command requests a remote Kermit server to send the file or  file  group
  1674.  specified  by remote-filespec.  Note the distinction between the RECEIVE and GET
  1675.  commands:  RECEIVE  instructs  the  program  to  wait  passively;  whereas,  GET
  1676.  actively sends a request to a server.
  1677. 0The GET command can be used only when Kermit is local, with a Kermit  server  on
  1678.  the other end of the line.  This means that you must have CONNECTed to the other
  1679.  system, logged in, run Kermit there, issued the SERVER command, and escaped back
  1680.  to the local Kermit.
  1681. 0The remote filespec is any string that can be a legal file specification for the
  1682.  remote  system;  it  is not parsed or validated locally.  As files arrive, their
  1683.  names will be displayed on your screen, along with a  continuous  indication  of
  1684.  the  packet  traffic.   As  in  the  RECEIVE  command, you may type Control-X to
  1685.  request that the current incoming file be cancelled,  or  Control-Z  to  request
  1686.  that the entire incoming batch be cancelled.
  1687. 0Optional Syntax:  If you are requesting a single file,  you  may  type  the  GET
  1688.  command  without  a  filespec.  In that case, Kermit programs that implement the
  1689.  optional GET syntax will prompt you for the remote filespec  on  the  subsequent
  1690.  line, and the name to store it under when it arrives on the line after that:
  1691. -  Kermit-MS>get
  1692. +            ___
  1693.     Remote Source File: aux.txt
  1694. +                       _______
  1695.     Local Destination File: auxfile.txt
  1696. +                           ___________
  1697. -
  1698. -
  1699. -
  1700. -
  1701. -
  1702. -
  1703. -
  1704. -
  1705. 0Kermit Commands -- Section 3
  1706. 1Kermit File Transfer Package                                                  41
  1707. -
  1708.  3.8.  SERVER
  1709. 0Syntax:  SERVER
  1710. 0The SERVER command instructs Kermit to cease taking commands from  the  keyboard
  1711.  and  to  receive  all  further  instructions  in the form of Kermit packets from
  1712.  another system.  The other Kermit must  have  commands  for  communicating  with
  1713.  remote servers; these include GET, SEND, FINISH, and BYE or LOGOUT.
  1714. 0After issuing this command, return to the "client" system and issue  SEND,  GET,
  1715.  BYE,  LOGOUT,  FINISH,  or  other  server-directed commands from there.  If your
  1716.  local Kermit does not have a BYE command, then it does not have the full ability
  1717.  to  communicate  with  a  Kermit server and you should not put the remote Kermit
  1718.  into SERVER mode.  If your local Kermit does have a BYE command, use it to  shut
  1719.  down and log out the Kermit server when you are done with it.
  1720. 0Any non-standard parameters should be selected with SET commands before  putting
  1721.  Kermit in server mode.
  1722. -3.9.  BYE
  1723. 0LOCAL ONLY -- Syntax:  BYE
  1724. 0When running as a local Kermit talking to a Kermit server, use the  BYE  command
  1725.  to  shut  down  and  log out the server.  This will also close any debugging log
  1726.  files and exit from the local Kermit.
  1727. -3.10.  FINISH
  1728. 0LOCAL ONLY -- Syntax:  FINISH
  1729. 0When running as a local Kermit talking to a remote Kermit server use the  FINISH
  1730.  command  to shut down the server without logging out the remote job, so that you
  1731.  can CONNECT back to it.  Also, close any local debugging log file.
  1732. -
  1733. -
  1734. -
  1735. -
  1736. -
  1737. -
  1738. 0                                                    Section 3 -- Kermit Commands
  1739. 142                                                  Kermit File Transfer Package
  1740. -
  1741.  3.11.  REMOTE
  1742. 0LOCAL ONLY -- Syntax:  REMOTE command
  1743. 0When running as a local Kermit talking to a remote Kermit server, use the REMOTE
  1744.  command  to  request special functions of the remote server.  If the server does
  1745.  not understand the command or offer the requested service (all of these commands
  1746.  and services are optional features of the Kermit protocol), it will reply with a
  1747.  message like "Unknown Kermit Server Command."  If does understand, it will  send
  1748.  the results back, and they will be displayed on the screen.  The REMOTE commands
  1749.  are:
  1750. -REMOTE CWD [directory]
  1751. 0     Change Working Directory.  If no directory name  is  provided,  the  server
  1752.       will  change to the default directory.  Otherwise, you will be prompted for
  1753.       a password, and  the  server  will  attempt  to  change  to  the  specified
  1754.       directory.   If access is not granted, the server will provide a message to
  1755.       that effect.
  1756. -REMOTE DELETE filespec
  1757. 0     Delete the specified file or files.   The  names  of  the  files  that  are
  1758.       deleted should be displayed on your screen.
  1759. -REMOTE DIRECTORY [filespec]
  1760. 0     The names of the files that match the  given  file  specification  will  be
  1761.       displayed  on your screen, possibly along with additional information about
  1762.       file sizes and dates.  If no file specification is given,  all  files  from
  1763.       the current directory will be listed.
  1764. -REMOTE SPACE [directory]
  1765. 0     Information about disk usage in the  current  remote  directory  --  quota,
  1766.       current  storage, or amount of remaining free space -- is displayed on your
  1767.       screen.
  1768. -REMOTE HELP
  1769. 0     A list of available server functions is displayed.
  1770. -REMOTE HOST [command]
  1771. 0     The given command is passed to the server's host command processor, and the
  1772.       resulting output is displayed on your screen.
  1773. -
  1774.  Kermit Commands -- Section 3
  1775. 1Kermit File Transfer Package                                                  43
  1776. -
  1777.  REMOTE Kermit [command]
  1778. 0     The  given  command,  which  is  expressed  in  the  server  Kermit's   own
  1779.       interactive-mode  command  syntax,  is  passed to the server for execution.
  1780.       This is useful for changing settings, logging, and other functions.
  1781. -REMOTE RUN program-name [command-line-argument]
  1782. 0     The remote Kermit is asked to run the indicated program with the  indicated
  1783.       command line; the program's terminal output is sent back to your screen.
  1784. -REMOTE PROGRAM [command]
  1785. 0     The command is sent to the  program  started  by  most  recent  REMOTE  RUN
  1786.       program,  and  the  program's  response  is displayed on the screen.  If no
  1787.       command is given, a newline character is sent.
  1788. -REMOTE TYPE filespec
  1789. 0     The contents of the specified file is displayed on your screen.
  1790. -
  1791. -
  1792. -
  1793. -
  1794. -
  1795. -
  1796. -
  1797. -
  1798. -
  1799. -
  1800. -                                                    Section 3 -- Kermit Commands
  1801. 144                                                  Kermit File Transfer Package
  1802. -
  1803.  3.12.  LOCAL
  1804. 0Syntax: LOCAL command
  1805. 0Execute the specified command on the local system -- on the system where  Kermit
  1806.  to  which  your are typing this command is running.  These commands provide some
  1807.  local file management capability without having to  leave  the  Kermit  program,
  1808.  which  is  particularly  useful  on  microcomputers.  The LOCAL prefix for these
  1809.  commands can be omitted.
  1810. -CWD [directory]
  1811. 0     "Change Working Directory" to the specified directory.
  1812. -DELETE filespec
  1813. 0     Delete the specified file or files.
  1814. -DIRECTORY [filespec]
  1815. 0     Provide a directory listing of the specified files.
  1816. -SPACE
  1817. 0     Display local disk usage and/or free space.
  1818. -RUN filespec [operands]
  1819. 0     Run the indicated program with the supplied command-line operands.
  1820. -PUSH
  1821. 0     Invoke the local system command interpreter in  such  a  way  that  it  can
  1822.       return (or "pop" or "exit") back to Kermit.
  1823. -Some Kermit programs may provide commands for these or other  functions  in  the
  1824.  syntax  of  their own system, when this would cause no confusion.  For instance,
  1825.  CP/M Kermit may use ERA in place of LOCAL DELETE.
  1826. -
  1827. -
  1828. -
  1829. 0Kermit Commands -- Section 3
  1830. 1Kermit File Transfer Package                                                  45
  1831. -
  1832.  3.13.  CONNECT
  1833. 0LOCAL ONLY -- Syntax: CONNECT [terminal-designator]
  1834. 0Establish a  terminal  connection  to  the  system  at  the  other  end  of  the
  1835.  communication line.  On a microcomputer, this is normally the serial port.  On a
  1836.  mainframe, you will have to specify a terminal line number or other  identifier,
  1837.  either in the CONNECT command itself, or in a SET LINE command.  Get back to the
  1838.  local Kermit by typing the escape  character  followed  by  a  single  character
  1839.  "command."  Several single-character commands are possible:
  1840. 0  C   Close the connection and return to the local Kermit.
  1841.    S   Show status of the connection.
  1842.    B   Send a BREAK signal.
  1843.    0   (zero) Send a NUL (0) character.
  1844.    D   Drop the line, hangup the modem.
  1845.    P   Push  to  the  local  system  command  processor  without   breaking   the
  1846.        connection.
  1847.    Q   Quit logging session transcript.
  1848.    R   Resume logging session transcript.
  1849.    ?   List all the possible single-character arguments.
  1850.    X]  (or whatever you have set the escape character to be)  Typing  the  escape
  1851.        character twice sends one copy of it to the connected host.
  1852. 0You can use the SET ESCAPE command to define a different escape  character,  and
  1853.  SET  PARITY,  SET DUPLEX, SET FLOW-CONTROL, SET HANDSHAKE to establish or change
  1854.  those parameters.
  1855. -3.14.  HELP
  1856. 0Syntax: HELP
  1857. 0Typing HELP alone prints a  brief  summary  of  Kermit  and  its  commands,  and
  1858.  possibly  instructions  for  obtaining  more detailed help on particular topics.
  1859.  Most Kermit implementations also allow the use  of  "?"   within  a  command  to
  1860.  produce a short help message.
  1861. -3.15.  TAKE
  1862. 0Syntax: TAKE filespec
  1863. 0Execute Kermit commands from the specified file.  The file may  contain  contain
  1864.  any valid Kermit commands, including other TAKE commands.
  1865. -3.16.  EXIT, QUIT
  1866. 0Syntax:  EXIT or QUIT
  1867. 0Exit from Kermit.  QUIT is a synonym for EXIT.
  1868. -
  1869.                                                      Section 3 -- Kermit Commands
  1870. 146                                                  Kermit File Transfer Package
  1871. -
  1872.  3.17.  The SET Command
  1873. 0Syntax: SET parameter [option] [value]
  1874. 0Establish or modify various parameters for file transfer or terminal connection.
  1875. 0When a file transfer operation begins, the two  Kermits  automatically  exchange
  1876.  special  initialization  messages, in which each program provides the other with
  1877.  certain information about itself.  This information includes the maximum  packet
  1878.  size it wants to receive, the timeout interval it wants the other Kermit to use,
  1879.  the number and type of padding characters it needs, the end-of-line character it
  1880.  needs  to  terminate  each  packet  (if  any), the block check type, the desired
  1881.  prefixes for control  characters,  characters  with  the  "high  bit"  set,  and
  1882.  repeated  characters.   Each  Kermit program has its own preset "default" values
  1883.  for these parameters, and you normally need not concern yourself with them.  You
  1884.  can  examine  their values with the SHOW command; the SET command is provided to
  1885.  allow you to change them in order to adapt to unusual conditions.
  1886. 0The following parameters may be SET:
  1887. 0     BAUD-RATE     Set the speed of the current communications port
  1888.       BLOCK-CHECK   Packet transmission error detection method
  1889.       DEBUGGING     Mode or log file
  1890.       DELAY         How long to wait before starting to send
  1891.       DUPLEX        For terminal connection, full (remote echo)  or  half  (local
  1892.                     echo)
  1893.       ESCAPE        Character for terminal connection
  1894.       FILE          For setting file parameters like  name  conversion  and  byte
  1895.                     size
  1896.       FLOW-CONTROL  Selecting flow control method, like XON/XOFF
  1897.       HANDSHAKE     For turning around half duplex communication line
  1898.       IBM           Set things up for communicating with an  IBM  mainframe  (not
  1899.                     used with TSO at NIH)
  1900.       INCOMPLETE    What to do with an incomplete file
  1901.       LINE          Terminal line to use for terminal connection or file transfer
  1902.       MODEM         Modem type or characteristics
  1903.       PARITY        Character parity to use
  1904.       PORT          For switching communication ports
  1905.       PROMPT        For changing the program's command prompt
  1906.       RECEIVE       Various parameters for receiving files
  1907.       RETRY         How many times to retry a packet before giving up
  1908.       SEND          Various parameters for sending files
  1909.       TIMER         Enable/disable timeouts
  1910. 0The DEFINE command may be used to compose "macros" by  combining  SET  commands.
  1911.  The SET commands are now described in detail.
  1912. -
  1913. -
  1914. -
  1915.  Kermit Commands -- Section 3
  1916. 1Kermit File Transfer Package                                                  47
  1917. -
  1918.  SET BAUD-RATE
  1919. 0Syntax:  SET BAUD-RATE number
  1920. 0Set or change the baud rate (approximate  translation:   transmission  speed  in
  1921.  bits  per second) on the currently selected communications device.  Ten bits per
  1922.  second is equivalent to one character per second; 300 baud = 30 cps.  The way of
  1923.  specifying the baud rate varies from system to system; in most cases, the actual
  1924.  number (such as 1200 or 9600) is  typed.   Systems  that  do  not  provide  this
  1925.  command  generally  expect  that  the  speed  of  the  line has already been set
  1926.  appropriately outside of Kermit.  Common values are 300, 1200, 2400,  4800,  and
  1927.  9600.
  1928. -SET BLOCK-CHECK
  1929. 0Syntax:  SET BLOCK-CHECK $1, 2, 3
  1930. 0Kermit normally uses a 1-character block check, or "CHECKSUM," on  each  packet.
  1931.  The  sender of the packet computes the block check based on the other characters
  1932.  in the packet, and the receiver recomputes it the same way.  If these quantities
  1933.  agree,  the packet is accepted and transmission proceeds.  If they disagree, the
  1934.  packet is rejected and retransmission is requested.
  1935. 0However, the block check is not a foolproof  method  of  error  detection.   The
  1936.  normal  single-character  Kermit  block  check is only a 6-bit quantity (the low
  1937.  order 8 bits of the arithmetic sum folded upon itself).  With only six  bits  of
  1938.  accuracy,  the  chances  are  one  in 2**6 -- that is, 1/64 -- that an error can
  1939.  occur which will not be detected in the CHECKSUM, assuming that all  errors  are
  1940.  equally likely.
  1941. 0You can decrease the probability that an error can slip through, at the  expense
  1942.  of  transmission efficiency, by using the SET BLOCK-CHECK command to select more
  1943.  rigorous block check methods.  Note that  all  three  methods  will  detect  any
  1944.  single-bit error, or any error in an odd number of bits.  The options are:
  1945. 01-CHARACTER-CHECKSUM:
  1946.       The normal single-character 6-bit CHECKSUM.
  1947. 02-CHARACTER-CHECKSUM:
  1948.       A 2-character, 12-bit CHECKSUM.  Reduces the probability of an error  going
  1949.       undetected to 1/4096, but adds an extra character to each packet.
  1950. 03-CHARACTER-CRC:
  1951.       A 3-character, 16-bit Cyclic Redundancy Check, CCITT format.   In  addition
  1952.       to errors in any odd number of bits, this method detects double bit errors,
  1953.       all error bursts of length 16 or less, and more than 99.99% of all possible
  1954.       longer bursts.  Adds two extra characters to each packet.
  1955. 0The single character CHECKSUM has proven to be quite adequate in practice,  much
  1956.  more  effective  than  straightforward analysis would indicate, since all errors
  1957.  are not equally likely, and a simple CHECKSUM is well  suited  to  catching  the
  1958. -
  1959.                                                      Section 3 -- Kermit Commands
  1960. 148                                                  Kermit File Transfer Package
  1961. -
  1962.  kinds  of errors that are typical of telecommunication lines.  The other methods
  1963.  should be requested only when the connection is very noisy and/or  when  sending
  1964.  binary files.
  1965. 0Note that the 2- and 3-character block checks are not available in all  versions
  1966.  of Kermit; if the other Kermit is not capable of performing the higher-precision
  1967.  block checks, the transfer will automatically use the standard  single-character
  1968.  method.
  1969. 0The NIH Computer Center recommends BLOCK-CHECK 3 always.  The overhead is only 2
  1970.  percent, and the extra assurance of reliability is worth it.
  1971. -SET DEBUG
  1972. 0Syntax:  SET DEBUG $ON, OFF
  1973. 0Record debugging information, either on your terminal or  in  a  file.   Options
  1974.  are:
  1975. 0  ON  Turn on debugging.
  1976. 0  OFF Don't display debugging information (the default).  If  debugging  was  in
  1977.        effect, turn it off and close any log file.
  1978. 0Some Kermit programs may control debugging by use of the LOG DEBUG command.
  1979. -SET DELAY
  1980. 0Syntax:  SET DELAY number
  1981. 0Specify how many seconds to wait before sending the first packet  after  a  SEND
  1982.  command.   Use  when  remote  and SENDing files back to your local Kermit.  This
  1983.  gives you time to "escape" back and issue a RECEIVE command.  The  normal  delay
  1984.  is  5  seconds.   In  local  mode  or  server mode, Kermit does not delay before
  1985.  sending the first packet.
  1986. -SET DUPLEX
  1987. 0Syntax:  SET DUPLEX $FULL, HALF
  1988. 0For use when CONNECTed to a remote system.  The keyword  choices  are  FULL  and
  1989.  HALF.   FULL  means the remote system echoes the characters you type, HALF means
  1990.  the local system echoes them.  FULL is the default, and is used by  most  hosts.
  1991.  HALF  is  necessary  when  connecting  to  IBM  mainframes.  Half duplex is more
  1992.  correctly called "local echo."
  1993. -
  1994. -
  1995. 0Kermit Commands -- Section 3
  1996. 1Kermit File Transfer Package                                                  49
  1997. -
  1998.  SET ESCAPE
  1999. 0Syntax:  SET ESCAPE character
  2000. 0Specify or change the  character  you  want  to  use  to  "escape"  from  remote
  2001.  connections back to Kermit.  This would normally be a character you don't expect
  2002.  to be using on the remote system, perhaps a control character like X\,  X],  XX,
  2003.  or X_.  Most versions of Kermit use one of these by default.  After you type the
  2004.  escape character, you must follow it by a single-character "argument,"  such  as
  2005.  "C" for Close Connection.  The arguments are listed above, under the description
  2006.  of the CONNECT command.
  2007. -SET FILE
  2008. 0Syntax:  SET FILE parameter value
  2009. 0Establish file-related parameters.  Depending  on  the  characteristics  of  the
  2010.  system,  it  may  be necessary to tell Kermit how to fetch an outbound file from
  2011.  the disk, or how to store an incoming  file.   The  actual  parameters  you  can
  2012.  specify  in this command will vary from system to system, and you should consult
  2013.  the documentation for your particular version of Kermit.  Some examples would be
  2014.  file  type  (text  or binary), byte size (PDP-10 architecture), record length or
  2015.  block  size  (record  oriented  systems),  end-of-file  detection   method   (on
  2016.  microcomputers), file naming conversion option.
  2017. 0This can be a very important command if you intend to transfer binary files, but
  2018.  is normally un-necessary for transmitting text files.
  2019. -SET FLOW-CONTROL
  2020. 0Syntax:  SET FLOW-CONTROL $XON/XOFF,NONE
  2021. 0For communicating with full duplex systems.  System-level flow  control  is  not
  2022.  necessary  to  the Kermit protocol, but it can help to use it if the same method
  2023.  is available on both systems.  The most common type  of  flow  control  on  full
  2024.  duplex  systems  is XON/XOFF.  When a system's input buffer comes close to being
  2025.  full, it will send an XOFF character (Control-S) to request the other system  to
  2026.  stop  sending.  When it has emptied sufficient characters from its input buffer,
  2027.  it signals the other system to resume sending by transmitting an  XON  character
  2028.  (Control-Q).   This  process  operates  in  both directions simultaneously.  The
  2029.  options for the Kermit SET FLOW command are usually restricted to  XON/XOFF  and
  2030.  NONE, which is used to disable this feature.
  2031. -
  2032. -
  2033. -
  2034. -                                                    Section 3 -- Kermit Commands
  2035. 150                                                  Kermit File Transfer Package
  2036. -
  2037.  SET HANDSHAKE
  2038. 0Syntax:  SET HANDSHAKE option
  2039. 0For communicating with half duplex systems.  This  lets  you  specify  the  line
  2040.  turnaround  character  sent by the half duplex host to indicate it has ended its
  2041.  transmission and is granting you permission to transmit.  When  a  handshake  is
  2042.  set,  Kermit  will  not  send  a  packet until the half duplex host has sent the
  2043.  specified character (or a timeout has occurred).  The options may include:
  2044. -    NONE    No handshake; undo the effect of any previous SET HANDSHAKE.
  2045.      XOFF    Control-S.
  2046.      XON     Control-Q.
  2047.      BELL    Control-G.
  2048.      CR      Carriage Return, Control-M.
  2049.      LF      Linefeed, Control-J.
  2050.      ESC     Escape, Control-[.
  2051. 0Some Kermit programs may require the  option  to  be  specified  by  typing  the
  2052.  character  literally  or  entering  its  numeric  ASCII  value.  If you use this
  2053.  command to enable handshaking, you should also SET FLOW NONE.
  2054. -SET INCOMPLETE
  2055. 0Syntax:  SET INCOMPLETE $KEEP, DISCARD
  2056. 0Specify what to do when a file transfer  fails  before  it  is  completed.   The
  2057.  options  are  DISCARD  (the  default)  and  KEEP.  If you choose KEEP, then if a
  2058.  transfer fails to complete successfully, you will be able to keep the incomplete
  2059.  part that was received.
  2060. -SET LINE
  2061. 0Syntax:  SET LINE [terminal-designator]
  2062. 0Specify the terminal line to use for file transfer or CONNECT.  This command  is
  2063.  found  on mainframe Kermits, which normally run in "remote mode" using their own
  2064.  controlling terminal for file transfer.  Specifying a  separate  line  puts  the
  2065.  program  in  "local  mode."   If  no  line  is  specified,  revert  to the job's
  2066.  controlling terminal, i.e., go back to "remote mode."
  2067. -
  2068. -
  2069. -
  2070. -
  2071.  Kermit Commands -- Section 3
  2072. 1Kermit File Transfer Package                                                  51
  2073. -
  2074.  SET PORT
  2075. 0Syntax:  SET PORT terminal-designator
  2076. 0Specify the communications port for file transfer or CONNECT.  This  command  is
  2077.  found  on  microcomputer  Kermits  that  run in "local" mode.  SET PORT does not
  2078.  change the remote/local status but simply selects a  different  port  for  local
  2079.  operation.
  2080. -SET PARITY
  2081. 0Syntax:  SET PARITY $EVEN, ODD, MARK, SPACE, NONE
  2082. 0Parity is a technique used by communications equipment for detecting errors on a
  2083.  per-character basis; the "8th bit" of each character acts as a check bit for the
  2084.  other seven bits.  Kermit uses block checks to detect  errors  on  a  per-packet
  2085.  basis,  and it does not use character parity.  However, some systems that Kermit
  2086.  runs on, or equipment through which these  systems  communicate,  may  be  using
  2087.  character  parity.   If Kermit does not know about this, arriving data will have
  2088.  been modified and the block check will appear to be wrong, and packets  will  be
  2089.  rejected.
  2090. 0If parity is being used on the communication line, you must inform both Kermits,
  2091.  so  the  desired  parity  can be added to outgoing characters, and stripped from
  2092.  incoming ones.  SET PARITY should be used  for  communicating  with  hosts  that
  2093.  require  character  parity  (IBM  mainframes  are  typical  examples) or through
  2094.  devices or networks (like GTE TELENET) that add parity to characters  that  pass
  2095.  through  them.   Both  Kermits  should be set to the same parity.  The specified
  2096.  parity is used both for terminal connection (CONNECT) and file  transfer  (SEND,
  2097.  RECEIVE, GET).
  2098. 0The choices for SET PARITY are:
  2099. 0  NONE  (the default) eight data bits and no parity bit.
  2100.    MARK  seven data bits with the parity bit set to one.
  2101.    SPACE seven data bits with the parity bit set to zero.
  2102.    EVEN  seven data bits with the parity bit set to make the overall parity even.
  2103.    ODD   seven data bits with the parity bit set to make the overall parity odd.
  2104. 0NONE means no parity processing is done, and the 8th bit of each  character  can
  2105.  be used for data when transmitting binary files.
  2106. 0If you have set parity to ODD, EVEN, MARK, or SPACE, then advanced  versions  of
  2107.  Kermit   will   request   that   binary   files   will   be   transferred  using
  2108.  8th-bit-prefixing.   If  the  Kermit  on  the  other  side  knows  how   to   do
  2109.  8th-bit-prefixing  (this  is an optional feature of the Kermit protocol, and not
  2110.  all implementations of Kermit have it), then binary  files  can  be  transmitted
  2111.  successfully.   If  NONE  is specified, 8th-bit-prefixing will not be requested.
  2112.  8th-bit-prefixing is slower, but necessary when parity is used.
  2113. -
  2114. -                                                    Section 3 -- Kermit Commands
  2115. 152                                                  Kermit File Transfer Package
  2116. -
  2117.  SET PROMPT
  2118. 0Syntax:  SET PROMPT string
  2119. 0This allows you to change the program's prompt.  This is particularly useful  if
  2120.  you  are using Kermit to transfer files between two systems of the same kind, in
  2121.  which case you can change the prompts of the Kermit programs involved to include
  2122.  appropriate distinguishing information.
  2123. -SET SEND
  2124. 0Syntax:  SET SEND parameter value
  2125. 0Parameters for outgoing packets, as follows:
  2126. 0END-OF-LINE character
  2127. 0          The ASCII character to be used  as  a  line  terminator  for  outbound
  2128.            packets,  if  one  is required by the other system, carriage return by
  2129.            default.  You will only have to use  this  command  for  systems  that
  2130.            require a line terminator other than carriage return.
  2131. 0PACKET-LENGTH number
  2132. 0          Maximum packet length to send between 10 and 94 (decimal).  Shortening
  2133.            the  packets  might  allow more of them to get through through without
  2134.            error on noisy communication lines.  Lengthening the packets increases
  2135.            the throughput on clean lines.
  2136. 0TIMEOUT number
  2137. 0          How many seconds to wait for a packet before trying again.  A value of
  2138.            zero means don't time out -- wait forever.
  2139. 0PAUSE floating-point-number
  2140. 0          How many seconds to pause before sending each  data  packet.   Setting
  2141.            this  to  a  non-zero  value  may  allow  a slow system enough time to
  2142.            consolidate itself before  the  next  packet  arrives.   Normally,  no
  2143.            per-packet pausing is done.
  2144. 0PADDING number, PADCHAR character
  2145. 0          How much padding to send before a packet,  if  the  other  side  needs
  2146.            padding,  and  what  character  to  use  for padding.  Defaults are no
  2147.            padding, and NUL (0) for the padding character.  This command is  also
  2148.            handy  for  inserting  special  characters  that  may  be  required by
  2149.            communications equipment.
  2150. -
  2151. -
  2152.  Kermit Commands -- Section 3
  2153. 1Kermit File Transfer Package                                                  53
  2154. -
  2155.  QUOTE character
  2156. 0          What printable character to use for quoting of control characters, "#"
  2157.            (ASCII  43  decimal)  by default.  There should be no reason to change
  2158.            this.
  2159. 0START-OF-PACKET character
  2160. 0          The start-of-packet character  is  the  only  control  character  used
  2161.            "bare"  by  the  Kermit protocol.  It is Control-A (ASCII 1 or SOH) by
  2162.            default.  If a bare Control-A causes problems for  your  communication
  2163.            hardware  or  software, you can use this command to select a different
  2164.            control character to mark the start of a packet.  You must also  issue
  2165.            the  reciprocal command (SET RECEIVE START-OF-PACKET) to the Kermit on
  2166.            the other system (providing it has such a command).
  2167. -SET RECEIVE
  2168. 0Syntax:  SET RECEIVE parameter value
  2169. 0Parameters to request or expect for incoming packets, as follows:
  2170. 0END-OF-LINE character
  2171. 0          Carriage return (ASCII 13 decimal) by default.
  2172. 0PACKET-LENGTH number
  2173. 0          Maximum length packet for the other  side  to  send,  decimal  number,
  2174.            between 10 and 94.
  2175. 0TIMEOUT number
  2176. 0          How many seconds the other Kermit should  wait  for  a  packet  before
  2177.            asking for retransmission.
  2178. 0PAUSE floating-point-number
  2179. 0          How many seconds to pause before acknowledging a packet.  Setting this
  2180.            to  a  non-zero  value  will  slow down the rate at which data packets
  2181.            arrive, which may be necessary for systems that have "sensitive" front
  2182.            ends and cannot accept input at a high rate.
  2183. 0PADDING number, PADCHAR character
  2184. 0          How many padding characters to request before  each  incoming  packet,
  2185.            and  what  the  padding  character should be.  No Kermits are known to
  2186.            need padding; and if one did, it would request it without your  having
  2187.            to tell it to do so.  This command would only be necessary, therefore,
  2188.            under very unusual circumstances.
  2189. -
  2190. 0                                                    Section 3 -- Kermit Commands
  2191. 154                                                  Kermit File Transfer Package
  2192. -
  2193.  QUOTE character
  2194. 0          What printable character to use for quoting of control characters, "#"
  2195.            (ASCII  43  decimal)  by default.  There should be no reason to change
  2196.            this.
  2197. 0START-OF-PACKET character
  2198. 0          The control character to  mark  the  beginning  of  incoming  packets.
  2199.            Normally  SOH  (Control-A,  ASCII  1)  (see  SET SEND START-OF-PACKET,
  2200.            above).
  2201. -SET RETRY
  2202. 0Syntax:  SET RETRY option number
  2203. 0Set the maximum number of retries allowed for:
  2204. 0INITIAL-CONNECTION
  2205. 0          How many times to try establishing  the  initial  protocol  connection
  2206.            before giving up, normally something like 15.
  2207. 0PACKETS
  2208. 0          How many times to try sending a particular packet  before  giving  up,
  2209.            normally  5.  If a line is very noisy, you might want to increase this
  2210.            number.
  2211. -
  2212. -
  2213. -
  2214. -
  2215. -
  2216. -
  2217. -
  2218. -
  2219. -Kermit Commands -- Section 3
  2220. 1Kermit File Transfer Package                                                  55
  2221. -
  2222.  3.18.  DEFINE
  2223. 0Syntax:  DEFINE macroname [set-parameters]
  2224. 0Define a "SET macro"  to  allow  convenient  association  of  one  or  more  SET
  2225.  parameters  with  a  mnemonic  keyword of your choice.  The SET parameters are a
  2226.  list of one or more SET options, separated by commas.   If  you  use  Kermit  to
  2227.  communicate  with several different kinds of systems, you may set up a macro for
  2228.  each, for instance:
  2229. 0 DEFINE IBM PARITY MARK, DUPLEX HALF, HANDSHAKE XON
  2230.   DEFINE UNIX PARITY NONE, DUPLEX FULL, HANDSHAKE NONE
  2231.   DEFINE TELENET PARITY MARK, RECEIVE TIMEOUT 20
  2232. 0You may then type SET IBM, SET UNIX,  and  so  forth  to  set  all  the  desired
  2233.  parameters with a single command.  It is convenient to include these definitions
  2234.  in your KERMIT.INI file.
  2235. 0Another other handy use  for  SET  macros  would  be  for  rapid  adaptation  to
  2236.  different conditions of line noise:
  2237. 0 DEFINE CLEAN BLOCK-CHECK 1, SEND PACKET-LENGTH 94, RETRY PACKET 5
  2238.   DEFINE NOISY BLOCK-CHECK 2, SEND PACKET-LENGTH 60, RETRY PACKET 10
  2239.   DEFINE VERY-NOISY BLOCK 3, SEND PACKET 40, RETRY PACKET 20
  2240. 0You may redefine an existing macro in the same manner as you  defined  it.   You
  2241.  can  undefine  an  existing  macro by typing an empty DEFINE command for it, for
  2242.  instance:
  2243. 0 DEFINE IBM
  2244. 0You can list all your macros and their definitions with the SHOW MACROS command.
  2245.  Some  Kermit programs allow macro definitions to include any Kermit command, not
  2246.  just SET commands.
  2247. -
  2248. -
  2249. -
  2250. -
  2251. -
  2252. -
  2253. -
  2254.                                                      Section 3 -- Kermit Commands
  2255. 156                                                  Kermit File Transfer Package
  2256. -
  2257.  3.19.  SHOW
  2258. 0Syntax:  SHOW [option]
  2259. 0The SHOW command displays the values of  the  parameters  settable  by  the  SET
  2260.  command.   If  a  particular option is not requested, a complete display will be
  2261.  provided.
  2262. -
  2263.  3.20.  STATISTICS
  2264. 0Syntax:  STATISTICS
  2265. 0Give statistics about the most recent file transfer, such as the total number of
  2266.  characters transmitted, the effective speed, and so forth.
  2267. -
  2268.  3.21.  LOG
  2269. 0Syntax:  LOG [option] [filespec]
  2270. 0Log the specified entity to the specified log file.
  2271. 0TRANSACTIONS    Direct Kermit to log transactions, such  as  files  successfully
  2272.                  sent or received or files that could not be successfully sent or
  2273.                  received.  A transaction is useful recording the progress  of  a
  2274.                  long, unattended multifile transfer.
  2275. 0SESSION         Create a transcript of a CONNECT session, when running  a  local
  2276.                  Kermit connected to a remote system, in the specified file.  The
  2277.                  log  is   closed   when   connection   is   closed.    In   some
  2278.                  implementations,  logging can be "toggled" by typing the connect
  2279.                  escape character followed by  Q  (Quit  logging)  or  R  (Resume
  2280.                  logging)  or similar single-character commands.  Session-logging
  2281.                  is useful for recording dialog with an interactive  system,  and
  2282.                  for  "capturing"  from  systems  that  don't  have  Kermit.   No
  2283.                  guarantee can be made that the file  will  arrive  correctly  or
  2284.                  completely, since no error checking takes place.
  2285. 0DEBUGGING       Record debugging information in the specified file.   There  may
  2286.                  be  several  options to select the desired information -- entire
  2287.                  packets, state  transitions,  internal  program  trace,  etc  --
  2288.                  available via the SET DEBUGGING command.
  2289. 0PACKETS         Record packets, and all communication line traffic  during  file
  2290.                  transfer, in the specified file.
  2291. -
  2292. -
  2293. 0Kermit Commands -- Section 3
  2294. 1Kermit File Transfer Package                                                  57
  2295. -
  2296.  3.22.  TRANSMIT
  2297. 0Syntax:  TRANSMIT filespec
  2298. 0Send the contents of the specified file to  the  other  system  "bare,"  without
  2299.  protocol,  packets,  error  checking, or retransmission.  This command is useful
  2300.  for sending standard logon or connection sequences, and  for  sending  files  to
  2301.  systems that don't have Kermit.  No guarantee can be made that the target system
  2302.  will receive the file correctly and completely.   When  receiving  a  file,  the
  2303.  target system would normally be running a text editor in text collection mode.
  2304. -
  2305.  3.23.  INPUT
  2306. 0Syntax:  INPUT [interval] [string]
  2307. 0Input characters from the remote system for the specified interval, looking  for
  2308.  the  specified  string.  Terminate when the string is found or when the interval
  2309.  has expired, whichever comes first.  Useful for synchronizing with remote system
  2310.  prompts.
  2311. -
  2312.  3.24.  OUTPUT
  2313. 0Syntax:  OUTPUT [string]
  2314. 0Send the specified string to the remote system.  Useful in conjunction with  the
  2315.  INPUT command to form "login scripts."
  2316. -
  2317.  3.25.  PAUSE
  2318. 0Syntax:  PAUSE [interval]
  2319. 0Pause for the specified interval.  Useful in login scripts.
  2320. -
  2321.  3.26.  SCRIPT
  2322. 0Syntax:  SCRIPT [string]
  2323. 0The string is a "login  script"  in  some  system-  or  implementation-dependent
  2324.  format, such as the UNIX(tm) UUCP "expect-send" format.
  2325. -
  2326. -
  2327. -                                                    Section 3 -- Kermit Commands
  2328. 158                                                  Kermit File Transfer Package
  2329. -
  2330. -
  2331. -
  2332. -
  2333. -
  2334. -
  2335. -
  2336. -
  2337. -
  2338. -
  2339. -
  2340. -
  2341. -
  2342. -
  2343. -
  2344. -
  2345. -
  2346. -
  2347. -
  2348. 0Kermit Commands -- Section 3
  2349. 1Kermit File Transfer Package                                                  59
  2350. -
  2351.  4.  Kermit Implementations
  2352. 0Kermit has been written for a wide  variety  of  systems,  both  mainframes  and
  2353.  microcomputers.   Kermit  is  not  written  in a portable language; rather, each
  2354.  implementation is written in a language suited for the particular machine.   The
  2355.  specification,  given  in  the  Kermit  Protocol Manual (available from Columbia
  2356.  University), is quite general and allows implementation on almost any machine.
  2357. 0Here's a brief table summarizing the known Kermit implementations,  as  of  this
  2358.  writing.   This  list  is  constantly growing, and may be far out of date by the
  2359.  time you read it.  To obtain information about implementations  of  Kermit  that
  2360.  are  not  supported  by  the NIH Computer Center, but which are available on the
  2361.  DECsystem-10,  login  to  the  DECsystem-10  and   issue   the   command   "TYPE
  2362.  KER:READ.ME".
  2363. 0Columbia University distributes many versions of Kermit for  different  machines
  2364.  through  the BITNET Network.  For information on how to use this facility, enter
  2365.  the Information EXCHANGE with the ENTER EXCHANGE command in WYLBUR and  look  at
  2366.  Entry  ID  R20,  "BITNET  Network  Resources."   This  entry and any other ENTER
  2367.  EXCHANGE entries related to Kermit, may also be retrieved by  specifying  Kermit
  2368.  as  a  search word.  Note that only the Kermit versions described in this manual
  2369.  are supported by the NIH Computer Center.
  2370. -
  2371.  Versions for "Portable Operating Systems":  OS; Language (Machines)
  2372. 0     CP/M-80; ASM (Kaypro, H/Z-89, H/Z-100, Osborne, DEC VT180, many others)
  2373. 0     CP/M-86; ASM86 (DEC Rainbow, NEC APC, others)
  2374. 0     MS-DOS; MASM (IBM PC,XT,AT, DEC Rainbow, HP-150, NEC APC, others...)
  2375. 0     MUMPS (PDP-11)
  2376. 0     Software Tools; Ratfor (HP3000, Sperry-Univac 1100)
  2377. 0     UCSD p-System; Pascal (IBM PC, Terak, HP98x6, Pascal Microengine)
  2378. 0     UNIX v7,4.xBSD,Sys III/V,Venix,Xenix,PC/IX; C (VAX, PDP-11, SUN, many more)
  2379. -
  2380. -
  2381. -
  2382. -
  2383. -
  2384.                                                Section 4 -- Kermit Implementation
  2385. 160                                                  Kermit File Transfer Package
  2386. -
  2387.  Host Versions:  Machine (OS; Language)
  2388. 0     Burroughs B6800 (Algol)
  2389. 0     Cray-1, Cray-XMP (CTSS; Fortran-77)
  2390. 0     CDC Cyber 170 (NOS, NOS/BE; Fortran-77)
  2391. 0     Data General Nova (RDOS; Fortran-5)
  2392. 0     Data General Eclipse (AOS; Fortran-5), MV Series (AOS/VS; Pascal)
  2393. 0     DEC PDP-11 (RT11, RSX11M(+), RSTS, P/OS, TSX+; Macro-11)
  2394. 0     DEC VAX-11 (VMS; Bliss-32 or Macro-32 or Pascal/Fortran)
  2395. 0     DECsystem-10  (TOPS-10;   Bliss-36,   Macro-10),   DECsystem-20   (TOPS-20;
  2396.       Macro-20)
  2397. 0     Harris 800 (VOS; Pascal)
  2398. 0     Honeywell (MULTICS; PL/I), DPS-6,8 (GCOS; C)
  2399. 0     Hewlett-Packard 1000 (RTE-6/VM; Fortran), HP3000 (MPE; SPL or Ratfor)
  2400. 0     IBM 370 Series (VM/CMS, MVS/TSO, MVS/GUTS, MUSIC, MTS; Assembler)
  2401. 0     Perkin Elmer 3200 Series (OS/32; Fortran)
  2402. 0     PRIME (PRIMOS; PL/P)
  2403. 0     Sperry/Univac-1100 (EXEC; Assembler or Ratfor or Pascal)
  2404. 0     Tandem (Nonstop; TAL)
  2405. -
  2406. -
  2407. -
  2408. -
  2409. -
  2410. -
  2411. -
  2412.  Kermit Implementation -- Section 4
  2413. 1Kermit File Transfer Package                                                  61
  2414. -
  2415.  PC Versions:  Machine (OS; Language)
  2416. 0     Alpha Micro 68000 (Assembler)
  2417. 0     Apollo (Aegis; Fortran or Pascal)
  2418. 0     Apple ][ 6502 (Apple DOS; DEC-10/20 CROSS or Apple Assembler)
  2419. 0     Apple Macintosh (SUMACC C)
  2420. 0     Atari (DOS; Action!)
  2421. 0     Commodore 64 (DEC-10/20 CROSS or FORTH)
  2422. 0     DEC Pro-300 Series (P/OS; Bliss-16 or Macro-11), (Pro/RT;  Macro),  (Venix;
  2423.       C)
  2424. 0     Intel Development System (ISIS; PL/M)
  2425. 0     Perq (Pascal)
  2426. 0     TRS80 I, III, Model 4 (TRSDOS; ASM)
  2427. 0     TRS-80 Color Computer (Radio Shack DOS)
  2428. -The  remainder  of  this  manual  is   devoted   to   descriptions   of   Kermit
  2429.  implementations that are supported by the NIH Computer Center.
  2430. -
  2431. -
  2432. -
  2433. -
  2434. -
  2435. -
  2436. -
  2437. -
  2438. -
  2439.                                                Section 4 -- Kermit Implementation
  2440. 162                                                  Kermit File Transfer Package
  2441. -
  2442. -
  2443. -
  2444. -
  2445. -
  2446. -
  2447. -
  2448. -
  2449. -
  2450. -
  2451. -
  2452. -
  2453. -
  2454. -
  2455. -
  2456. -
  2457. -
  2458. -
  2459. -
  2460. 0Kermit Implementation -- Section 4
  2461. 1Kermit File Transfer Package                                                  63
  2462. -
  2463.  5.  DECsystem-10 Kermit
  2464. 0The DECsystem-10 version of Kermit was adapted by Nick Bush,  Bob  McQueen,  and
  2465.  Antonio  Mione  at  the  Stevens Institute of Technology in Hoboken, NJ, from an
  2466.  earlier DECsystem-20 version.
  2467. -Kermit-10 Capabilities At a Glance:
  2468. 0      Local operation:  Yes
  2469.        Remote operation:  Yes
  2470.        Transfers text files:  Yes
  2471.        Transfers binary files:  Yes
  2472.        Wildcard send:  Yes
  2473.        XX/XY interruption:  Yes
  2474.        Filename collision avoidance:  Yes
  2475.        Timeouts:  Yes
  2476.        8th-bit prefixing:  Yes
  2477.        Repeat character compression:  Yes
  2478.        Alternate block check types:  Yes
  2479.        Communication settings:  Yes
  2480.        Transmit BREAK:  Yes
  2481.        IBM mainframe communication:  Yes
  2482.        Transaction logging:  Yes
  2483.        Session logging:  Yes
  2484.        Debug logging:  Yes
  2485.        Raw transmit:  Yes
  2486.        Login scripts:  Yes
  2487.        Act as server:  Yes
  2488.        Talk to server:  Yes
  2489.        Advanced commands for servers:  Yes
  2490.        Local file management:  Yes
  2491.        Command/init files:  Yes
  2492.        Handle file attributes:  No
  2493. -Kermit-10 is a program that implements the Kermit file transfer protocol for the
  2494.  Digital Equipment Corporation DECsystem-10 mainframe computer.  It is written in
  2495.  MACRO-10 assembly language and should run on any DECsystem-10 with version 4  of
  2496.  TOPS-10 or later.
  2497. 0The Kermit-10 section will  describe  the  things  you  should  know  about  the
  2498.  DECsystem-10  file  system in order to make effective use of Kermit, and then it
  2499.  will describe the special features of the Kermit-10 program.
  2500. -
  2501. -
  2502. -
  2503. -                                                Section 5 -- DECsystem-10 Kermit
  2504. 164                                                  Kermit File Transfer Package
  2505. -
  2506.  5.1.  The DECsystem-10 File System
  2507. 0The features of the DECsystem-10 file system  of  greatest  interest  to  Kermit
  2508.  users are the form of the file specifications, and the distinctions between text
  2509.  and binary files.
  2510. -5.1.1.  TOPS-10 File Specifications
  2511. 0TOPS-10 file specifications are of the form
  2512. 0     DEVICE:FILENAME.EXTENSION[DIRECTORY]
  2513. 0Device may specify any valid generic, physical, logical, ersatz, or dummy device
  2514.  name.   FILENAME may have any positive length, but only the first six characters
  2515.  will be used.  EXTENSION may be any length, but only the first three  characters
  2516.  will  be  used.   When  the  EXTENSION  is null, the dot may usually be omitted.
  2517.  DIRECTORY may be any valid UFD or SFD.   The  device,  filename,  and  directory
  2518.  fields  may  contain upper case or lower case letters and numeric digits.  There
  2519.  are no imbedded or trailing spaces.  The fields of the  file  specification  are
  2520.  set off from one another by the punctuation indicated above.
  2521. 0The filename is the primary identifier  for  the  file.   The  extension  is  an
  2522.  indicator  which,  by  convention,  tells what kind of file it is.  For instance
  2523.  FOO.FOR is the source of a Fortran program  named  FOO;  FOO.REL  might  be  the
  2524.  relocatable  object  module  produced  by  compiling  FOO.FOR;  FOO.EXE could an
  2525.  executable program produced by LOADing and SAVing FOO.REL, and so forth.
  2526. 0FILENAME.EXTENSION is normally sufficient to  specify  a  file,  and  only  this
  2527.  information is sent along by Kermit-10 with an outgoing file.
  2528. 0The directory name indicates the disk area in which the file is  located.   This
  2529.  will  default  to  the  user's  current  path  unless  he  specifies a different
  2530.  directory name.  A directory name is specified by [P,PN]  immediately  following
  2531.  the  extension  where  P  is  a project number and PN is a programmer number.  A
  2532.  directory may contain subdirectories.  These are known  as  subfile  directories
  2533.  (SFD's).   If the directory [P,PN] has an SFD called ZZZ, the directory field is
  2534.  designated [P,PN,ZZZ].
  2535. 0The device field specifies a physical or "logical" device upon which the file is
  2536.  resident.   The  directory  field indicates the area on the device, for instance
  2537.  the area belonging to the owner of the file.  Kermit-10 does  not  transmit  the
  2538.  device  or  directory fields to the target system, and does not attempt to honor
  2539.  device or directory fields that may appear in incoming file names; for instance,
  2540.  it will not create new directories.
  2541. -
  2542. -
  2543. -
  2544. 0DECsystem 10 Kermit -- Section 5
  2545. 1Kermit File Transfer Package                                                  65
  2546. -
  2547.  The DECsystem-10 allows a group of files  to  be  specified  in  a  single  file
  2548.  specification  by  including  the special "wildcard" characters, "*" and "?".  A
  2549.  "*" matches any string of characters, including no  characters  at  all;  a  "?"
  2550.  matches  any  single character.  Because a "?"  will be interpreted as a request
  2551.  for help, Kermit-10 uses a "%" as its single character wildcard.  Here are  some
  2552.  examples of Kermit-10 wildcards:
  2553. 0     *.FOR   All files of type FOR (all Fortran source  files)  in  the  current
  2554.               directory.
  2555. 0     FOO.*   Files of all types with name FOO.
  2556. 0     F*.*    All files whose names start with F.
  2557. 0     %.*     All files whose names are exactly one character long.
  2558. -Wildcard notation is used on many computer systems in similar ways,  and  it  is
  2559.  the mechanism most commonly used to instruct Kermit to send a group of files.
  2560. -5.1.2.  Text Files and Binary Files
  2561. 0The  DECsystem-10,  like  most  computers,  has  a  file  system  with  its  own
  2562.  peculiarities.   Like  many  other systems, the DECsystem-10 makes a distinction
  2563.  between text files and binary files.  Text files are  generally  those  composed
  2564.  only  of  printing  characters  (letters, digits, and punctuation) and "carriage
  2565.  control" characters (carriage return, line feed, form feed,  tab).   Text  files
  2566.  are  designed  to  be read by people.  Binary files are designed to be read by a
  2567.  computer program, or the computer itself, and may have any contents at all.   If
  2568.  you  use  the DECsystem-10 TYPE command to display a text file on your terminal,
  2569.  the result will be intelligible.  If you type a binary file  on  your  terminal,
  2570.  you  will  probably  see  mainly gibberish.  You can not tell a text file from a
  2571.  binary file just by its name, though in general files with extensions like .TXT,
  2572.  .DOC,  .HLP  are  textual (as are "source files" for computer programs like text
  2573.  formatters and programming language compilers, e.g., .FOR  .SAI  .PAS  .C),  and
  2574.  files with types like .EXE, .REL, .BIN are binary.
  2575. 0DECsystem-10 Kermit has three  methods  for  transferring  files:   using  7-bit
  2576.  bytes, 8-bit bytes, and 36-bit bytes.  By default it will use 7-bit bytes.  This
  2577.  will cause all text transfers  to  be  correct  with  the  exception  that  each
  2578.  computer sometimes uses special characters in text files.  On personal computers
  2579.  some word processors use 8-bit, non-printing characters to indicate underlining,
  2580.  etc.   These  files should be considered binary data files.  They may be sent to
  2581.  the DECsystem-10 for  transmission  to  a  computer  which  has  the  same  word
  2582.  processing software by following the rules for binary files given below.  Such a
  2583.  file will be unreadable on the DECsystem-10.  To  make  a  word  processor  file
  2584.  readable  on the DECsystem-10, the file must be converted to a "flat" ASCII file
  2585.  before  transferring.   Many  word  processors  have  an  option  to  make   the
  2586.  conversion.
  2587. -
  2588. -                                                Section 5 -- DECsystem-10 Kermit
  2589. 166                                                  Kermit File Transfer Package
  2590. -
  2591.  The DECsystem-10 commonly inserts NULs into text  files.   The  length  of  each
  2592.  DECsystem-10  file  is  saved  as a word count in the RIB (Retrieval Information
  2593.  Block).  Because most text files  do  not  contain  an  even  multiple  of  five
  2594.  characters, the DECsystem-10 pads text files with NULs to fill in the last word.
  2595.  When downloading a file, Kermit-10 transmits the NULs.  When a DECsystem-10 text
  2596.  file  has  SOS line numbers, they are aligned on word boundaries.  SOS pads each
  2597.  line with NULs to fill in  partial  words  as  needed.   Again,  Kermit-10  will
  2598.  download  the  NULs.   On  a  personal  computer  the NULs may or may not make a
  2599.  difference.  For example, the DOS TYPE command turns NULs into spaces.  When the
  2600.  NULs  are at the end of a file they make no difference.  When they pad lines for
  2601.  line numbers, they follow the carriage return/line  feed  that  terminates  each
  2602.  line  and  indent  the  following  line.   The  EDLIN line editor makes the NULs
  2603.  visible, turning them to X@.
  2604. 0In general, text files which are just being archived on a personal computer  can
  2605.  be  downloaded and uploaded without concern for embedded NULs.  Text files which
  2606.  are to be used on the PC should be downloaded with line  numbers  stripped  off.
  2607.  If  the trailing NULs interface with the intended use of the text file, they can
  2608.  be removed easily with EDLIN or another editor/word processor.
  2609. 0Deciding what byte size to use when transferring binary data is  complicated  by
  2610.  differences  in computer word size.  Most computers other than DECsystem-10s and
  2611.  20s and Univacs store data in multiples of 8-bit bytes.  The table  below  shows
  2612.  what byte size to use when transferring files to or from the DECsystem-10 and an
  2613.  8-bit byte computer.  To use the table, find the row corresponding to the source
  2614.  computer  and  the column corresponding to the destination computer.  If you are
  2615.  using a computer merely to archive data, use the source computer as both  source
  2616.  and  destination in the table.  For example, when saving executable files from a
  2617.  PC on the DECsystem-10 for later retrieval, both the source and destination  are
  2618.  8-bit  computers  and  the  file  transfers,  both to and from the DECsystem-10,
  2619.  should be done with FILE BYTE-SIZE set to 8.
  2620. 0     FILE BYTE-SIZE FOR BINARY FILE TRANSFER
  2621. 0        from \ to |  DEC-10  |  8-bit  |
  2622.          ----------+----------+---------+
  2623.          DEC-10    |    7     |   (1)   |
  2624.          ----------+----------+---------+
  2625.          8-bit     |   (2)    |    8    |
  2626.          ----------+----------+---------+
  2627. -
  2628. -
  2629. -
  2630. -
  2631. -
  2632.  DECsystem 10 Kermit -- Section 5
  2633. 1Kermit File Transfer Package                                                  67
  2634. -
  2635.  NOTES:
  2636. 0  (1) Either 7 or 8-bit bytes may be used.  In the former case, the  arrangement
  2637.    of DECsystem-10 bits in 5 successive bytes will be as shown:
  2638. 0               DECsystem-10 BITS IN 8-BIT BYTES
  2639. 0                  +--+--+--+--+--+--+--+--+
  2640.            byte 1  | 0| 1| 2| 3| 4| 5| 6|  |
  2641.                    +--+--+--+--+--+--+--+--+
  2642.            byte 2  | 7| 8| 9|10|11|12|13|  |
  2643.                    +--+--+--+--+--+--+--+--+
  2644.            byte 3  |14|15|16|17|18|19|20|  |
  2645.                    +--+--+--+--+--+--+--+--+
  2646.            byte 4  |21|22|23|24|25|26|27|  |
  2647.                    +--+--+--+--+--+--+--+--+
  2648.            byte 5  |28|29|30|31|32|33|34|35|
  2649.                    +--+--+--+--+--+--+--+--+
  2650. 0  If 8-bit bytes are used the first 32 bits (0-31) will fill 4 successive  bytes
  2651.    and the last 4 bits (32-35) will be discarded.
  2652. 0  (2) Use 8-bit bytes, understanding that 4 successive bytes will be  stored  as
  2653.    bits 0-31 in DECsystem-10 words.
  2654. 0The 36-bit byte option is for DECsystem-10 to DECsystem-10 transfers, so  it  is
  2655.  not  relevant at NIH.  There is also a FILE BYTE-SIZE AUTOMATIC option; it often
  2656.  makes an incorrect decision between 7-bit as 8-bit byte transfers and should  be
  2657.  avoided.
  2658. -5.1.3.  Files Kermit-10 Cannot Handle
  2659. 0The Kermit protocol can only accommodate transfer  of  sequential  files,  files
  2660.  which are a linear sequence of bytes (or words).
  2661. 0Some files on the DECsystem-10 are not sequential, and  cannot  be  successfully
  2662.  sent  or received by Kermit-10.  These include directory files, files with holes
  2663.  (missing pages), ISAM files,  and  RMS  files.   These  files  require  external
  2664.  information  (kept  in the DECsystem-10's RIB and/or index table) in order to be
  2665.  reconstructed; when sending files, Kermit-10 presently transmits only  the  file
  2666.  name  and  the  contents  of  the  file.   External control information and file
  2667.  attributes are not transmitted.
  2668. -
  2669. -
  2670. -
  2671. -
  2672.                                                  Section 5 -- DECsystem-10 Kermit
  2673. 168                                                  Kermit File Transfer Package
  2674. -
  2675.  5.2.  Program Operation
  2676. 0Note that in the examples  which  follow,  the  text  entered  by  the  user  is
  2677.  underlined  in  order  to  distinguish  it  from computer generated messages and
  2678.  prompts.
  2679. 0Kermit-10's prompt is "Kermit-10>".  Kermit-10 will accept a single  command  on
  2680.  the Monitor command line, like this:
  2681. -  .Kermit send foo.bar
  2682. +   ___________________
  2683. 0      ;the file is sent
  2684. -
  2685.  or you can run the program interactively to issue several commands, like this:
  2686. -  .Kermit
  2687. +   ______
  2688. 0  TOPS-10 Kermit version 3(133)
  2689. 0  Kermit-10>send foo.*
  2690. +            __________
  2691. 0      ;files are sent
  2692. 0  Kermit-10>stat
  2693. +            ____
  2694. 0      ;performance statistics are printed
  2695. 0  Kermit-10>receive
  2696. +            _______
  2697. 0      ;files are received
  2698. 0  Kermit-10>exit
  2699. +            ____
  2700.    .
  2701. -During interactive operation, you may use the help ("?") and  recognition  (ESC)
  2702.  features  freely while typing commands.  A question mark typed at any point in a
  2703.  command displays the options available at that point; typing  an  ESC  character
  2704.  causes  the  current  keyword to be completed (or default value to be supplied),
  2705.  and a "guide word" in parentheses to be typed, prompting you for the next field.
  2706.  If  you have not typed sufficient characters to uniquely specify the keyword (or
  2707.  if there is no default value) then a beep will be sounded and you  may  continue
  2708.  typing.   A  XW  will  delete  the  last word typed, and a XU deletes the entire
  2709.  command.
  2710. 0Command keywords may be abbreviated to the shortest length that sets them  apart
  2711.  from any other keyword valid in that field.
  2712. -
  2713. 0DECsystem 10 Kermit -- Section 5
  2714. 1Kermit File Transfer Package                                                  69
  2715. -
  2716.  If you have a file called KERMIT.INI in your  login  directory,  Kermit-10  will
  2717.  execute  an  automatic  TAKE command on it upon initial startup.  KERMIT.INI may
  2718.  contain any Kermit-10 commands, for instance SET commands, or  DEFINEs  for  SET
  2719.  macros  to  configure Kermit-10 to various systems or communications media.  The
  2720.  default settings of Kermit-10 will generally be correct for most file transfers.
  2721.  If, after reviewing the various SET commands, you find other parameters that you
  2722.  would usually set differently, they should be placed in a KERMIT.INI file.
  2723. 0Kermit-10 provides most of the commands possible for an "ideal" Kermit  program,
  2724.  as  described  in  the  main  part  of  the  Kermit  File Transfer Package.  The
  2725.  following sections will concentrate on system-dependent aspects of Kermit-10.
  2726. -
  2727. -
  2728. -
  2729. -
  2730. -
  2731. -
  2732. -
  2733. -
  2734. -
  2735. -
  2736. -
  2737. -
  2738. -
  2739. -
  2740. -                                                Section 5 -- DECsystem-10 Kermit
  2741. 170                                                  Kermit File Transfer Package
  2742. -
  2743.  5.3.  Remote and Local Operation
  2744. 0Kermit-10 normally runs in remote mode, with the user  sitting  at  a  PC.   But
  2745.  Kermit-10 can also run in local mode.  Local operation of Kermit-10 is useful if
  2746.  the DECsystem-10 has  an  autodialer,  or  a  hardwired  connection  to  another
  2747.  computer.   Because  the  NIH  DECsystem-10  has  no  facility  for dialing out,
  2748.  Kermit-10 cannot be used in local  mode  here.   Kermit-10  commands  which  are
  2749.  useful only for local mode have had their descriptions modified.
  2750. -
  2751. -
  2752. -
  2753. -
  2754. -
  2755. -
  2756. -
  2757. -
  2758. -
  2759. -
  2760. -
  2761. -
  2762. -
  2763. -
  2764. -
  2765. -DECsystem 10 Kermit -- Section 5
  2766. 1Kermit File Transfer Package                                                  71
  2767. -
  2768.  5.4.  Conditioning Your Job for Kermit
  2769. 0Kermit-10 does as much as it can to condition your line for file  transfer.   It
  2770.  saves  all  your  terminal  and  link  settings,  and  restores  them after use.
  2771.  However, there are some sources of interference over which Kermit-10 can have no
  2772.  control.   In  particular, incoming messages to your terminal may become mingled
  2773.  with Kermit packets and slow things  down  or  stop  them  entirely.   For  this
  2774.  reason, before using Kermit-10 for any extended period, you may want to :
  2775. 0     - Type the DECsystem-10 command, SET TERMINAL GAG
  2776. 0     - Make sure you don't have any  print  or  batch  jobs  pending  that  were
  2777.         submitted with the /NOTIFY option.
  2778. -
  2779. -
  2780. -
  2781. -
  2782. -
  2783. -
  2784. -
  2785. -
  2786. -
  2787. -
  2788. -
  2789. -
  2790. -
  2791. -
  2792.                                                  Section 5 -- DECsystem-10 Kermit
  2793. 172                                                  Kermit File Transfer Package
  2794. -
  2795.  5.5.  Kermit-10 Commands
  2796. 0This section describes the Kermit-10 commands -- in  detail  where  they  differ
  2797.  from  the  "ideal"  Kermit,  briefly  where  they  coincide.   Kermit-10 has the
  2798.  following commands:
  2799. 0             BYE (This command is for local mode only)
  2800.         LOCAL CWD change DECsystem-10 working directory
  2801.           CONNECT (This command is for local mode only)
  2802.            DEFINE macros of Kermit-10 commands
  2803.      LOCAL DELETE delete DECsystem-10 files
  2804.         LOCAL DIR list directory of DECsystem-10 files
  2805.  LOCAL DISK-USAGE display statistics about DECsystem-10 disk utilization
  2806.       LOCAL ERASE delete DECsystem-10 files
  2807.              EXIT from Kermit-10
  2808.            FINISH (This command is for local mode only)
  2809.               GET (This command is for local mode only)
  2810.              HELP about Kermit-10
  2811.        LOCAL HELP about DECsystem-10 file management commands
  2812.             LOCAL prefix for DECsystem-10 file management commands
  2813.               LOG (This command is for local mode only)
  2814.            LOGOUT (This command is for local mode only)
  2815.              QUIT from Kermit-10
  2816.           RECEIVE files from another Kermit
  2817.            REMOTE (This command is for local mode only)
  2818.              SEND files to another Kermit
  2819.            SERVER mode of remote operation
  2820.               SET various parameters
  2821.    LOCAL SET-PATH set path (same as LOCAL CWD)
  2822.              SHOW various parameters
  2823.       LOCAL SPACE display statistics about DECsystem-10 disk utilization
  2824.            STATUS statistics about most recent file transfer
  2825.      LOCAL STATUS statistics about most recent file transfer
  2826.              TAKE commands from a file
  2827.        LOCAL TYPE type a DECsystem-10 file
  2828. 0Section 3.3 of this manual contains the notation conventions used in the  syntax
  2829.  statements that follow.
  2830. -
  2831. -
  2832. -
  2833. -
  2834. -
  2835. -DECsystem 10 Kermit -- Section 5
  2836. 1Kermit File Transfer Package                                                  73
  2837. -
  2838.  5.5.1.  Commands for File Transfer
  2839. 0Kermit-10 provides the standard SEND, RECEIVE, and GET commands for transferring
  2840.  files  using  the  Kermit  protocol.   The  STATUS  command provides Kermit file
  2841.  transfer statistics.
  2842. -                                The SEND Command
  2843. 0Syntax:  SEND filespec
  2844. -The SEND command causes a file or file group to be sent from the DECsystem-10 to
  2845.  the  other  system.   There  are  two forms of the command, depending on whether
  2846.  filespec contains wildcard characters  ("*"  or  "%").   If  filespec  does  not
  2847.  contain any wildcard characters, then the single file specified by filespec will
  2848.  be sent.  If filespec contains wildcard characters then all matching files  will
  2849.  be sent, in the order in which they are found in the directory.  If a file can't
  2850.  be opened for read access, it will be skipped.
  2851. 0Files will be sent with their DECsystem-10 filename and extension (for  instance
  2852.  FOO.BAR,  no  device  or  directory field, and no protection attribute).  If you
  2853.  expect to be sending files whose names contain characters that would be  illegal
  2854.  in  filenames  on  the target system, and you know that the Kermit on the target
  2855.  system does not have the ability to convert incoming filenames,  you  can  issue
  2856.  the  SET  FILE  NAMING  NORMAL-FORM  command  to  have Kermit-10 replace suspect
  2857.  characters with X's , and create a new file name and attempt to use that name.
  2858. 0By default five 7-bit bytes will be sent from each word in the  file,  with  the
  2859.  8th  bit  of  the 5th character set to the value of the remaining bit ("bit 35")
  2860.  from the word.  For information on sending binary files, refer to Section 5.1.2.
  2861. 0If communication line parity is being used  (see  SET  PARITY),  Kermit-10  will
  2862.  request  that  the  other  Kermit  accept  a special kind of prefix notation for
  2863.  binary files ("eight-bit quoting").  This is an advanced feature,  and  not  all
  2864.  Kermits  have it; if the other Kermit does not agree to use this feature, binary
  2865.  files cannot  be  sent  correctly.   This  includes  executable  programs  (like
  2866.  DECsystem-10  .EXE  files,  PC DOS .COM files), relocatable object modules (.REL
  2867.  files), as well as text files with line sequence numbers.
  2868. 0Kermit-10 will also ask the other Kermit whether it can handle a special  prefix
  2869.  encoding  for  repeated  characters.  If it can, then files with long strings of
  2870.  repeated characters will be transmitted very efficiently.  Columnar data, highly
  2871.  indented text, and binary files are the major beneficiaries of this technique.
  2872. -
  2873. -
  2874. -
  2875. -                                                Section 5 -- DECsystem-10 Kermit
  2876. 174                                                  Kermit File Transfer Package
  2877. -
  2878.                                The RECEIVE Command
  2879. 0Syntax:  RECEIVE [filespec]
  2880. 0The RECEIVE command tells Kermit-10 to receive a file or  file  group  from  the
  2881.  other  system.  If only one file is being received, you may include the optional
  2882.  filespec as the name to store the incoming file under; otherwise,  the  name  is
  2883.  taken  from  the incoming file header.  If the name in the header is not a legal
  2884.  TOPS-10 file name, Kermit-10 will store it named in  accordance  with  the  FILE
  2885.  NAMING option in effect.
  2886. 0If an incoming file has the same name as  an  existing  file,  Kermit-10  either
  2887.  creates  a  new  file name with an extension of three numeric digits or overlays
  2888.  the existing file depending on whether or not FILE WARNING has been  SET  ON  or
  2889.  OFF.
  2890. 0Incoming files will all be stored with the prevailing bytesize,  7  by  default,
  2891.  which  is  appropriate  for  text files.  If you are asking Kermit-10 to receive
  2892.  binary files from a microcomputer or other 8-bit system, you must first type SET
  2893.  FILE  BYTESIZE 8.  Otherwise, the 8th bit of each byte will be lost and the file
  2894.  will be useless when sent back to the system of origin.
  2895. 0If you have SET PARITY, then 8th-bit prefixing will be requested.  If the  other
  2896.  side  cannot  do  this,  binary  files  cannot be transferred correctly.  In all
  2897.  cases, Kermit-10 will request the other Kermit to compress repeated  characters;
  2898.  if  the  other  side  can  do  this  (not  all  Kermits know how) there may be a
  2899.  significant improvement in transmission speed.
  2900. 0If an incoming file does not arrive in its  entirety,  Kermit-10  will  normally
  2901.  discard  it; it will not appear in your directory.  You may change this behavior
  2902.  by using the command SET INCOMPLETE KEEP, which will cause as much of  the  file
  2903.  as arrived to be saved in your directory.
  2904. 0If a file arrives that you don't really want, you can attempt to  cancel  it  by
  2905.  typing  Control-X;  this  sends a cancellation request to the remote Kermit.  If
  2906.  the remote Kermit understands this request (not all  implementations  of  Kermit
  2907.  support this feature), it will comply; otherwise it will continue to send.  If a
  2908.  file group is being sent, you can request  the  entire  group  be  cancelled  by
  2909.  typing Control-Z.
  2910. -
  2911.                                  The GET Command
  2912. 0Syntax:  GET [remote-filespec]
  2913. 0This command is for local mode only.
  2914. -
  2915. -
  2916. -DECsystem 10 Kermit -- Section 5
  2917. 1Kermit File Transfer Package                                                  75
  2918. -
  2919.                                 The STATUS Command
  2920. 0Syntax:  STATUS
  2921. 0Gives statistics about the file transfers for the entire session  and  the  most
  2922.  recent  file  transfer.   The  following  example  shows  the  steps required to
  2923.  transfer a small binary file to the DECsystem-10 and display the statistics  for
  2924.  the transfer.  The example shows the effect of SET FILE BYTE-SIZE 8, the RECEIVE
  2925.  command, and the STAT command output.
  2926. -Kermit-10>SET FILE BYTE-SIZE 8
  2927. +          ____________________
  2928.  Kermit-10>RECEIVE
  2929. +          _______
  2930. 0Kermit-10>STAT
  2931. +          ____
  2932. 0Totals since Kermit was started
  2933.   Total transfer time 0:01:13.900 (73.900 seconds)
  2934.   Characters sent 360
  2935.   Characters received 3876
  2936.   Data characters sent 0
  2937.   Data characters received 3048
  2938.   NAKs sent 1
  2939.   NAKs received 0
  2940.   Total packets sent 56
  2941.   Total packets received 56
  2942.   Effective data rate: 411 baud
  2943. 0Totals for the last transfer
  2944.   Last transfer time 0:00:34.100 (34.100 seconds)
  2945.   Characters sent 177
  2946.   Characters received 1938
  2947.   Data characters sent 0
  2948.   Data characters received 1524
  2949.   NAKs sent 0
  2950.   NAKs received 0
  2951.   Effective data rate: 448 baud
  2952. 0Kermit-10>EXIT
  2953. +          ____
  2954. -
  2955. -
  2956. -
  2957. -
  2958. -
  2959. 0                                                Section 5 -- DECsystem-10 Kermit
  2960. 176                                                  Kermit File Transfer Package
  2961. -
  2962.  5.5.2.  Server Operation
  2963. -                              The SERVER Command
  2964. 0Syntax:  SERVER
  2965. 0The SERVER command puts a remote Kermit-10 in "server mode," so that it receives
  2966.  all  further commands in packets from the local Kermit.  The Kermit-10 server is
  2967.  capable of executing the following remote server commands:  SEND,  GET,  FINISH,
  2968.  BYE,  REMOTE  DIRECTORY,  REMOTE  CWD, REMOTE SPACE, REMOTE DELETE, REMOTE TYPE,
  2969.  REMOTE HELP, and REMOTE STATUS.
  2970. 0Any non-standard parameters should be selected with SET commands before  putting
  2971.  Kermit-10  into  server mode, in particular the file bytesize.  The DECsystem-10
  2972.  Kermit server will send most files  in  the  correct  manner  with  its  default
  2973.  setting  FILE  BYTESIZE  7.  However, if you need to ask the DECsystem-10 Kermit
  2974.  server to receive binary files from an 8-bit-byte system (that is,  from  almost
  2975.  any  system  that's  not  a DECsystem-10 or DECsystem-20) you must issue the SET
  2976.  FILE BYTESIZE 8 command before putting it into server mode, and  then  you  must
  2977.  only send 8-bit binary files.  You cannot send a mixture of text files and 8-bit
  2978.  binary files to a Kermit-10 server except for archiving them on a DECsystem-10.
  2979. -
  2980. -
  2981. -
  2982. -
  2983. -
  2984. -
  2985. -
  2986. -
  2987. -
  2988. -
  2989. -
  2990.  DECsystem 10 Kermit -- Section 5
  2991. 1Kermit File Transfer Package                                                  77
  2992. -
  2993.  5.5.3.  Commands for Local File Management
  2994. 0Syntax:  LOCAL command
  2995. 0Execute the specified command on the local system -- on the  DECsystem-10  where
  2996.  Kermit-10  is  running.   These  commands  provide  some  local  file management
  2997.  capability without having to leave the Kermit-10 program.  These commands can be
  2998.  used  on  a remote Kermit as long as that Kermit is running interactively, i.e.,
  2999.  not in server mode.
  3000. 0CWD [directory] or SET-PATH [directory]
  3001.                    Change working directory,  or,  in  DECsystem-10  terminology,
  3002.                    define the path to the specified directory.
  3003. 0DELETE filespec or ERASE [filespec]
  3004.                    Delete the specified file or files.
  3005. 0DIRECTORY [filespec]
  3006.                    Provide a directory listing of the specified files.
  3007. 0SPACE or DISK-USAGE [directory]
  3008.                    Show how much space is used in the specified directory.  If no
  3009.                    directory is given, data for the current directory are shown.
  3010. 0TYPE filespec
  3011.                    Display the contents of the specified file or  files  at  your
  3012.                    terminal.   This  works  like  the  DECsystem-10 TYPE command,
  3013.                    except that if a file has a bytesize of 8, Kermit-10  will  do
  3014.                    8-bit  input  from  it if you have SET FILE BYTESIZE 8.  Also,
  3015.                    the DECsystem-10 Control-O command discards output  only  from
  3016.                    the  file  currently  being  displayed;  if multiple files are
  3017.                    being typed, then output will resume with the next file.
  3018. 0HELP
  3019.                    List these commands.
  3020. 0STATUS
  3021.                    Displays statistics about file transfers for the session.  The
  3022.                    STATUS  command,  used  without  the  "LOCAL" prefix, displays
  3023.                    statistics about the most recent file transfer as well as  all
  3024.                    the file transfers for the session.
  3025. -
  3026. -
  3027. -
  3028. -
  3029. -                                                Section 5 -- DECsystem-10 Kermit
  3030. 178                                                  Kermit File Transfer Package
  3031. -
  3032.  5.5.4.  The SET, SHOW, and DEFINE Commands
  3033. 0SET is used for establishing or  changing  parameters,  DEFINE  lets  you  group
  3034.  several  SET  commands together into a single "macro" command, and SHOW lets you
  3035.  examine current settings or macro definitions.
  3036. -                                The SET Command
  3037. 0Syntax:  SET parameter option value
  3038. 0Establish or modify various parameters for file transfer or terminal connection.
  3039.  You  can  examine  their values with the SHOW command.  The following parameters
  3040.  may be SET:
  3041. 0         BLOCK-CHECK Packet transmission error detection method
  3042.                 DEBUG (This command is for LOCAL mode only)
  3043.                 DELAY How long to wait before starting to send
  3044.                ESCAPE (This command is for LOCAL mode only)
  3045.                  FILE For setting file parameters like byte size
  3046.                   IBM (This command is for LOCAL mode only)
  3047.            INCOMPLETE What to do with an incomplete file
  3048.                  LINE (This command is for LOCAL mode only)
  3049.            LOCAL-ECHO (This command is for LOCAL mode only)
  3050.               MESSAGE (This command is for LOCAL mode only)
  3051.                PARITY Character parity to use
  3052.                PROMPT Change KERMIT's prompt
  3053.               RECEIVE Various parameters for receiving files
  3054.                REPEAT Character for repeat sequences
  3055.                 RETRY How many times to retry a packet before quitting
  3056.                  SEND Various parameters for sending files
  3057. 0The DEFINE command may be used to compose "macros" by  combining  SET  commands.
  3058.  Those  SET  commands  which  differ from the "ideal" Kermit are now described in
  3059.  detail.
  3060. -
  3061.  SET DEBUG
  3062. 0Syntax:  SET DEBUG options
  3063. 0This command is for local mode only.
  3064. -SET ESCAPE
  3065. 0Syntax:  SET ESCAPE octal-number
  3066. 0This command is for local mode only.
  3067. -
  3068. -DECsystem 10 Kermit -- Section 5
  3069. 1Kermit File Transfer Package                                                  79
  3070. -
  3071.  SET FILE
  3072. 0Syntax:  SET FILE parameter keyword
  3073. 0Establish file-related parameters:
  3074. 0BYTESIZE keyword or number
  3075. 0         Byte size for DECsystem-10 file input/output.  The  choices  are  SEVEN
  3076.           (7), EIGHT (8), THIRTY-SIX (36), and AUTO.
  3077. 0         SEVEN (or 7)
  3078.                Always store or retrieve five 7-bit bytes per word.  When  sending
  3079.                a file, ignore the file bytesize and do 7-bit input from the file.
  3080.                This insures transmission of all 36 bits.  The default is SEVEN.
  3081. 0         EIGHT (or 8)
  3082.                Always store or retrieve four 8-bit bytes per word.  When  sending
  3083.                a file, ignore the file bytesize and do 8-bit input from the file.
  3084.                This command is necessary  when  receiving  and  returning  binary
  3085.                files from/to 8-bit-byte systems, such as most microcomputers.
  3086. 0         THIRTY-SIX (or 36)
  3087.                Always store or retrieve five 7-bit bytes per word.  When  sending
  3088.                a file, ignore the file bytesize and do 7-bit input from the file.
  3089.                This insures transmission of all 36 bits.
  3090. 0         AUTO
  3091.                Equivalent to  SEVEN  for  incoming  files,  and  SEVEN  or  EIGHT
  3092.                depending on the mode for outgoing.
  3093. 0         The DECsystem-10 will frequently use the wrong byte-size  when  set  to
  3094.           AUTO.    Refer  to  Section  5.1.2  for  proper  settings  for  various
  3095.           transfers.
  3096. -NAMING UNTRANSLATED or NORMAL-FORM
  3097. 0         If NORMAL-FORM, the  names  of  incoming  or  outgoing  files  will  be
  3098.           converted  to  contain  only uppercase letters, digits, and at most one
  3099.           period; any other characters will be replaced by 'X'.  If UNTRANSLATED,
  3100.           filenames  will  be  sent  and  used  literally.   UNTRANSLATED  is the
  3101.           default.
  3102. -SET LINE
  3103. 0Syntax:  SET LINE [octal-number]
  3104. 0This command is for local mode only.
  3105. -
  3106. -                                                Section 5 -- DECsystem-10 Kermit
  3107. 180                                                  Kermit File Transfer Package
  3108. -
  3109.  SET LOCAL-ECHO
  3110. 0Syntax:  SET LOCAL-ECHO ON or OFF
  3111. 0This command is for local mode only.
  3112. -SET MESSAGE
  3113. 0Syntax:  SET MESSAGE type
  3114. 0This command is for local mode only.
  3115. -SET RECEIVE
  3116. 0Syntax:  SET RECEIVE parameter value
  3117. 0In addition to the full complement of SET RECEIVE commands described in the main
  3118.  part  of the Kermit File Transfer Package, you may also SET RECEIVE TIMEOUT to a
  3119.  value between 0 and 94.  This specifies the number of seconds  between  timeouts
  3120.  during  server  command  wait,  0 specifies that no timeouts should occur during
  3121.  server command wait.  When a Kermit server times out, it  sends  a  NAK  packet.
  3122.  Some  systems  cannot  clear  piled-up  NAKs from their input buffers; if you're
  3123.  using such a system to communicate with a Kermit-10 server, and you expect to be
  3124.  leaving the server idle for long periods of time, you should use this command to
  3125.  turn off server command-wait timeouts.
  3126. -SET REPEAT
  3127. 0Syntax:  SET REPEAT value
  3128. 0This command sets the character to be used as the lead-in character for a repeat
  3129.  sequence  (a  string  of  characters  which represents some number of characters
  3130.  which are repeated in the data).  Both Kermits must support  repeat  compression
  3131.  for  this  to  be  in  effect.  The character set by this command must be in the
  3132.  range 41 ("1") to 76 (">") or 140 ("\") to 176 ("~").  The character  will  only
  3133.  be used on files which are being transmitted by Kermit-10.  The repeat character
  3134.  used for incoming files is determined by the other Kermit.  The default value is
  3135.  176 ("~").  A value of 40 (a space) will disable repeat compression.
  3136. 0     Kermit-10>SET REPEAT nnn
  3137. +               ______________
  3138. 0Where nnn is the ASCII value for the repeat quoting character in octal.
  3139. -
  3140. -
  3141. -
  3142. 0DECsystem 10 Kermit -- Section 5
  3143. 1Kermit File Transfer Package                                                  81
  3144. -
  3145.                                 The DEFINE Command
  3146. 0Syntax:  DEFINE macroname [set-option [, set-option [...]]]
  3147. 0The DEFINE command is available  in  Kermit-10  for  building  "macros"  of  SET
  3148.  commands.  The macro name can be any keyword-style character string, and the set
  3149.  options are anything you would type after SET in  a  SET  command;  several  set
  3150.  options may be strung together, separated by commas.  Example:
  3151. 0 define notimeout send timeout 0, receive timeout 0, receive server 0
  3152. 0Macro definitions may not include macro names.  You can list all your macros and
  3153.  their definitions with the SHOW MACROS command.
  3154. -
  3155.                                  The SHOW Command
  3156. 0Syntax:  SHOW [option]
  3157. 0The SHOW command displays various information:
  3158. 0DAYTIME     Current date, and time.
  3159. 0DEBUGGING   Debugging mode in effect, if any.
  3160. 0FILE-INFO   Byte size for DECsystem-10 file I/O, incomplete file disposition.
  3161. 0LINE-INFO   TTY line, parity, local-echo, handshake, escape character, speed (if
  3162.              known), and session logging information.
  3163. 0MACROS      Definitions for SET macros.
  3164. 0PACKET-INFO For incoming and outbound packets.  Items under RECEIVE column  show
  3165.              parameters  for  packets  Kermit-10  expects  to receive, under SEND
  3166.              shows parameters for outgoing packets.
  3167. 0TIMING-INFO Delays, retries, server NAK intervals.
  3168. 0VERSION     Program version of Kermit-10.  This is also displayed when Kermit-10
  3169.              is initially started.
  3170. 0ALL         (default) All of the above.
  3171. -
  3172. -
  3173. -
  3174. -
  3175.                                                  Section 5 -- DECsystem-10 Kermit
  3176. 182                                                  Kermit File Transfer Package
  3177. -
  3178.  The following example shows the default  settings  as  displayed  via  the  SHOW
  3179.  command.
  3180. 0Kermit-10> SHOW
  3181. +           ____
  3182.  TOPS-10 Kermit version 3(133)
  3183.   2-Apr-86 21:56:36
  3184. 0Line being used is TTY14: (DOC(43):: line # 10)
  3185.    Handshake: X?
  3186.    Parity:      none
  3187.    Local echo:  off  Escape:      XY
  3188.    XON-XOFF-processing:  default
  3189. 0File type is 7-bit
  3190.  File naming: Normal form file specifications
  3191.  File warning is off
  3192.  Disposition for incomplete received files: Discard
  3193. 0File specification type out is on
  3194.  Packet number type out is off
  3195.  Debugging is off
  3196. 0Packet parameters:
  3197.                      Receive        Send
  3198.    Size:                  80          80 chars
  3199.    Padding:                0           0
  3200.    Pad Character:         X@          X@
  3201.    End-Of-Line:           XM          XM
  3202.    Control Quote:          #           #
  3203.    Start-of-Packet:       XA          XA
  3204. 0 8th-bit Quote character &
  3205.   Repeat Quote character  ~
  3206.   Block check type is 3 character CRC-CCITT
  3207. 0Timing parameters:
  3208.                      Receive        Send
  3209.    Time out:              15          15 secs
  3210. 0  Delay before sending first packet: 5 secs
  3211.    Packet retries before timeout: 16
  3212.    Number of retries for initial packet: 5
  3213.    Server NAKs every 75 seconds while waiting for commands
  3214. -  No defined macros
  3215. -
  3216. -
  3217. -
  3218.  DECsystem 10 Kermit -- Section 5
  3219. 1Kermit File Transfer Package                                                  83
  3220. -
  3221.  5.5.5.  Program Management Commands
  3222. -                                The TAKE Command
  3223. 0Syntax:  TAKE filespec
  3224. 0Execute Kermit-10 commands from  the  specified  file.   The  file  may  contain
  3225.  contain  any  valid  Kermit-10  commands, including other TAKE commands; command
  3226.  files may be nested up to a depth of 20.  Default file type for the command file
  3227.  is .CMD.
  3228. -                                The HELP Command
  3229. 0Syntax:  HELP [topic [subtopic]]
  3230. 0Typing HELP alone prints a brief summary of Kermit-10 and its commands.  You can
  3231.  also type
  3232. 0  HELP command
  3233. 0for any Kermit-10 command, e.g., "help send" or "help set parity"  to  get  more
  3234.  detailed information about a specific command.
  3235. -
  3236.                             The EXIT and QUIT Commands
  3237. 0Syntax:  EXIT or QUIT
  3238. 0Exit from Kermit-10.  You can CONTINUE the program from  the  MONITOR,  provided
  3239.  you  haven't run another program on top of it.  You can also exit from Kermit-10
  3240.  by typing one or more control-C's, even if it's in the middle of transferring  a
  3241.  file.   Kermit-10  will  always restore your terminal to its original condition,
  3242.  and you will be able to CONTINUE the program to get back to "Kermit-10>" command
  3243.  level with current settings intact.
  3244. 0QUIT is a synonym for EXIT.
  3245. -                                The LOG Command
  3246. 0Syntax:  LOG [option [filespec]]
  3247. 0This command is for local mode only.
  3248. -
  3249. -
  3250. -
  3251.                                                  Section 5 -- DECsystem-10 Kermit
  3252. 184                                                  Kermit File Transfer Package
  3253. -
  3254.  5.6.  Raw Download
  3255. 0This facility is for local mode only.
  3256. -
  3257. -
  3258. -
  3259. -
  3260. -
  3261. -
  3262. -
  3263. -
  3264. -
  3265. -
  3266. -
  3267. -
  3268. -
  3269. -
  3270. -
  3271. -
  3272. -
  3273. 0DECsystem 10 Kermit -- Section 5
  3274. 1Kermit File Transfer Package                                                  85
  3275. -
  3276.  5.7.  Kermit-10 Examples
  3277. 0Here are a few examples of the use of Kermit-10.  Text entered by  the  user  is
  3278.  underlined.
  3279. -                                Remote Operation
  3280. 0The following example shows use of Kermit-10 as a server from  an  IBM  PC.   In
  3281.  this  example, the user runs Kermit on the PC, connects to the DECsystem-10, and
  3282.  starts Kermit-10 in server mode.  From  that  point  on,  the  user  need  never
  3283.  connect  to  the DECsystem-10 again.  In this example, the user gets a file from
  3284.  the DECsystem-10, works on it locally at the PC, and then sends the results back
  3285.  to  the DECsystem-10.  Note that the user can leave and restart Kermit on the PC
  3286.  as often as desired.
  3287. 0 A>______
  3288. +   kermit
  3289.   Kermit-MS>connect
  3290. +           _______
  3291.   .
  3292.   .k_____
  3293. +  _ermit
  3294.   TOPS-10 Kermit version 3(133)
  3295. 0 Kermit-10>server
  3296. +           ______
  3297. 0     [Kermit Server running on  DECsystem-10  host.   Please  type  your  escape
  3298.       sequence  to  return to your local machine.  Shut down the server by typing
  3299.       the Kermit BYE command on your local machine.]
  3300. 0 X]C
  3301. + ___
  3302.   Kermit-MS>get foo.txt
  3303. +           ___________
  3304. 0     ;The transfer takes place.
  3305. 0 Kermit-MS>exit
  3306. +           ____
  3307.   A>
  3308.   A>edit foo.txt ; (or whatever...)
  3309. +   ____________
  3310.   A>
  3311.   A>k_____
  3312. +   _ermit
  3313.   Kermit-MS>send foo.txt
  3314. +           ____________
  3315. 0     ;The transfer takes place.
  3316. 0 Kermit-MS>bye
  3317. +           ___
  3318.   A>
  3319. -
  3320. -
  3321. -
  3322. -                                                Section 5 -- DECsystem-10 Kermit
  3323. 186                                                  Kermit File Transfer Package
  3324. -
  3325.  The next example shows the special procedure you would have to use in  order  to
  3326.  send  a  mixture of text and binary files from a PC (or an 8-bit-byte system) to
  3327.  the DECsystem-10.  Note that in this case, it's more convenient to avoid  server
  3328.  mode.
  3329. 0 Kermit-MS>connect
  3330. +           _______
  3331.   .
  3332.   .k_____
  3333. +  _ermit
  3334.   TOPS-10 Kermit version 3(133)
  3335. 0 Kermit-10>receive
  3336. +           _______
  3337.   X]C
  3338. + ___
  3339.   Kermit-MS>send *.txt
  3340. +           __________
  3341. 0     ;Textual files are sent.
  3342. 0 Kermit-MS>connect
  3343. +           _______
  3344.   Kermit-10>set file bytesize 8
  3345. +           ___________________
  3346.   Kermit-10>receive
  3347. +           _______
  3348.   X]C
  3349. + ___
  3350.   Kermit-MS>send *.exe
  3351. +           __________
  3352. 0     ;Binary files are sent.
  3353. 0 Kermit-MS>connect
  3354. +           _______
  3355.   Kermit-10>exit
  3356. +           ____
  3357.   .logout
  3358. +  ______
  3359.   X]C
  3360. + ___
  3361.   Kermit-MS>exit
  3362. +           ____
  3363.   A>
  3364. -
  3365. -
  3366. -
  3367. -
  3368. -
  3369. -
  3370. -
  3371. -
  3372. 0DECsystem 10 Kermit -- Section 5
  3373. 1Kermit File Transfer Package                                                  87
  3374. -
  3375.  6.  TSO Kermit
  3376. 0TSO Kermit Capabilities At a Glance:
  3377. 0      Local operation:  No
  3378.        Remote operation:  Yes
  3379.        Transfers text files:  Yes
  3380.        Transfers binary files:  Yes
  3381.        Wildcard send:  Yes
  3382.        XX/XY interruption:  Yes
  3383.        Filename collision avoidance:  No
  3384.        Timeouts:  Yes
  3385.        8th-bit prefixing:  Yes
  3386.        Repeat character compression:  Yes
  3387.        Alternate block check types:  Yes
  3388.        Communication settings:  No
  3389.        Transmit BREAK:  No
  3390.        IBM mainframe communication:  Yes
  3391.        Transaction logging:  No
  3392.        Session logging:  No
  3393.        Debug logging:  Yes
  3394.        Raw transmit:  No
  3395.        Login scripts: No
  3396.        Act as server:  Yes
  3397.        Talk to server: No
  3398.        Advanced commands for servers:  No
  3399.        Local file management:  Yes
  3400.        Command/init files:  Yes
  3401.        Handle file attributes:  No
  3402. 0KERMIT is a set of programs that transfers files between computers  over  normal
  3403.  terminal  communication  lines.   Originally  designed  to  be  used  between  a
  3404.  microcomputer and the DEC-20 mainframe, the protocol will  also  transfer  files
  3405.  between a microcomputer and an IBM mainframe system running under MVS/TSO.  This
  3406.  version, called TSO Kermit, was developed at NIH based upon  the  University  of
  3407.  Chicago TSO version, which was in turn based upon a VM/CMS version from Columbia
  3408.  University.
  3409. 0KERMIT transfers data by creating packets with information regarding the type of
  3410.  packet  being  sent,  its  length,  a packet number, and a checksum to determine
  3411.  whether the data has been modified during transmission.  If a packet is lost  or
  3412.  garbled, Kermit will attempt to resend it.
  3413. 0MVS/TSO stores files as records rather than byte streams.  MVS/TSO Kermit has to
  3414.  assemble   incoming   data  packets  into  records  and  strip  CRLFs  (carriage
  3415.  return/line feed characters) from incoming  lines,  and  also  append  CRLFs  to
  3416.  outgoing records.
  3417. 0You must be  emulating  an  ASCII  terminal  (rather  than  a  3270)  with  your
  3418.  microcomputer  to  run  TSO Kermit.  Kermits that do not support 8th-bit-quoting
  3419.  cannot do binary file transfers with TSO Kermit.
  3420. -
  3421. 0                                                         Section 6 -- TSO Kermit
  3422. 188                                                  Kermit File Transfer Package
  3423. -
  3424.  6.1.  The IBM MVS File System
  3425. 0Since TSO Kermit runs under TSO, the user must be aware of the MVS TSO data  set
  3426.  naming  conventions.  Since data set names are specified differently in MVS than
  3427.  in MS-DOS or APPLE-DOS, care should be exercised in selecting the names for data
  3428.  sets  on  the  target  system  when  data sets are being transmitted between two
  3429.  unlike file systems.  The following discussion is to  help  with  this  planning
  3430.  process on the TSO Kermit side.
  3431. 0Data sets on the online storage volumes are distinguished from  one  another  by
  3432.  associating  with  each  data  set  a unique name, known as the data set name or
  3433.  "dsname."  All data set names on the online storage volumes begin with a  prefix
  3434.  containing  the  user's  account  number,  followed by the user's initials and a
  3435.  period.  TSO automatically attaches this prefix to the data set  name  specified
  3436.  by  the  user.  Thus, if the user's account is AAAA and initials are III, a data
  3437.  set named PROGRAM will be stored by TSO as AAAAIII.PROGRAM.  Such  a  completely
  3438.  specified  data  set  name is referred to as "fully qualified."  Normally, fully
  3439.  qualified data set names are not used in TSO Kermit unless it  is  necessary  to
  3440.  refer to another user's data set.
  3441. 0The SET PREFIX command may be used to specify a data set name prefix to be  used
  3442.  as  the  first part of all the data set names for the duration of the TSO Kermit
  3443.  session (e.g., if the prefix is "TASK1."  then the fully qualified data set name
  3444.  will start with "AAAAIII.TASK1."). The prefix may be overridden by enclosing the
  3445.  data set name in quotes.
  3446. 0Data set names may be up to 44 characters long, but the user selected portion of
  3447.  the  dsname  is limited to 36 characters unless it is fully qualified, since the
  3448.  first eight characters are reserved for  the  account-initials  prefix.   Unless
  3449.  otherwise  stated, the term "dsname" will refer to the data set name without the
  3450.  prefix.  Alphanumeric characters (letters and digits), national  characters  (@,
  3451.  $,  #),  and  the  special  characters  period  (.)  and hyphen (-) are the only
  3452.  characters allowed to form a dsname.
  3453. 0All data sets used with TSO Kermit must be cataloged.  The  first  character  of
  3454.  the  dsname  and  the  first character following a period in a dsname must be an
  3455.  alphabetic or national (@, $, #) character, and periods must be used  to  divide
  3456.  the  name  into  groups of eight or fewer characters (not counting the periods).
  3457.  The data set name is divided by the periods into levels.  A data set  cannot  be
  3458.  cataloged  if there is already a data set cataloged with a name that is the same
  3459.  through one of the levels.  For example, if AAAAIII.MEMO.COSTS is the name of  a
  3460.  cataloged   data   set,   it   is   valid   to   catalog   a   data   set  named
  3461.  AAAAIII.MEMO.FINANCE, but it is invalid to catalog AAAAIII.MEMO.COSTS.FINAL. The
  3462.  reverse  is  also  true.   For example, if a data set named AAAAIII.DATA.JULY is
  3463.  cataloged, the data set AAAAIII.DATA cannot be cataloged,  while  the  data  set
  3464.  AAAAIII.DAT can be cataloged.
  3465. 0For data sets which have been created and not cataloged, the user  may  use  the
  3466.  TSO or WYLBUR CATALOG command to catalog the data set.
  3467. 0TSO Kermit supports a full range of MVS RECFM (record  format),  LRECL  (logical
  3468.  record  length), and BLKSIZE (block size) options.  Note that the default format
  3469. -
  3470.  TSO Kermit -- Section 6
  3471. 1Kermit File Transfer Package                                                  89
  3472. -
  3473.  for text data sets uploaded using TSO Kermit is WYLBUR edit  format.   The  user
  3474.  may  specify  which volume the file will be saved and catalogued on by using the
  3475.  TSO Kermit SET VOLUME command.  If no volume is set, TSO Kermit will select  any
  3476.  available TMP volume.
  3477. -
  3478. -
  3479. -
  3480. -
  3481. -
  3482. -
  3483. -
  3484. -
  3485. -
  3486. -
  3487. -
  3488. -
  3489. -
  3490. -
  3491. -
  3492. -
  3493. -
  3494.                                                           Section 6 -- TSO Kermit
  3495. 190                                                  Kermit File Transfer Package
  3496. -
  3497.  6.2.  Program Operation
  3498. 0TSO Kermit is run interactively under TSO.  In the examples  that  follow,  user
  3499.  input is underlined (to distinguish it from prompts, etc.). Enter
  3500. +         __________
  3501. 0KERMIT
  3502. +______
  3503. 0in order to commence a TSO Kermit session, or alternatively,
  3504. 0KERMIT <command>
  3505. +________________
  3506. 0in order to initiate a TSO Kermit session and execute a TSO Kermit command.
  3507. 0When TSO Kermit is communicating with the terminal directly it can be recognized
  3508.  by its prompt:
  3509. 0KERMIT-TSO>
  3510. 0The following example shows the default environment set up by TSO Kermit when it
  3511.  is  initially invoked from TSO.  The default parameter settings may be displayed
  3512.  at any time during your  Kermit  session  by  issuing  the  SHOW  command.   For
  3513.  example,
  3514. 0KERMIT-TSO> SHOW
  3515. +            ____
  3516. 0Data Set Attributes                     Protocol Attributes
  3517.  DATA: Text                              DELAY (after SEND): 20 seconds
  3518.  EDIT (WYLBUR edit format data set): on  TIMER (Timeout interval): on (8 seconds)
  3519.  NUMBERED (line nos.): off               BLOCK (Block check type): 3 (CRC)
  3520.  TABS: off                               PACKET (Receive packet size): 94
  3521.  RECFM (Record format): VB               CQUOTE (Control quote character): #
  3522.  LRECL (Logical record length): 504      BQUOTE (Binary quote character): &
  3523.  BLKSIZE (Block size): 6356              RQUOTE (Repeat quote character): ~
  3524.  SPACE (Space allocation): 5 tracks      SOH (Start of Header): 1 (SOH,XA)
  3525.  VOLUME: TMP                             SEOL (Send End-of-line): 13 (CR,XM)
  3526.  PREFIX: No prefix                       REOL (Receive End-of-line): 13 (CR,XM)
  3527.                                          DEBUG: off
  3528. 0Values displayed by the SHOW command may be  modified  by  the  TSO  Kermit  SET
  3529.  command.
  3530. 0KERMIT-TSO> SET <parameter> <value>
  3531. +            _______________________
  3532. -
  3533. -
  3534. -
  3535. -
  3536. 0TSO Kermit -- Section 6
  3537. 1Kermit File Transfer Package                                                  91
  3538. -
  3539.  In the example that follows, note that initially TSO Kermit is set up  for  text
  3540.  (rather  than  binary) data sets, with WYLBUR edit format as the default.  Since
  3541.  data sets stored in WYLBUR edit format are compressed,  they  will  appear  very
  3542.  strange  if  listed  with the TSO LIST command or processed by any other program
  3543.  that does not support edit format.
  3544. 0TSO Kermit provides the user with the option  of  executing  most  TSO  commands
  3545.  without  exiting  from  TSO  Kermit  by  simply  prefixing  the command with the
  3546.  characters TSO.  For example,
  3547. 0KERMIT-TSO> TSO LISTC
  3548. +            _________
  3549. 0The TSO LISTC command will list all the data set names in the catalog under  the
  3550.  account and initials for the TSO session.
  3551. 0If the user has a standard sequence of commands  to  be  issued  each  time  TSO
  3552.  Kermit  is  run,  these  commands  may  be saved in a data set and automatically
  3553.  executed by TSO Kermit.  KERMIT.PROFILE.CLIST is the name of the "profile"  data
  3554.  set  which  is  executed  automatically by TSO Kermit if it exists.  Note:  This
  3555.  data set must not be in WYLBUR edit format.
  3556. 0Since it would be inconvenient to frequently logoff TSO  and  logon  to  WYLBUR,
  3557.  users  have  the  ability  to  execute WYLBUR under TSO.  This means that Kermit
  3558.  users can avail themselves of the facilities of TSO Kermit and  still  have  the
  3559.  capabilities of WYLBUR at their disposal as follows:
  3560. 0KERMIT-TSO> TSO ______
  3561. +            ____WYLBUR
  3562. 0As soon as WYLBUR is invoked, the prompt changes to the familiar WYLBUR prompt:
  3563. 0?
  3564. 0At this point the user may enter WYLBUR commands and use WYLBUR to process  data
  3565.  received  by Kermit or to do anything else.  When finished, the user simply uses
  3566.  the WYLBUR END command to return to the Kermit prompt:
  3567. 0KERMIT-TSO>
  3568. 0Likewise, it is possible to invoke TSO Kermit from within WYLBUR  under  TSO  by
  3569.  using  the  WYLBUR  TSO command.  The example that follows illustrates the above
  3570.  capabilities, and shows the desired  method  for  transmitting  a  file  from  a
  3571.  microcomputer  to  the  IBM  System  370  and  from  the  IBM  System  370  to a
  3572.  microcomputer.
  3573. -
  3574. -
  3575. -
  3576. -
  3577.                                                           Section 6 -- TSO Kermit
  3578. 192                                                  Kermit File Transfer Package
  3579. -
  3580.  The  following  dialing  procedure  assumes  you  have  started  Kermit  on  the
  3581.  microcomputer and are using a Hayes compatible modem.
  3582. 0___________
  3583. +ATDT4922223
  3584.  CONNECT
  3585.  logon
  3586. +_____
  3587.  INITIALS? iii
  3588. +          ___
  3589.  ACCOUNT? aaaa
  3590. +         ____
  3591.  KEYWORD? kkk
  3592. +         ___
  3593.  TERMINAL? none
  3594. +          ____
  3595.  BOX? nnn
  3596. +     ___
  3597.  AAAAIII LOGON IN PROGRESS AT 11:26:19 ON JUNE 11, 1986
  3598.   NIH/DCRT/CCB TSO
  3599.  TSO LINE 13B
  3600.  READY
  3601.  kermit
  3602. +______
  3603.  NIH TSO KERMIT VERSION 1.0
  3604.  KERMIT-TSO>
  3605. 0Prior to transmitting the file from the microcomputer, the user must assure that
  3606.  no  file  naming  conflict  exists  on  the  IBM System 370.  In this example, a
  3607.  currently existing version of the file to  be  transferred,  TREE.TXT,  must  be
  3608.  deleted on the host prior to initiating the transfer.  The TSO DELETE command is
  3609.  issued.
  3610. 0KERMIT-TSO> tso delete tree.txt
  3611. +            ___________________
  3612. 0ENTRY (A) AAAAIII.TREE.TXT DELETED
  3613. 0The only TSO Kermit command required is a SERVER command which puts  TSO  Kermit
  3614.  into a state to process commands issued from the microcomputer.
  3615. 0KERMIT-TSO> server
  3616. +            ______
  3617.   Now entering SERVER mode - type FINISH or LOGOUT on micro to halt SERVER
  3618. 0At this point, TSO Kermit is in server mode and is waiting for the commands from
  3619.  the remote Kermit.
  3620. -
  3621. -
  3622. -
  3623. -
  3624. -
  3625. -
  3626.  TSO Kermit -- Section 6
  3627. 1Kermit File Transfer Package                                                  93
  3628. -
  3629.  Now we must issue commands to KERMIT on the microcomputer (this example  assumes
  3630.  an  IBM  PC  running  MS-DOS  Kermit),  without breaking the connection with TSO
  3631.  Kermit.  We do this by issuing the escape sequence:
  3632. 0___
  3633. +X]C
  3634. 0The notation above means:  press and hold the Ctrl Key,  then  press  the  right
  3635.  bracket, release both keys and press the 'C' key.
  3636. 0This results in the microcomputer Kermit issuing its prompt:
  3637. 0Kermit-MS> send tree.txt
  3638. +           _____________
  3639. 0Issuing the SEND command starts up transfer of the PC-DOS file TREE.TXT from the
  3640.  microcomputer  to  TSO.   During  the  transfer, statistics are displayed at the
  3641.  microcomputer terminal until the  transfer  completes,  and  the  normal  Kermit
  3642.  command prompt is re-displayed:
  3643. 0Kermit-MS> get log.dat
  3644. +           ___________
  3645. 0Issuing the GET command starts up transfer of the data set LOG.DAT from  TSO  to
  3646.  the  microcomputer.   During  the  transfer,  statistics  are  displayed  at the
  3647.  microcomputer terminal until the  transfer  completes,  and  the  normal  Kermit
  3648.  command prompt is re-displayed:
  3649. 0Kermit-MS> finish
  3650. +           ______
  3651. 0After the file LOG.DAT has been  transferred  to  the  PC,  issuing  the  FINISH
  3652.  command  terminates  server  mode  on TSO Kermit.  At this point Kermit is still
  3653.  running on both the PC and TSO and the user has the option of issuing a  CONNECT
  3654.  command,  terminating  TSO Kermit, and logging off, or continuing the TSO Kermit
  3655.  session.
  3656. 0Kermit-MS> connect
  3657. +           _______
  3658. 0After receiving the TSO Kermit prompt, issue the QUIT command to return  to  the
  3659.  TSO prompt and then LOGOFF normally.
  3660. 0KERMIT-TSO> quit
  3661. +            ____
  3662.  READY
  3663.  ______
  3664. +logoff
  3665. 0Type the escape sequence to get back to the KERMIT prompt on the  PC,  and  then
  3666.  issue a QUIT command to return to the DOS prompt.
  3667. 0X]C
  3668. +___
  3669.  Kermit-MS> quit
  3670. +           ____
  3671.  A>
  3672. -
  3673. -
  3674. 0                                                         Section 6 -- TSO Kermit
  3675. 194                                                  Kermit File Transfer Package
  3676. -
  3677.  6.2.1.  Starting TSO Kermit
  3678. 0After the TSO session has been started, the KERMIT command  is  used  to  invoke
  3679.  Kermit.   The  user can simply type the KERMIT command, or can invoke TSO Kermit
  3680.  and execute a specified command in one step by following KERMIT with a valid TSO
  3681.  Kermit command.
  3682. 0KERMIT
  3683. 0      or
  3684. 0KERMIT <TSO Kermit command>
  3685. 0For example:
  3686. 0KERMIT SERVER  (to initiate Kermit in server mode)
  3687.       or
  3688.  KERMIT EXEC xxx (where xxx is the name of a TSO CLIST containing Kermit commands)
  3689. -
  3690. -
  3691. -
  3692. -
  3693. -
  3694. -
  3695. -
  3696. -
  3697. -
  3698. -
  3699. -
  3700. -
  3701. 0TSO Kermit -- Section 6
  3702. 1Kermit File Transfer Package                                                  95
  3703. -
  3704.  6.2.2.  TSO Kermit Commands
  3705. 0TSO Kermit includes the following commands.  Refer to the  detailed  explanation
  3706.  of each command as necessary.
  3707. 0Command      Function
  3708. +_______      ________
  3709. 0END          Terminate TSO Kermit and return to TSO  (a  synonym  for  EXIT  and
  3710.               QUIT)
  3711. 0EXEC         Execute TSO Kermit commands from a CLIST data set
  3712. 0EXIT         Terminate TSO Kermit and return to TSO (a synonym for END and QUIT)
  3713. 0FINISH       Terminate server mode for file transfer  (normally  issued  to  the
  3714.               local Kermit, but accepted by TSO Kermit as well)
  3715. 0HELP         Tell how to display list of Kermit commands or command operands
  3716. 0KERMIT       Used in CLISTs to prefix Kermit SET commands to distinguish  Kermit
  3717.               SET from TSO SET commands
  3718. 0QUIT         Terminate TSO Kermit and return to TSO (a synonym for END and EXIT)
  3719. 0RECEIVE      Put TSO Kermit in RECEIVE mode for incoming files
  3720. 0RESET        Reset initial default Kermit parameter settings
  3721. 0SET          Change data and protocol options
  3722. 0SEND         Start transmission of a file or files
  3723. 0SERVER       Put TSO Kermit into server mode for file transfer
  3724. 0SHOW         Display data and protocol parameter settings
  3725. 0STATUS       Display status information for last file transfer
  3726. 0STOP         Abort a RECEIVE or SEND command
  3727. 0TSO          Invoke TSO commands under TSO Kermit
  3728. 0?            Display a list of TSO Kermit commands
  3729. 0TSO Kermit commands may be abbreviated as follows:
  3730. 0END (E); EXEC (X, EX, EXEC, XEQ); RECEIVE (REC); SHOW (SH); STATUS (STAT)
  3731. -
  3732. -
  3733. -                                                         Section 6 -- TSO Kermit
  3734. 196                                                  Kermit File Transfer Package
  3735. -
  3736.  6.3.  Conditioning Your Session for Kermit
  3737. 0Prior to communicating with TSO Kermit,  a  remote  Kermit  must  establish  the
  3738.  appropriate protocol parameters for IBM MVS TSO.
  3739. 0Do not use SET IBM or DO IBM commands on those Kermits that have these  commands
  3740.  as  they  are  usually  intended for use with the IBM VM/CMS system, rather than
  3741.  TSO.  The following discussion tells you what parameters must  be  set  and  the
  3742.  values to use.
  3743. 0Parameters that must be SET on the microcomputer Kermit for  communication  with
  3744.  WYLBUR or TSO.
  3745. 0APPLE ][ Kermit            IBM PC Kermit              "IDEAL" Kermit
  3746.  --------------------       -------------------------  --------------------
  3747.                             FLOW-CONTROL NONE          FLOW-CONTROL NONE
  3748.                             HANDSHAKE NONE             HANDSHAKE NONE
  3749.  LOCAL-ECHO ON              LOCAL-ECHO ON              DUPLEX HALF
  3750.  PARITY EVEN                PARITY EVEN                PARITY EVEN
  3751.  BAUD-RATE as desired       SPEED as desired           BAUD-RATE as desired
  3752.  LINEFEED OFF               TERMINAL NEWLINE-MODE OFF
  3753.  EIGHT-BIT-QUOTING ON
  3754.  --------------------------------------------------------------------------
  3755. 0NIH provides an MSKERMIT.INI file for MS-DOS Kermit for the IBM PC that  defines
  3756.  a  DO  TSO  command  that  will  set appropriate options for TSO.  MS-DOS Kermit
  3757.  automatically executes the commands in this file each time  Kermit  is  started,
  3758.  but  the user must manually issue the DO TSO command unless it has been added to
  3759.  the MSKERMIT.INI file.
  3760. 0TSO Kermit does as much as it can to condition your session for  file  transfer.
  3761.  It sets common defaults for data and protocol settings.  In addition, TSO Kermit
  3762.  can be set up to automatically establish data and  protocol  settings  different
  3763.  from  the  defaults if the user so desires.  This is done by executing a PROFILE
  3764.  of commands stored in a data set when TSO Kermit is initiated.  This is  how  it
  3765.  works:   the  user creates a cataloged data set named KERMIT.PROFILE.CLIST. This
  3766.  data set must have line numbers in the last 8 columns if it is RECFM=FB,  or  in
  3767.  columns 1/8 if it is RECFM=VB (it may not be WYLBUR edit format).  You may store
  3768.  any TSO Kermit COMMANDS you wish in this data set and they will be automatically
  3769.  executed every time you execute Kermit under TSO.
  3770. 0Note that the KERMIT command is specifically provided under TSO Kermit to  allow
  3771.  users  to  specify that, in a CLIST, SET commands prefixed with Kermit are to be
  3772.  treated as Kermit SET commands instead of TSO CLIST SET commands.
  3773. -
  3774. -
  3775. -
  3776. -TSO Kermit -- Section 6
  3777. 1Kermit File Transfer Package                                                  97
  3778. -
  3779.  6.4.  TSO Kermit Commands
  3780. 06.4.1.  Server Operation
  3781. 0The SERVER command puts a remote  TSO  Kermit  in  "server  mode,"  so  that  it
  3782.  receives all further commands in packets from the microcomputer Kermit.  The TSO
  3783.  Kermit server is capable (as of this writing) of executing the following  remote
  3784.  server commands:
  3785. 0      GET remote-filespec
  3786. 0               Transfer  the  TSO  file(s)  named  in  remote-filespec  to   the
  3787.                 microcomputer.
  3788. 0      SEND filespec1 [filespec2]
  3789. 0               Transfer the microcomputer file(s) named in filespec1 to TSO.  If
  3790.                 filespec1  is  a  single  file, filespec2 can be used to override
  3791.                 filespec1 as the data set named used by TSO.
  3792. 0      FINISH   Terminates server mode  and  returns  the  microcomputer  to  the
  3793.                 Kermit prompt.
  3794. 0      LOGOUT   Terminates server mode, terminates TSO session on the  host,  and
  3795.                 returns the microcomputer to the Kermit prompt.
  3796. 0      BYE      Terminates server mode, terminates the TSO session on  the  host,
  3797.                 terminates   Kermit   on   the  microcomputer,  and  returns  the
  3798.                 microcomputer to the DOS prompt.
  3799. 0Any non-standard parameters should be selected with SET commands before  putting
  3800.  TSO Kermit into server mode.  If you forget to do this, issue the FINISH command
  3801.  to the local Kermit to exit server mode, issue  the  appropriate  SET  commands,
  3802.  then  issue  the SERVER command to get back into server mode.  The principal use
  3803.  of the SERVER command and server mode of TSO Kermit is to simplify the  commands
  3804.  that  must  be  issued  to effect file transfers.  When finished with the server
  3805.  mode,  the  user  must  issue  the  FINISH,  BYE,  or  LOGOUT  command  to   the
  3806.  microcomputer  Kermit  to  terminate  server mode on the TSO Kermit side.  After
  3807.  placing TSO Kermit in server mode, type the escape  sequence  (Control-]  C  for
  3808.  MS-DOS  Kermit)  and  then  issue  GET  or  SEND commands from the microcomputer
  3809.  Kermit.  Server mode simplifies the file transfer process in  that  you  do  not
  3810.  have  to  constantly  issue  the  Kermit escape sequence and CONNECT commands to
  3811.  switch which Kermit you are giving commands to.  When TSO KERMIT is operating in
  3812.  server mode, it receives its commands from the microcomputer Kermit.
  3813. 0TSO Kermit will respond to FINISH entered in terminal mode, as well as a command
  3814.  to the microcomputer; this is especially useful if the microcomputer Kermit does
  3815.  not support server mode.
  3816. 0TSO Kermit supports file transfer of members of a partitioned  data  set  (PDS).
  3817.  The  member  name is specified in parentheses immediately following the data set
  3818.  name for the PDS.
  3819. -
  3820.                                                           Section 6 -- TSO Kermit
  3821. 198                                                  Kermit File Transfer Package
  3822. -
  3823.  When receiving files, if the record format is fixed, any record longer than  the
  3824.  logical  record  length  will be truncated.  The record length can be as high as
  3825.  32760.
  3826. -
  3827. -
  3828. -
  3829. -
  3830. -
  3831. -
  3832. -
  3833. -
  3834. -
  3835. -
  3836. -
  3837. -
  3838. -
  3839. -
  3840. -
  3841. -
  3842. -
  3843. 0TSO Kermit -- Section 6
  3844. 1Kermit File Transfer Package                                                  99
  3845. -
  3846.  6.4.2.  Commands for File Transfer
  3847. 0The SEND and RECEIVE commands are used for file transfer when TSO Kermit is  not
  3848.  in server mode.
  3849. -RECEIVE [data set name]
  3850. 0Receive one or more files sent from the microcomputer.  If the data set name  is
  3851.  not  specified,  TSO  Kermit will use the name passed from the microcomputer for
  3852.  the first file received.  If no data set previously exists with this name a file
  3853.  will  be  created  and cataloged.  The attributes for the data set will be taken
  3854.  from the DATA, EDIT, RECFM, LRECL, BLKSIZE and SPACE parameters.  If a data  set
  3855.  or  member  of  a partitioned data set (PDS) already exists, TSO Kermit will ask
  3856.  you if you want to delete the existing file.  If not, the transfer will stop.
  3857. 0TSO Kermit supports file transfer of members of an existing partitioned data set
  3858.  (PDS).   The  member  name is specified in parentheses immediately following the
  3859.  data set name for the PDS.
  3860. 0When receiving files, if the record format is fixed, any record longer than  the
  3861.  logical  record  length  will be truncated.  The record length can be as high as
  3862.  32760.
  3863. 0STOP may be entered to abort the RECEIVE command at any time.
  3864. -SEND [data set name]
  3865. 0Send the specified data set  or  data  sets.   If  the  data  set  name  is  not
  3866.  specified, TSO Kermit will prompt for one.  The data set must be cataloged.
  3867. 0One wildcard character '*' (asterisk) is allowed in the  data  set  name.   This
  3868.  allows  specifying  that  a  group  of files is being sent, or that any one file
  3869.  meeting the wildcarded naming specification will be sent.  The '*'  matches  any
  3870.  character  or characters.  A data set name like "NAME.*" will result in all data
  3871.  sets being sent whose names  begin  with  "NAME."   A  data  set  name  such  as
  3872.  "ABC.*.XYZ"  will  result  in  all  data  sets being sent whose names begin with
  3873.  "ABC."  and end with ".XYZ". The "*" wild card cannot be used in  PDS  data  set
  3874.  names or in PDS member names.
  3875. 0TSO Kermit supports file transfer of members of an existing partitioned data set
  3876.  (PDS).   The  member  name is specified in parentheses immediately following the
  3877.  data set name for the PDS.
  3878. 0The file name that TSO Kermit  sends  to  the  other  Kermit  is  the  last  two
  3879.  qualifiers   (levels)   of   the   data  set  name,  but  always  excluding  the
  3880.  account/initials prefix.  For a PDS member, TSO Kermit sends  the  name  of  the
  3881.  member as the file name.
  3882. -
  3883. -
  3884.                                                           Section 6 -- TSO Kermit
  3885. 1100                                                 Kermit File Transfer Package
  3886. -
  3887.  6.4.3.  Commands for Local Data Set Management
  3888. 0TSO Kermit allows very flexible use of  TSO  commands  and  WYLBUR  commands  to
  3889.  effect  TSO  data set management tasks while running under TSO Kermit.  In order
  3890.  to use TSO commands, one merely invokes the following command:
  3891. 0KERMIT-TSO> TSO <TSO command>
  3892. +            _________________
  3893. 0For example, it is possible to use TSO to list  data  set  attributes  with  the
  3894.  following command:
  3895. 0KERMIT-TSO> TSO LISTD <data set name>
  3896. +            _________________________
  3897. 0It is possible to use TSO to list the names of  cataloged  data  sets  with  the
  3898.  following command:
  3899. 0KERMIT-TSO> TSO LISTC
  3900. +            _________
  3901. 0It is possible to use TSO to list contents of a non-edit format  data  set  with
  3902.  the following command:
  3903. 0KERMIT-TSO> TSO LIST <data set name>
  3904. +            ________________________
  3905. 0It is possible to invoke WYLBUR under TSO with the following command:
  3906. 0KERMIT-TSO> TSO WYLBUR
  3907. +            __________
  3908. -
  3909. -
  3910. -
  3911. -
  3912. -
  3913. -
  3914. -
  3915. -
  3916. -
  3917. -TSO Kermit -- Section 6
  3918. 1Kermit File Transfer Package                                                 101
  3919. -
  3920.  6.4.4.  The SET, RESET, and SHOW Commands
  3921. 0The SET command establishes or modifies various parameters  for  file  transfer.
  3922.  The  RESET  command  changes  the  parameter  settings to the TSO Kermit default
  3923.  values.  You can examine the parameter values with the SHOW command.
  3924. 0SET <parameter> <value>
  3925. 0Set the parameter to the specified value.  Legal SET parameters are:
  3926. 0DATA       Specifies if any transformation is to be performed  on  incoming  and
  3927.             outgoing   data.    TEXT  (ASCII-EBCDIC  conversion)  or  BINARY  (no
  3928.             conversion).  The default for DATA is TEXT.
  3929. 0EDIT       ON or OFF (ON specifies received data sets will be stored  in  WYLBUR
  3930.             edit format).  The default for EDIT is ON.
  3931. 0NUMBERED   Specifies line numbering options for non-edit format text data sets:
  3932. 0           OFF - unnumbered (no line numbers in data set)
  3933.             WYLBUR - WYLBUR line numbers in default columns
  3934.             WYLBUR m/n - WYLBUR line numbers in columns m through n
  3935.             TSO - TSO line numbers in default columns
  3936.             TSO m/n - TSO line numbers in columns m through n
  3937. 0           Default columns are the last eight for data sets with RECFM=F or  FB,
  3938.             and first eight for data sets with RECFM=V, VB, or U.
  3939. 0           The default for NUMBERED is OFF.
  3940. 0TABS       Controls TAB processing on upload and download of text files.
  3941. 0           OFF  disables TAB processing.
  3942.             ON   assumes tabs are set every 8 positions on the  microcomputer and
  3943.                  changes  tabs to blanks in received data sets and blanks to tabs
  3944.                  in transmitted data sets.
  3945. 0           Tab    positions    may    also    be    specified    as    "column",
  3946.             "column+interval*count", and/or "column + interval/max"
  3947. 0           column+interval*count means tab at "column" plus every "interval" for
  3948.             "count" times for a total of count + 1 tabs.
  3949. 0           column+interval/max means the same except tabs  are  set  up  to  the
  3950.             "max"  column  specified  instead  of  up to the number of tabs being
  3951.             specified by "count".
  3952. 0           The default for TABS is OFF.
  3953. 0RECFM      Record format for received non-edit format data sets.   Valid  record
  3954.             formats are F, FB, V, VB, VBS or U. The default for RECFM is VB.
  3955. -
  3956. 0                                                         Section 6 -- TSO Kermit
  3957. 1102                                                 Kermit File Transfer Package
  3958. -
  3959.  LRECL      Logical record length for received  non-edit  format  data  sets  The
  3960.             default for LRECL is 504, and the maximum is 32760.
  3961. 0BLKSIZE    Block size for received non-edit format data sets.  The  default  for
  3962.             BLKSIZE is 6356, and the maximum is 32760.
  3963. 0SPACE      Space allocation for received data sets  in  tracks,  used  for  both
  3964.             primary and secondary allocation values.  The default for SPACE is 5,
  3965.             and the maximum is 32767.
  3966. 0VOLUME     Specifies which disk volume will be used for the received  data  set.
  3967.             VOLUME  requires  a  6 character volume serial number (e.g., FILE24),
  3968.             except that TMP means that any TMP volume may be used.   The  default
  3969.             for VOLUME is TMP.
  3970. 0PREFIX     Like WYLBUR's SET PREFIX command, specifies characters to be prefixed
  3971.             to  the  front  of data set names.  Be sure to include the period (.)
  3972.             qualifier as needed.  The account-initials prefix (e.g., AAAAIII.) is
  3973.             assumed  to  precede  this prefix (unless the prefix is in quotes, in
  3974.             which case it is assumed to  be  fully  qualified).   A  PDS  can  be
  3975.             specified  as  a prefix by entering the PDS data set name followed by
  3976.             an open and close parenthesis, such  as,  PDSNAME();  all  subsequent
  3977.             data  set  names will be treated as the names of members of that PDS;
  3978.             part of the member name can also be  specified  (e.g.,  PDSNAME(AB)).
  3979.             The default is NO PREFIX.
  3980. 0NOPREFIX   Nullifies previously set prefix.
  3981. 0DELAY      Specifies the number of seconds that  TSO  Kermit  waits  before  the
  3982.             first packet is sent by the SEND command.  The default DELAY is 20.
  3983. 0TIMER      Controls timeout processing for received packets.  TSO Kermit sends a
  3984.             NAK  (negative  acknowledgement)  packet  after  the timeout interval
  3985.             expires.  After 20 retries, TSO Kermit terminates the file  transfer.
  3986.             Valid  values  are OFF (turns off timeout), ON (turns on timeout), or
  3987.             the number of seconds to be  used  for  the  timeout  interval.   The
  3988.             default for TIMER is ON, with an interval of 8 seconds.
  3989. 0BLOCK      Specifies which type of Kermit block checking will  be  used.   Valid
  3990.             options  are  1  (1-byte  checksum),  2  (2-byte checksum), 3 (3-byte
  3991.             cyclic redundancy check), or CRC (synonym for 3).   The  default  for
  3992.             BLOCK is 3.
  3993. 0PACKET     Sets the maximum packet length.  Valid values are 26-94 decimal,  The
  3994.             default for PACKET is 94.
  3995. 0CQUOTE     Specifies the character used for prefixing ASCII control  characters.
  3996.             Value  must  be between 33-62 or 96-126 decimal, indicating the ASCII
  3997.             code for the character.  The actual character may also be  specified,
  3998.             optionally in quotes.  The default for CQUOTE is #.
  3999. -
  4000. -TSO Kermit -- Section 6
  4001. 1Kermit File Transfer Package                                                 103
  4002. -
  4003.  BQUOTE     Specifies the 8th bit quote character used for  prefixing  characters
  4004.             that  have  their  8th bit on.  Value must be between 33-62 or 96-126
  4005.             decimal, indicating the ASCII code for  the  character.   The  actual
  4006.             character  may  also be specified, optionally in quotes.  The default
  4007.             for BQUOTE is &.
  4008. 0RQUOTE     Specifies the repeat quote  character  used  for  prefixing  repeated
  4009.             characters.  Value must be between 33-62 or 96-126 decimal indicating
  4010.             the ASCII character.  The actual character  may  also  be  specified,
  4011.             optionally in quotes.  The default for RQUOTE is ~.
  4012. 0SOH        Sets  the  start-of-header  character  sent  at  the  start  of  each
  4013.             transmitted packet and expected at the start of each received packet.
  4014.             May be specified as decimal value of ASCII code (0-31), ASCII control
  4015.             character  name  (e.g.,  SOH), or in control key notation (e.g., XA).
  4016.             The default for SOH is 1, (SOH, XA).
  4017. 0SEOL       Sets the end-of-line control  character  sent  at  the  end  of  each
  4018.             transmitted  packet.  May be specified as decimal value of ASCII code
  4019.             (0-31), ASCII control character name (e.g., CR), or  in  control  key
  4020.             notation (e.g., XM).  The default for SEOL is 13, (CR, XM).
  4021. 0REOL       Sets the end-of-line control character expected at the  end  of  each
  4022.             received  packet.   May  be  specified as decimal value of ASCII code
  4023.             (0-31), ASCII control character name (e.g., CR), or  in  control  key
  4024.             notation (default XM).  The default for REOL is 13, (CR, XM).
  4025. 0DEBUG      ON dumps all received and sent packets plus all data  set  I/O  to  a
  4026.             RECFM=VB  data  set.   The  user must allocate the DD name DEBUG to a
  4027.             sequential data set (e.g., TSO ALLOC  F(DEBUG)  DA(DEBUG.DATA)  NEW).
  4028.             OFF  closes  the  debug  data  set  (if open) and turns off debugging
  4029.             information.  The default for DEBUG is OFF.
  4030. 0SET parameters may be abbreviated as follows:  BLOCK  (BLK);  NOPREFIX  (NOPRE);
  4031.  NUMBERED (NUMD); PREFIX (PRE); SPACE (SP); VOLUME (VOL)
  4032. -
  4033. -
  4034. -
  4035. -
  4036. -
  4037. -
  4038. -                                                         Section 6 -- TSO Kermit
  4039. 1104                                                 Kermit File Transfer Package
  4040. -
  4041.  6.4.5.  Program Management Commands
  4042. 0HELP     Displays a message that tells how to get  explanations  of  TSO  Kermit
  4043.           commands.
  4044. 0?        Lists all legal TSO Kermit commands, along with brief descriptions.
  4045. 0EXIT     Terminates TSO Kermit.
  4046. 0QUIT     Same as EXIT.
  4047. 0END      Same as EXIT.
  4048. 0TSO <TSO command>
  4049. 0         Executes the TSO command.
  4050. 0EXEC <data set name>
  4051. 0         Executes Kermit commands in a TSO CLIST data set.  The  data  set  must
  4052.           have  line  numbers  (columns  73/80  for  RECFM=FB,  columns  1/8  for
  4053.           RECFM=VB).
  4054. 0KERMIT   Used in CLISTs, processes TSO Kermit SET commands.  Any TSO Kermit  SET
  4055.           command  in  an  EXEC  file  must  be prefixed by KERMIT.  SET commands
  4056.           without the KERMIT prefix will be interpreted as TSO SET commands.
  4057. 0STATUS   Returns the status of the previous execution of KERMIT-TSO.  Therefore,
  4058.           STATUS will either display the message "Kermit completed successfully,"
  4059.           or the last error encountered prior  to  aborting.   STATUS  will  also
  4060.           display warning messages.
  4061. -
  4062. -
  4063. -
  4064. -
  4065. -
  4066. -
  4067. -
  4068. -
  4069.  TSO Kermit -- Section 6
  4070. 1Kermit File Transfer Package                                                 105
  4071. -
  4072.  6.5.  TSO Kermit Examples
  4073. 0Here is a brief example  of  how  to  use  the  IBM  PC  and  MS-DOS  Kermit  in
  4074.  conjunction  with  TSO  Kermit to send a file to the IBM PC.  This example shows
  4075.  how to use TSO Kermit to transfer a text file.
  4076. -A>kermit                      Run Kermit on the micro
  4077. +  ______
  4078. 0Kermit-MS> do tso             Set up standard TSO settings
  4079. +           ______
  4080.  Kermit-MS>connect             Connect to communication port
  4081. +          _______
  4082.  ___________                   Dial the NIH TSO service (assumes Hayes compatible
  4083. +ATDT4922223
  4084. +___________
  4085.                                modem).  Local Echo may cause double characters to
  4086.                                be displayed depending upon modem settings.
  4087.  CONNECT
  4088. 0   [The microcomputer will act as a regular terminal from now on.]
  4089.     [Logon here as you normally would, and run TSO Kermit.]
  4090. 0logon                         Initiate logon sequence
  4091. +_____
  4092.  INITIALS? iii
  4093. +          ___
  4094.  ACCOUNT? aaaa
  4095. +         ____
  4096.  KEYWORD? kkk
  4097. +         ___
  4098.  TERMINAL? none
  4099. +          ____
  4100.  BOX? bbb
  4101. +     ___
  4102.  AAAAIII LOGON IN PROGRESS AT 11:58:55 ON MAY 15, 1986
  4103.   NIH/DCRT/CCB TSO
  4104.  TSO LINE 118
  4105.  READY
  4106.  kermit                        Invoke  TSO  Kermit  (also   executes  the   CLIST
  4107. +______
  4108.                                KERMIT.PROFILE.CLIST if you have created it)
  4109. 0NIH TSO KERMIT VERSION 1.0
  4110.  KERMIT-TSO> set volume file39 Set default volume for data sets
  4111. +            _________________
  4112. -KERMIT-TSO> show              Display data and protocol settings
  4113. +            ____
  4114. 0Data Set Attributes                     Protocol Attributes
  4115.  DATA: Text                              DELAY (after SEND): 20 seconds
  4116.  EDIT (WYLBUR edit format data set): on  TIMER (Timeout interval): on (8 seconds)
  4117.  NUMBERED (line nos.): off               BLOCK (Block check type): 3 (CRC)
  4118.  TABS: off                               PACKET (Receive packet size): 94
  4119.  RECFM (Record format): VB               CQUOTE (Control quote character): #
  4120.  LRECL (Logical record length): 504      BQUOTE (Binary quote character): &
  4121.  BLKSIZE (Block size): 6356              RQUOTE (Repeat quote character): ~
  4122.  SPACE (Space allocation): 5 tracks      SOH (Start of Header): 1 (SOH,XA)
  4123.  VOLUME: FILE39                          SEOL (Send End-of-line): 13 (CR,XM)
  4124.  PREFIX: No prefix                       REOL (Receive End-of-line): 13 (CR,XM)
  4125.                                          DEBUG: off
  4126. -
  4127. -                                                         Section 6 -- TSO Kermit
  4128. 1106                                                 Kermit File Transfer Package
  4129. -
  4130.  KERMIT-TSO> ?                 Display list of commands available
  4131. +            _
  4132. 0Legal commands are
  4133. 0RECEIVE uploads a data set (file) from the microcomputer to the mainframe
  4134.     SEND downloads a data set (file) from the mainframe to the microcomputer
  4135.     STOP aborts a file transfer in progress (valid only during file transfer)
  4136.   STATUS displays the status of the last file transfer
  4137.   SERVER invokes TSO Kermit as a slave server
  4138.      END terminates TSO Kermit and returns user to TSO
  4139.     QUIT and EXIT are synonyms of END
  4140.      SET changes KERMIT protocol and data set options
  4141.     SHOW displays the current KERMIT option settings
  4142.    RESET reinitializes KERMIT to default settings
  4143.      TSO issues a command to TSO
  4144.     EXEC reads a data set of TSO Kermit commands (a TSO CLIST)
  4145.   KERMIT allows TSO Kermit EXEC files to process the TSO Kermit SET commands
  4146.            (must prefix each SET cmd)
  4147. 0KERMIT-TSO> tso listc         List cataloged data sets
  4148. +            _________
  4149. 0IN CATALOG:SYSCTLG.VNIHCT2
  4150.  AAAAIII.@WYLBUR.MAIL
  4151.  AAAAIII.@WYLBUR.TSO.RECOVERY
  4152.  AAAAIII.KERM.CON
  4153.  AAAAIII.KERM.LOG
  4154.  AAAAIII.KERMIT.INI
  4155.  AAAAIII.KERMIT.PROFILE.CLIST
  4156.  AAAAIII.MSKERMIT.INI
  4157.  AAAAIII.RCVBIN.CLIST
  4158. 0KERMIT-TSO> server            Enter server mode
  4159. +            ______
  4160. 0 Now entering SERVER mode - type FINISH or LOGOUT on micro to halt SERVER
  4161. 0Now we must issue commands to KERMIT on the microcomputer (this example  assumes
  4162.  an  IBM  PC),  without  breaking  the  connection with TSO Kermit running on the
  4163.  mainframe.  We do this by issuing the escape sequence:
  4164. 0___
  4165. +X]C
  4166. 0The notation above means:  press and hold the Control (Ctrl) key, then press the
  4167.  right bracket, release both keys and press the 'C' key.
  4168. 0Kermit-MS>get kermit.ini      Tell TSO Kermit to transfer the file KERMIT.INI
  4169. +          ______________
  4170. 0    [the file is received -- MS-DOS Kermit displays status]
  4171. 0Kermit-MS>finish              Terminate server mode on TSO Kermit
  4172. +          ______
  4173. 0Kermit-MS>connect             Go back to TSO Kermit prompt
  4174. +          _______
  4175. -
  4176. 0TSO Kermit -- Section 6
  4177. 1Kermit File Transfer Package                                                 107
  4178. -
  4179.      [press carriage return to see TSO Kermit's prompt]
  4180. 0KERMIT-TSO> status            Check status of completed transfer
  4181. +            ______
  4182. 0                        TSO Kermit Status Report
  4183.  TSO KERMIT completed successfully
  4184. 0KERMIT-TSO> end               Terminate TSO Kermit, return to TSO
  4185. +            ___
  4186.  READY
  4187.  logoff                        Logoff from TSO
  4188. +______
  4189.  CHARGE =       $.51
  4190.  TOTAL CPU TIME = 0.31 SECONDS (MODEL 3090  )
  4191.  VECTOR CPU TIME =      0.00 SECONDS
  4192.  ELAPSED TIME = 00:02:39
  4193.  I/O COUNT = 7
  4194.  REGION = 336K
  4195.  AAAAIII LOGGED OFF TSO AT 12:01:38 ON MAY 15, 1986
  4196. 0X]C                           Return to the micro
  4197. +___
  4198. 0Kermit-MS>quit                Terminate Kermit on the micro
  4199. +          ____
  4200.  A>
  4201. -
  4202. -
  4203. -
  4204. -
  4205. -
  4206. -
  4207. -
  4208. -
  4209. -
  4210. -
  4211. -
  4212.                                                           Section 6 -- TSO Kermit
  4213. 1108                                                 Kermit File Transfer Package
  4214. -
  4215.  In order to send a file from the IBM  PC  to  TSO  repeat  the  above  procedure
  4216.  swapping  the  command  SEND  with  GET.  This is shown for a binary file in the
  4217.  example which follows.  (This example assumes the user has logged on to TSO  and
  4218.  issued the KERMIT command.)
  4219. 0KERMIT-TSO> set data binary   Set up TSO Kermit for binary data
  4220. +            _______________
  4221. 0KERMIT-TSO> server            Enter server mode
  4222. +            ______
  4223. 0 Now entering SERVER mode - type FINISH or LOGOUT on micro to halt SERVER
  4224. 0X]C                           Return to the micro
  4225. +___
  4226. 0Kermit-MS>send tree.com       Microcomputer sends the file TREE.COM
  4227. +          _____________
  4228. 0    [the file is sent .......]
  4229. 0Kermit-MS>finish              Terminate server mode on TSO Kermit
  4230. +          ______
  4231. 0Kermit-MS>connect             Go back to TSO Kermit prompt
  4232. +          _______
  4233. 0    [press carriage return to see TSO Kermit's prompt]
  4234. 0KERMIT-TSO> status            Check status of completed transfer
  4235. +            ______
  4236. 0                        TSO Kermit Status Report
  4237.  TSO KERMIT completed successfully
  4238. 0KERMIT-TSO> end               Terminate TSO Kermit, return to TSO
  4239. +            ___
  4240.  READY
  4241.  logoff                        Logoff from TSO
  4242. +______
  4243.  CHARGE =       $.51
  4244.  TOTAL CPU TIME = 0.31 SECONDS (MODEL 3090  )
  4245.  VECTOR CPU TIME =      0.00 SECONDS
  4246.  ELAPSED TIME = 00:02:39
  4247.  I/O COUNT = 7
  4248.  REGION = 336K
  4249.  AAAAIII LOGGED OFF TSO AT 12:01:38 ON MAY 15, 1986
  4250. 0X]C                           Return to the micro
  4251. +___
  4252. 0Kermit-MS>quit                Terminate Kermit on the micro
  4253. +          ____
  4254.  A>
  4255. -
  4256. -
  4257. -
  4258. -
  4259.  TSO Kermit -- Section 6
  4260. 1Kermit File Transfer Package                                                 109
  4261. -
  4262.  6.6.  Additional Information
  4263. 0The commands are supplied with a help option, so a question mark can be typed to
  4264.  get  the  appropriate  format or a list of options.  The question mark, however,
  4265.  must be followed by a carriage return; TSO Kermit will respond and  display  the
  4266.  prompt  again.   For  instance,  SET  ?  will list all valid options for the SET
  4267.  command.
  4268. 0If the microcomputer Kermit does not send an error packet when  it  aborts,  TSO
  4269.  Kermit  does  not  know  the  microcomputer  has stopped sending it information.
  4270.  Therefore, when you connect back to the IBM, TSO Kermit  may  still  be  sending
  4271.  packets (they will appear on the screen).  The user must enter STOP to terminate
  4272.  the sending of packets.
  4273. 0When the DATA parameter is set to TEXT, and TSO Kermit receives a text file that
  4274.  has characters with the eighth bit on, it ignores the eighth bit.  When the DATA
  4275.  parameter is set to BINARY, and TSO Kermit receives a binary  file,  the  eighth
  4276.  bit is preserved.
  4277. -6.7.  Error Messages
  4278. 0TSO Kermit supplies the microcomputer and the user with numerous error messages.
  4279.  If  file  transfer must be aborted, an error packet is sent to the microcomputer
  4280.  before TSO Kermit stops.  The same message  can  be  retrieved  via  the  STATUS
  4281.  command  when TSO Kermit returns and displays the prompt.  If TSO Kermit aborted
  4282.  because the maximum amount of retries was exceeded (20) the error  message  will
  4283.  display  "Retry  Count  Exceeded."  If execution stops because the microcomputer
  4284.  aborted, the error message  will  convey  that  to  the  user,  but  it  is  the
  4285.  microcomputer's responsibility to pinpoint the error.
  4286. -
  4287. -
  4288. -
  4289. -
  4290. -
  4291. -
  4292. -
  4293. -
  4294. 0                                                         Section 6 -- TSO Kermit
  4295. 1110                                                 Kermit File Transfer Package
  4296. -
  4297. -
  4298. -
  4299. -
  4300. -
  4301. -
  4302. -
  4303. -
  4304. -
  4305. -
  4306. -
  4307. -
  4308. -
  4309. -
  4310. -
  4311. -
  4312. -
  4313. -
  4314. -
  4315. 0TSO Kermit -- Section 6
  4316. 1Kermit File Transfer Package                                                 111
  4317. -
  4318.  7.  MS-DOS Kermit for the IBM-PC
  4319. 0Program:        Daphne Tzoar and  Jeff  Damens  (Columbia  University),  Joe  R.
  4320.                  Doupnik  (Utah  State  University), James Harvey (Indiana/Purdue
  4321.                  University), contributions by many others.
  4322.  Language:       Microsoft Macro Assembler (MASM)
  4323.  Documentation:  Frank da Cruz and Christine Gianone (Columbia University)
  4324.  Version:        2.29
  4325.  Date:           May 26, 1986
  4326. -Kermit-MS Capabilities At A Glance:
  4327. 0  Local operation:                   Yes
  4328.    Remote operation:                  Yes
  4329.    Transfers text files:              Yes
  4330.    Transfers binary files:            Yes
  4331.    Wildcard send:                     Yes
  4332.    XX/XY interruption:                Yes
  4333.    Filename collision avoidance:      Yes
  4334.    Can time out:                      Yes
  4335.    8th-bit prefixing:                 Yes
  4336.    Repeat count prefixing:            Yes
  4337.    Alternate block checks:            Yes
  4338.    Terminal emulation:                Yes
  4339.    Communication settings:            Yes
  4340.    Transmit BREAK:                    Yes
  4341.    IBM mainframe communication:       Yes
  4342.    Transaction logging:               No
  4343.    Session logging:                   Yes
  4344.    Raw transmit:                      No
  4345.    Act as server:                     Yes
  4346.    Talk to server:                    Yes
  4347.    Advanced server functions:         No
  4348.    Advanced commands for servers:     Yes
  4349.    Local file management:             Yes
  4350.    Command/init files:                Yes
  4351.    Command macros:                    Yes
  4352.    Attribute packets:                 No
  4353.    Extended-length packets:           No
  4354.    Sliding windows:                   No
  4355. 0Kermit-MS is a program that implements the Kermit file transfer protocol for the
  4356.  IBM  PC family, IBM compatibles, and several other machines using the Intel 8086
  4357.  processor series (8088, 80286, etc.) and  operating  system  family  (PC-DOS  or
  4358.  MS-DOS,  henceforth  referred to collectively as MS-DOS or simply DOS).  The NIH
  4359.  Computer Center supports only the IBM PC version of Kermit-MS.
  4360. -
  4361. -
  4362. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  4363. 1112                                                 Kermit File Transfer Package
  4364. -
  4365.  Kermit-MS  version  2.29  runs  in  as  little  as  60K  of  memory  (about  55K
  4366.  contiguous),  but  will  occupy up to 100K, if it can be found, for extra screen
  4367.  rollback memory.  It will also try to leave 24 Kbytes free for a second copy  of
  4368.  COMMAND.COM  which  is  needed  for  the SPACE command and others.  Versions not
  4369.  using screen rollback memory will not require the additional space.
  4370. 0On the IBM PC, Kermit-MS 2.29 performs almost  complete  emulation  of  the  DEC
  4371.  VT-102  terminal  at speeds up to 19,200 bps (lacking only smooth scrolling, 132
  4372.  column mode, and ANSI printer control).  Much of the speed is  accomplished  via
  4373.  direct  writes to screen memory, but this is done in a "TopView" aware manner to
  4374.  allow successful operation in windowing environments like  TopView,  MS-Windows,
  4375.  and DesqView.  Speed is also due to direct access of the serial port UART (8250)
  4376.  chip, with buffered,  interrupt-driven  receipt  of  characters  and  selectable
  4377.  XON/XOFF  flow  control.   Full-speed  9600 bps operation is possible on 4.77Mhz
  4378.  systems without flow control, but flow control is required on these systems  for
  4379.  19,200 bps or higher rates.
  4380. 0Kermit-MS 2.29 is capable of sending a break signal that is required  by  WYLBUR
  4381.  and  TSO.   This  can  be  accomplished  by  using  Ctrl-Break while in terminal
  4382.  emulation mode.
  4383. 0As of version 2.28, MS-DOS Kermit requires version 2.0 or later of  DOS.   Older
  4384.  versions  of  MS-DOS  Kermit  are no longer distributed, but if you have version
  4385.  2.27 or earlier, it can run under version 1.0 or 1.1 of MS-DOS.
  4386. 0Kermit-MS 2.29 runs on a wide variety of MS-DOS systems,  including  the  entire
  4387.  IBM  PC  family  (the  PC,  XT,  AT, PCjr, Portable PC, PC Convertible) and many
  4388.  compatibles.
  4389. 0This document will describe the things you should know  about  the  MS-DOS  file
  4390.  system  in  order to make effective use of Kermit, and then it will describe the
  4391.  Kermit-MS program itself.  It is assumed  you  are  already  familiar  with  the
  4392.  general  ideas  of  Kermit  file transfer.  If you are not, consult Section 1 of
  4393.  this manual, or Kermit, A File Transfer Protocol,  by  Frank  da  Cruz,  Digital
  4394.  Press (1986).
  4395. 0Note:  About the notation used in this section:  user  input  is  underlined  to
  4396. +                                                                  __________
  4397.         distinguish it from computer output.  When the "control" key is needed in
  4398.         conjunction with another key to generate a character, it  is  represented
  4399.         in  one  of these equivalent ways:  Control-Z, Ctrl-Z, and XZ all mean to
  4400.         depress and hold the "control" key, press the "Z" key, then release  both
  4401.         keys.
  4402. -
  4403. -
  4404. -
  4405. -
  4406. 0MS-DOS Kermit for the IBM-PC-- Section 7
  4407. 1Kermit File Transfer Package                                                 113
  4408. -
  4409.  7.1.  The MS-DOS File System
  4410. 0The features of the MS-DOS file system of greatest interest to Kermit users  are
  4411.  the form of the file specifications, and the formats of the files themselves.
  4412. -
  4413.  7.1.1.  File Specifications
  4414. 0MS-DOS file specifications (in version 2.0 or later of DOS) are of the form
  4415. 0    DEVICE:\PATHNAME\NAME.TYPE
  4416. 0where the DEVICE is a single character identifier (for instance, A for the first
  4417.  floppy disk, C for the first fixed disk, D for a RAM disk emulator), PATHNAME is
  4418.  up to 63 characters of identifier(s) (up to 8  characters  each)  surrounded  by
  4419.  reverse  slashes,  NAME  is  an identifier of up to 8 characters, and TYPE is an
  4420.  identifier of up to 3 characters in length.  Device and pathname may be omitted.
  4421.  The first backslash in the pathname is omitted if the specified path is relative
  4422.  to the current directory.  In the path field, "."  means the current  directory,
  4423.  ".."  means the parent directory.
  4424. 0Pathname is normally omitted, but can be specified in all Kermit-MS commands (as
  4425.  of  version  2.29).   Device  and  directory pathnames, when omitted, default to
  4426.  either the user's current disk and directory, or to the current directory search
  4427.  path as specified in the DOS PATH environment variable, depending on the context
  4428.  in which the file name appears.
  4429. 0    When this document says that a file is searched for "in the current
  4430.      path," it means that the PATH is searched first, and if the file is not
  4431.      found, then Kermit-MS looks on the current disk and directory.  If the
  4432.      PATH environment variable is empty, Kermit looks only at the current
  4433.      disk and directory.
  4434. 0NAME.TYPE is normally sufficient to specify a file, and only this information is
  4435.  sent along by Kermit-MS with an outgoing file.
  4436. 0The device, path, name, and type fields may contain uppercase  letters,  digits,
  4437.  and  the special characters "-" (dash), "_" (underscore), and "$" (dollar sign).
  4438.  When you type lowercase letters in filenames, they are  converted  automatically
  4439.  to  uppercase.   There are no imbedded or trailing spaces.  Other characters may
  4440.  not  be  included;  there  is  no  mechanism  for  "quoting"  otherwise  illegal
  4441.  characters  in filenames.  The fields of the file specification are set off from
  4442.  one another by the punctuation indicated above.
  4443. 0The name field is the primary identifier for the file.  The  type,  also  called
  4444.  the  extension  or suffix, is an indicator which, by convention, tells what kind
  4445.  of file we have.  For instance FOO.BAS is the source of a  BASIC  program  named
  4446.  FOO;  FOO.OBJ  might  be  the  relocatable  object  module produced by compiling
  4447.  FOO.BAS; FOO.EXE could be an executable program produced by linking FOO.OBJ, and
  4448.  so forth.  .EXE and .COM are the normal suffixes for executable programs.
  4449. -
  4450. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  4451. 1114                                                 Kermit File Transfer Package
  4452. -
  4453.  MS-DOS allows a group of files to be specified in a single file specification by
  4454.  including  the  special  "wildcard"  characters, "*" and "?."  A "*" matches any
  4455.  string of characters from  the  current  position  to  the  end  of  the  field,
  4456.  including no characters at all; a "?"  matches any single character.
  4457. 0Here are some examples:
  4458. 0  *.BAS   All files of  type  BAS  (all  BASIC  source  files)  in  the  current
  4459.            directory.
  4460. 0  FOO.*   Files of all types with name FOO.
  4461. 0  F*.*    All files whose names start with F.
  4462. 0  F?X*.*  All files whose names  start  with  F  and  contain  X  in  the  third
  4463.            position, followed by zero or more characters.
  4464. 0  ?.*     All files whose names are exactly one character long.
  4465. 0Wildcard notation is used on many computer systems in similar ways,  and  it  is
  4466.  the mechanism most commonly used to instruct Kermit to send a group of files.
  4467. 0    Note:  Kermit-MS uses the "?"  character for help while commands  are  being
  4468.             typed,  so the single-character wildcard in the first position of the
  4469.             file name in Kermit-MS commands is "#" rather than "?".  For example
  4470. 0           Kermit-MS>send ________
  4471. +                     _____#b??ef.*
  4472. 0           would send files such as abcdef.for and xbyzef.bas.
  4473. 0Kermit-MS users should bear in mind that  other  (non-MS-DOS)  systems  may  use
  4474.  different  wildcard characters.  For instance the DEC-10 Kermit uses "%" instead
  4475.  of "?"  as the single character wildcard; when  using  Kermit-MS  to  request  a
  4476.  wildcard  file  group from a Kermit-10 server, the Kermit-MS "?"  or "#" must be
  4477.  replaced by the DEC-10 "%".
  4478. -
  4479. -
  4480. -
  4481. -
  4482. -
  4483. -
  4484. -MS-DOS Kermit for the IBM-PC-- Section 7
  4485. 1Kermit File Transfer Package                                                 115
  4486. -
  4487.  7.1.2.  File Formats
  4488. 0MS-DOS systems  store  files  as  bulk  collections  of  8-bit  bytes,  with  no
  4489.  particular differences between text, program code, and binary files.  ASCII text
  4490.  files consist of lines separated by carriage-return-linefeed sequences  (CRLFs),
  4491.  which   conforms  exactly  to  the  way  Kermit  represents  text  files  during
  4492.  transmission.   Since  a  non-MS-DOS  receiving  system  might  need   to   make
  4493.  distinctions  as  to file type, you may need to use various SET functions on the
  4494.  remote system to inform  it  that  the  incoming  file  is  of  some  particular
  4495.  (non-default)  type,  such  as  binary.  In transmitting files between Kermit-MS
  4496.  programs, regardless of file contents, the receiving MS-DOS  system  is  equally
  4497.  capable of processing text, code, and data, and in fact requires no knowledge of
  4498.  how the bytes in the file are to be used.  Unlike most  other  Kermit  programs,
  4499.  MS-DOS  Kermit  does  not  require a command like SET FILE TYPE BINARY to switch
  4500.  from text to binary file transfer.
  4501. 0MS-DOS (unlike CP/M) is capable of pinpointing the end of file with precision by
  4502.  keeping  a  byte  count  in  the  directory,  so  one would expect no particular
  4503.  confusion in this regard.  However, most MS-DOS programs  continue  to  use  the
  4504.  CP/M convention of terminating a text file with a Control-Z character, and won't
  4505.  operate correctly unless this terminating byte is present.  Therefore, Kermit-MS
  4506.  users should be aware of a special SET EOF option for both incoming and outbound
  4507.  files, described later.
  4508. 0Non-MS-DOS systems  may  well  be  confused  by  nonstandard  ASCII  files  from
  4509.  Kermit-MS:
  4510. 0   - Files containing any of the 8-bit "extended ASCII" characters will probably
  4511.       need conversion (or translation) to 7-bit ASCII.
  4512. 0   - Files produced by word processing programs like Easywriter or WordStar  may
  4513.       contain  special  binary  formatting  codes,  and  could need conversion to
  4514.       conventional 7-bit ASCII  format  prior  to  transmission,  using  commonly
  4515.       available "exporter" programs.
  4516. 0   - Files created by word processors that store formatting data at the  end  of
  4517.       the  file, after the Control-Z and before physical end, may require special
  4518.       processing via SET EOF to strip the  formatting  data,  lest  they  confuse
  4519.       non-MS-DOS recipients.
  4520. 0   - Spreadsheet or  database  files  usually  need  special  formatting  to  be
  4521.       meaningful to non-MS-DOS recipients (though they can be transmitted between
  4522.       MS-DOS systems with Kermit-MS).
  4523. -
  4524. -
  4525. -
  4526. -
  4527.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  4528. 1116                                                 Kermit File Transfer Package
  4529. -
  4530.  7.2.  Program Operation
  4531. 0Kermit-MS can be run interactively, from a batch file, or as an  "external"  DOS
  4532.  command.   Commands  consist of one or more fields, separated by "whitespace" --
  4533.  one or more spaces or tabs.
  4534. 0Upon initial startup, the program  executes  any  commands  found  in  the  file
  4535.  MSKERMIT.INI  in the current path.  This initialization file may contain command
  4536.  macro definitions, communications settings for one or more ports, or  any  other
  4537.  Kermit-MS commands.  Here is a sample MSKERMIT.INI file:
  4538. 0def wyl set parity even,set local echo on,set speed 1200
  4539.  def dec set parity none,set local echo off, set speed 1200
  4540.  def tso set parity even,set local echo on,set speed 1200
  4541.  do wyl
  4542.  connect
  4543. 0Note that the above MSKERMIT.INI file executes the  WYL  macro  and  issues  the
  4544.  connect  command  for  the  user.  This is useful if you normally access WYLBUR.
  4545.  If, however you want to use TSO Kermit or DECsystem-10 Kermit,  the  appropriate
  4546.  macro to execute would be the TSO or DEC macro.
  4547. 0The NIH Computer Center supplies a standard MSKERMIT.INI file on  the  Kermit-MS
  4548.  diskette distributed by the Technical Information Office.  This file defines the
  4549.  macros WYLBUR, DEC10, TSO, and 3270 to allow  easy  access  to  Computer  Center
  4550.  services.   If  you  only  use one of the services (e.g., TSO), you can have the
  4551.  initialization file automatically invoke  the  service  and  issue  the  CONNECT
  4552.  command by adding two lines to the end of the MSKERMIT.INI file:
  4553. 0    DO TSO
  4554.      CONNECT
  4555. 0To work with  your  configuration,  the  NIH-supplied  macros  may  need  to  be
  4556.  modified.   In these macros as distributed, SPEED is set to 2400 and PORT is set
  4557.  to 1.  If you have a 1200 bps modem, SPEED should be changed  to  1200,  and  if
  4558.  your  modem is connected through the COM2 serial port, PORT should be changed to
  4559.  2.
  4560. 0Macros are described in detail in section 7.3.8.
  4561. -
  4562. -
  4563. -
  4564. -
  4565. -
  4566. 0MS-DOS Kermit for the IBM-PC-- Section 7
  4567. 1Kermit File Transfer Package                                                 117
  4568. -
  4569.  Interactive Operation:
  4570. 0To run Kermit-MS interactively, invoke the program from  DOS  command  level  by
  4571.  typing its name.  When you see the command's prompt,
  4572. 0  Kermit-MS>
  4573. 0you may type Kermit commands repeatedly until you are ready to exit the program,
  4574.  for example:
  4575. 0  A>
  4576.    A>kermit
  4577. +    ______
  4578. 0  IBM PC Kermit-MS V2.29
  4579.    Type ? for help
  4580. 0  Kermit-MS>send foo.*
  4581. +            __________
  4582. 0    informational messages about the files being sent
  4583. 0  Kermit-MS>get bar.*
  4584. +            _________
  4585. 0    informational messages about the files being received
  4586. 0  Kermit-MS>exit
  4587. +            ____
  4588.    A>
  4589. 0During interactive operation, you may edit the command you're  currently  typing
  4590.  using BACKSPACE to erase the character most recently typed, Ctrl-W to delete the
  4591.  most recent field,  or  Ctrl-U  to  delete  the  entire  command.   The  editing
  4592.  characters  may  be used in any combination until the command is finally entered
  4593.  by typing ENTER (Carriage Return) or Ctrl-L.
  4594. 0While typing commands, you may use the help ("?") and keyword  completion  (ESC)
  4595.  features  freely.   A  question  mark  typed  at  almost  any point in a command
  4596.  produces a brief description of what is expected or possible at that point  (for
  4597.  this  reason  Kermit-MS  uses "#" for the single-character match wildcard in the
  4598.  first position of the local filenames and "?"  thereafter,  and  ?-help  is  not
  4599.  available  from  within  a filename).  ESC typed at any point, except in a local
  4600.  filename, will cause the current field to be filled out if what you  have  typed
  4601.  so  far is sufficient to identify it, and will leave you in position to type the
  4602.  next field (or to type a "?"  to find out what the next  field  is);  otherwise,
  4603.  the program will beep at you and wait for you to type further characters.
  4604. 0Some Kermit-MS commands, like GET, SHOW KEY, SET KEY, may prompt for  additional
  4605.  information  on  subsequent lines.  If you have reached one of these prompts and
  4606.  then wish to cancel the command, you may type Ctrl-C.
  4607. -
  4608. -
  4609. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  4610. 1118                                                 Kermit File Transfer Package
  4611. -
  4612.  Summary of Kermit-MS Command Characters:
  4613. 0  SPACE         Separates fields within the command.
  4614. 0  TAB           Same as Space, and echoes as Space.  You may also use Ctrl-I for
  4615.                  Tab.
  4616. 0  BACKSPACE     Deletes  the  character  most  recently  typed.   May  be  typed
  4617.                  repeatedly  to  delete  all the way back to the prompt.  You may
  4618.                  also use DELETE, RUBOUT, Ctrl-H, or equivalent keys.
  4619. 0  Ctrl-W        Deletes the most recent "word", or field, on the  command  line.
  4620.                  May be typed repeatedly.
  4621. 0  Ctrl-U        Deletes the entire command line, back to the prompt.
  4622. 0  Ctrl-C        Cancels the current command  and  returns  to  the  "Kermit-MS>"
  4623.                  prompt.
  4624. 0  ESC           If enough characters have been supplied in the  current  keyword
  4625.                  to  identify it uniquely, supply the remainder of the field, and
  4626.                  position to the next field of the command.  Otherwise,  sound  a
  4627.                  beep.  ESC does not provide filename completion in version 2.29.
  4628. 0  ?             Displays a brief message describing what may  be  typed  in  the
  4629.                  current  command  field.   Also, wildcard character for matching
  4630.                  any single  character  in  all  but  the  first  position  of  a
  4631.                  filename.
  4632. 0  #             Wildcard character for matching single characters in  filenames.
  4633.                  Equivalent  to  MS-DOS  "?", but used in the first position of a
  4634.                  filename only, so that "?"  may be  used  to  get  help  at  the
  4635.                  beginning of a filename field.
  4636. 0  RETURN        Enters the command.  On most keyboards, you may also  use  ENTER
  4637.                  or Ctrl-M.
  4638. 0  Ctrl-L        Clears the screen and enters the command.
  4639. 0  Ctrl-Break    Equivalent to Ctrl-C.
  4640. 0Liberal use of "?"  allows you to feel your way through the commands  and  their
  4641.  fields.   This  feature  is  sometimes called "menu on demand" -- unlike systems
  4642.  that force you to negotiate menus at every turn,  menu-on-demand  provides  help
  4643.  only when it is needed.
  4644. -
  4645. -
  4646. -
  4647. 0MS-DOS Kermit for the IBM-PC-- Section 7
  4648. 1Kermit File Transfer Package                                                 119
  4649. -
  4650.  Command Line Invocation:
  4651. 0Kermit-MS may also be invoked with  command  line  arguments  from  DOS  command
  4652.  level, for instance:
  4653. 0  A>kermit send foo.bar
  4654. +    ___________________
  4655. 0or
  4656. 0  A>kermit set port 1, set baud 1200, connect
  4657. +    _________________________________________
  4658. 0In this case, help and recognition are not available (because the program  won't
  4659.  start  running until after you type the entire command line), and Kermit-MS will
  4660.  exit back to DOS after completing the specified command or commands.  Therefore,
  4661.  when invoked with command line arguments, Kermit-MS will behave as if it were an
  4662.  external DOS command, like MODE.  Note that several commands may be given on the
  4663.  command line, separated by commas.
  4664. -Batch Operation:
  4665. 0Like other MS-DOS programs, Kermit-MS may be operated under batch  with  command
  4666.  line  arguments.   If  you invoke it without command line arguments, it will run
  4667.  interactively, reading commands from the keyboard and not the batch file.   When
  4668.  it exits, batch processing will continue to the end of the batch file.
  4669. -Remote Operation:
  4670. 0The MS-DOS CTTY command allows a MS-DOS  system  to  be  used  from  a  terminal
  4671.  connected to its communication port.  Such sessions must be conducted with great
  4672.  care, since many programs assume that they are running on the real console,  and
  4673.  explicitly  reference  screen memory or keyboard scan codes.  Kermit can be used
  4674.  in this manner too, but before you give it any file transfer commands, you  must
  4675.  inform  it  that  it  is  running in "remote mode" rather than its normal "local
  4676.  mode."  Use the SET REMOTE ON command for this  purpose,  to  prevent  the  file
  4677.  transfer display from being sent out the port.
  4678. -
  4679. -
  4680. -
  4681. -
  4682. -
  4683. -
  4684.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  4685. 1120                                                 Kermit File Transfer Package
  4686. -
  4687.  7.3.  Kermit-MS Commands
  4688. 0MS-DOS Kermit implements a large subset  of  the  commands  of  "ideal"  Kermit.
  4689.  Here's a brief summary:
  4690. 0          BYE  to remote server.
  4691.          CLEAR  key redefinitions.
  4692.          CLOSE  log file and stop logging remote session.
  4693.        COMMENT  a command file.
  4694.        CONNECT  as terminal to remote system.
  4695.            CWD  change local working directory.
  4696.         DEFINE  macros of Kermit-MS commands.
  4697.         DELETE  local files.
  4698.      DIRECTORY  listing of local files.
  4699.             DO  a macro expansion.
  4700.           EXIT  from Kermit-MS.
  4701.         FINISH  Shut down remote server.
  4702.            GET  files from remote server.
  4703.         HANGUP  the phone.
  4704.           HELP  about Kermit-MS.
  4705.          LOCAL  prefix for local file management commands.
  4706.            LOG  remote terminal session.
  4707.         LOGOUT  remote server.
  4708.           PUSH  to MS-DOS command level.
  4709.           QUIT  from Kermit-MS
  4710.        RECEIVE  files from remote Kermit.
  4711.         REMOTE  prefix for remote file management commands.
  4712.            RUN  a MS-DOS program.
  4713.           SEND  files to remote Kermit.
  4714.         SERVER  mode of remote operation.
  4715.            SET  various parameters.
  4716.           SHOW  various parameters.
  4717.          SPACE  inquiry (about disk space).
  4718.         STATUS  inquiry (about settings).
  4719.           TAKE  commands from file.
  4720.           TYPE  display a local file.
  4721.        VERSION  display Kermit-MS program version number.
  4722. 0In general, commands and their parameters may be  abbreviated  to  the  shortest
  4723.  prefix  that  is  unique  (e.g., V for VERSION).  In addition, C can be used for
  4724.  CONNECT, and H can be used for HELP.
  4725. 0The remainder of this section concentrates on the  commands  that  have  special
  4726.  form  or  meaning  for  MS-DOS  Kermit.   Not  all of the following commands are
  4727.  necessarily available on all MS-DOS systems, and some of the commands  may  work
  4728.  somewhat differently between DOS versions.
  4729. 0The notation used is as follows:  Optional  fields  are  in  [square  brackets],
  4730.  lists  of alternatives are in $curly braces.  In dialog examples user typein is
  4731.  underlined to distinguish it from computer typeout.
  4732. +__________
  4733. -
  4734. -MS-DOS Kermit for the IBM-PC-- Section 7
  4735. 1Kermit File Transfer Package                                                 121
  4736. -
  4737.  7.3.1.  Commands for Terminal Connection
  4738. 0The CONNECT command connects your PC as a terminal to the remote system, so that
  4739.  you can start up Kermit there.
  4740. -                              The CONNECT Command
  4741. 0Syntax:  CONNECT
  4742. 0The CONNECT command establishes an interactive terminal connection to the system
  4743.  connected  to  the  currently  selected communications port (e.g., COM1 or COM2)
  4744.  using full duplex (remote) echoing and no parity unless otherwise  specified  in
  4745.  previous SET commands.  You can type the escape character followed by the letter
  4746.  C to get back to Kermit-MS.  The escape character is Ctrl-] by default.
  4747. 0You can use the SET ESCAPE command to define a different escape  character,  SET
  4748.  SPEED (or BAUD) to change the speed, and SET PORT to switch between ports.  Read
  4749.  about the SET COMMAND in section 7.3.6 for more information on these  and  other
  4750.  settings.
  4751. 0Terminal emulation is described in greater detail in section 7.4 below.
  4752. -                               The HANGUP Command
  4753. 0Syntax:  HANGUP
  4754. 0HANGUP command attempts to lower the modem signals DTR and RTS.  It may be  used
  4755.  to  hang up the phone when dialed up through a modem, or to get the attention of
  4756.  port contention units or terminal concentrators that operate in this manner.
  4757. -
  4758. -
  4759. -
  4760. -
  4761. -
  4762. -
  4763. -
  4764. -
  4765.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  4766. 1122                                                 Kermit File Transfer Package
  4767. -
  4768.  7.3.2.  Commands for File Transfer
  4769. 0The file transfer commands are SEND, GET, and RECEIVE.
  4770. -                                The SEND Command
  4771. 0Syntax:  SEND filespec1 [filespec2]
  4772. 0The SEND command causes a file or file group to be sent from  the  local  MS-DOS
  4773.  system  to the Kermit on the remote system.  The remote Kermit may be running in
  4774.  either server or interactive mode; in the latter case, you should  already  have
  4775.  given it a RECEIVE command and escaped back to your PC.
  4776. 0filespec1 may contain  the  wildcard  characters  "*"  to  match  zero  or  more
  4777.  characters  within  a  field, and/or "#" (first position) or "?"  (elsewhere) to
  4778.  match any single character.  If filespec1 contains wildcard characters then  all
  4779.  matching  files will be sent, in the same order that MS-DOS would show them in a
  4780.  directory listing.  If  filespec1  specifies  a  single  file,  you  may  direct
  4781.  Kermit-MS  to  send  that  file  with a different name, given in filespec2.  For
  4782.  instance, in the command
  4783. 0  Kermit-MS>send foo.bar framus.widget
  4784. +            __________________________
  4785. 0filespec2 begins with the first nonblank character after filespec1 and ends with
  4786.  the carriage return; thus it may contain blanks or other unusual characters that
  4787.  may be appropriate on the target  machine.   The  alphabetic  case  of  text  in
  4788.  filespec2 is preserved in transmission.
  4789. 0If the SEND command is specified by itself on the command line, then you will be
  4790.  prompted  separately  for  the name of the file to send, and the name to send it
  4791.  under:
  4792. 0    Kermit-MS>send
  4793. +              ____
  4794.       Local Source File: c:\chris\xcom1.txt
  4795. +                        __________________
  4796.       Remote Destination File: com1.txt
  4797. +                              ________
  4798. 0If a file can't be opened for read access, standard MS-DOS  recovery  procedures
  4799.  will take place.  For example:
  4800. 0    Not ready error reading drive A
  4801.      Abort, Retry, Ignore?
  4802. 0If you select "Abort," you will be returned to DOS.
  4803. 0Files will be sent  with  their  MS-DOS  filename  and  filetype  (for  instance
  4804.  FOO.TXT,  no  device  or pathname).  If there is no filetype, then only the name
  4805.  will be sent, without the terminating dot.  Each file is sent  as  is,  with  no
  4806.  conversions  done  on  the  data,  except  for  possibly  adding  or  deleting a
  4807.  terminating Control-Z character (see the SET EOF command).
  4808. -
  4809. -MS-DOS Kermit for the IBM-PC-- Section 7
  4810. 1Kermit File Transfer Package                                                 123
  4811. -
  4812.  Once you give Kermit-MS the  SEND  command,  the  name  of  each  file  will  be
  4813.  displayed on your screen as the transfer begins; packet, retry, and other counts
  4814.  will be displayed along with informational messages during the transfer.  If the
  4815.  file  is successfully transferred, you will see "Complete," otherwise there will
  4816.  be an error message.  When the specified operation is  done,  the  program  will
  4817.  sound a beep.
  4818. 0Several single-character commands may be given  while  a  file  transfer  is  in
  4819.  progress:
  4820. 0  XX  (Control-X) Stop sending the current file and go on to the  next  one,  if
  4821.        any.
  4822. 0  XZ  Stop sending this file, and don't send any further files.
  4823. 0  XC  Return to Kermit-MS command level immediately without sending any kind  of
  4824.        notification to the remote system.
  4825. 0  XE  Like XC, but send an Error packet to the remote Kermit in  an  attempt  to
  4826.        bring it back to server or interactive command level.
  4827. 0  CR  Simulate a timeout:  resend the current packet, or NAK the expected one.
  4828. 0Control-X, Control-Z, and Control-E send the proper  protocol  messages  to  the
  4829.  remote Kermit to bring it gracefully to the desired state.  Control-C leaves the
  4830.  remote Kermit in whatever state it happens to be in, possibly retransmitting its
  4831.  last  packet  over and over, up to its retry limit.  You should only have to use
  4832.  Control-C in dire emergencies (the remote Kermit is  stuck,  the  remote  system
  4833.  crashed,  etc),  or  at  those times when you realize that you have given a file
  4834.  transfer command to Kermit-MS without first having told the remote Kermit  about
  4835.  it.
  4836. -
  4837. -
  4838. -
  4839. -
  4840. -
  4841. -
  4842. -
  4843. -
  4844.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  4845. 1124                                                 Kermit File Transfer Package
  4846. -
  4847.                                  The GET Command
  4848. 0Syntax:  GET remote-filespec
  4849. 0The GET command requests a remote Kermit server to send the file or  file  group
  4850.  specified  by remote-filespec.  This command can be used only when Kermit-MS has
  4851.  a Kermit server active on the other end of the connection.  This means that  you
  4852.  must have CONNECTed to the other system, logged in, run Kermit there, issued the
  4853.  SERVER command, and escaped back (e.g., X]C) to the  local  Kermit-MS.   If  the
  4854.  remote  Kermit  does  not  have  a  SERVER command, then you should use SEND and
  4855.  RECEIVE as described below.
  4856. 0You may use the GET command in a special way to specify  a  different  name  for
  4857.  storing  the  incoming  file.   Just  type  GET alone on a line, and you will be
  4858.  prompted separately for the remote filespec and the local filespec:
  4859. 0  Kermit-MS>get
  4860. +            ___
  4861.     Remote Source File: com1.txt
  4862. +                       ________
  4863.     Local Destination File: xcom1.txt
  4864. +                           _________
  4865. 0The local file name may contain a device designator, and/or  a  directory  path.
  4866.  If  more  than  one  file  arrives,  only the first will be renamed.  The device
  4867.  designator and directory path are described as follows:
  4868. 0  Device designator
  4869. 0      Store the file on the designated  device.   If  no  device  designator  is
  4870.        given, store it on the current default device.
  4871. 0  Directory path
  4872. 0      Store the file in the designated directory.  If no path given,  store  the
  4873.        file in the current directory.
  4874. 0The remote filespec is any string that can be a legal file specification for the
  4875.  remote  system;  it is not parsed or validated locally.  It can contain whatever
  4876.  wildcard or file-group notation is valid on the remote system.  As files arrive,
  4877.  their  names  will  be  displayed  on  your  screen,  along  with packet traffic
  4878.  statistics and status messages.
  4879. 0The same single-character commands are available as during SEND:
  4880. 0  XX  Request that the remote Kermit stop sending the current file, and  proceed
  4881.        to  the  next  one  immediately.  Since this is an optional feature of the
  4882.        Kermit protocol, the remote Kermit might not honor the request.
  4883. 0  XZ  Request that the remote Kermit terminate the entire transfer; this is also
  4884.        an optional feature that may or may not be supported by the remote Kermit.
  4885. 0  XC, XE, and CR operate in the same way as they do during SEND.  In this  case,
  4886.        XE should always do what XZ is supposed to do.
  4887. -
  4888. 0MS-DOS Kermit for the IBM-PC-- Section 7
  4889. 1Kermit File Transfer Package                                                 125
  4890. -
  4891.                                The RECEIVE Command
  4892. 0Syntax:  RECEIVE [filespec]
  4893. 0The RECEIVE command tells Kermit-MS to receive a file or  file  group  from  the
  4894.  other system.  Kermit-MS passively waits for the file to arrive; this command is
  4895.  not to be used when talking to a Kermit server.  (Use GET for that).  You should
  4896.  already  have  issued  a  SEND  command to the remote Kermit and escaped back to
  4897.  Kermit-MS before issuing the RECEIVE command.
  4898. 0If the optional filespec is provided, the first incoming  file  will  be  stored
  4899.  under  that  name.   The  filespec  may include any combination of the following
  4900.  fields:
  4901. 0  Device designator
  4902. 0      Store the file on the designated  device.   If  no  device  designator  is
  4903.        given, store it on the current default device.
  4904. 0  Directory path
  4905. 0      Store the file in the designated directory.  If no path given,  store  the
  4906.        file in the current directory.
  4907. 0  File name
  4908. 0      Store the file under the name given.  If no name is given, store it  under
  4909.        the  name  it  was  sent  under,  converted,  if  necessary,  to  suit DOS
  4910.        conventions, and modified, if desired, to avoid overwriting  any  file  of
  4911.        the same name in the same directory.
  4912. 0If the optional filespec was provided, but more than one file arrives, the first
  4913.  file  will  be stored under the given filespec, and the remainder will be stored
  4914.  under their own names, but on the specified device and directory.
  4915. 0If an incoming file does not arrive in its  entirety,  Kermit-MS  will  normally
  4916.  discard  it  and  it  will  not  appear  in your directory.  You may change this
  4917.  behavior by using the command SET INCOMPLETE KEEP, which will cause as  much  of
  4918.  the file as arrived to be saved on the disk.
  4919. 0The same single-character commands are available as during SEND:
  4920. 0  XX  Request that the remote Kermit stop sending the current file, and  proceed
  4921.        to  the  next  one  immediately.  Since this is an optional feature of the
  4922.        Kermit protocol, the remote Kermit might not honor the request.
  4923. 0  XZ  Request that the remote Kermit terminate the entire transfer; this is also
  4924.        an optional feature that may or may not be supported by the remote Kermit.
  4925. 0  XC, XE, and CR operate in the same way as they do during SEND.  In this  case,
  4926.        XE should always do what XZ is supposed to do.
  4927. -
  4928. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  4929. 1126                                                 Kermit File Transfer Package
  4930. -
  4931.  If the incoming file has the same name  as  a  file  that  already  exists,  and
  4932.  WARNING  is  set ON, Kermit-MS will change the incoming name (and inform you how
  4933.  it renamed it) so as not to obliterate the pre-existing  file.   If  WARNING  is
  4934.  OFF,  the  original  file will be overwritten; if you type XX or XZ to interrupt
  4935.  the transfer, you'll either get a partial new file, or else both the old and the
  4936.  new  file  of that name will be lost, depending on SET INCOMPLETE.  In any case,
  4937.  when WARNING is off, files with  the  same  name  as  incoming  files  will  not
  4938.  survive.
  4939. 0Caution:  If an incoming file's name (the part before the dot) corresponds to an
  4940.  MS-DOS device name, such as NUL, COM1, CON, AUX, LPT1, or PRN, output will go to
  4941.  that device, rather than to a file with that name.  This is a feature of MS-DOS.
  4942. -
  4943. -
  4944. -
  4945. -
  4946. -
  4947. -
  4948. -
  4949. -
  4950. -
  4951. -
  4952. -
  4953. -
  4954. -
  4955. -
  4956. 0MS-DOS Kermit for the IBM-PC-- Section 7
  4957. 1Kermit File Transfer Package                                                 127
  4958. -
  4959.  7.3.3.  Commands Controlling Remote Kermit Servers
  4960. 0The BYE, FINISH, and LOGOUT commands allow you to  shut  down  a  remote  Kermit
  4961.  server:
  4962. 0BYE             When communicating with a remote  Kermit  server,  use  the  BYE
  4963.                  command  to  shut down the server, log out its session, and exit
  4964.                  locally from Kermit-MS to DOS.
  4965. 0FINISH          Like BYE, FINISH shuts down the remote server.  However,  FINISH
  4966.                  does  not  log  out  the  server's  session.   You  are  left at
  4967.                  Kermit-MS prompt level so that  you  can  connect  back  to  the
  4968.                  session on the remote system.
  4969. 0LOGOUT          The LOGOUT command is identical to the BYE command,  except  you
  4970.                  will  remain at Kermit-MS prompt level, rather than exit to DOS,
  4971.                  so that you can establish or use another connection.
  4972. 0Other functions may be also requested of a server, described  under  the  REMOTE
  4973.  command, immediately below.
  4974. -
  4975. -
  4976. -
  4977. -
  4978. -
  4979. -
  4980. -
  4981. -
  4982. -
  4983. -
  4984. -
  4985. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  4986. 1128                                                 Kermit File Transfer Package
  4987. -
  4988.  7.3.4.  Commands for File Management
  4989. 0Kermit-MS provides commands for managing both local and remote files.
  4990. -                              The REMOTE Commands
  4991. 0The REMOTE keyword is a prefix for a number of commands.  It indicates that  the
  4992.  command  is  to  be  performed  by the remote Kermit, which must be running as a
  4993.  server.  Note that not all Kermit servers are capable  of  executing  all  these
  4994.  commands,  and  some  Kermit  servers may be able to perform functions for which
  4995.  Kermit-MS does not yet have the corresponding commands.   In  case  you  send  a
  4996.  command  the server cannot execute, it will send back a message stating that the
  4997.  command is unknown to it.  If the remote server can execute the command, it will
  4998.  send  the  results to your screen (or whatever device you have specified in your
  4999.  most recent SET DESTINATION command).
  5000. 0Here are the REMOTE commands that Kermit-MS may issue:
  5001. 0REMOTE CWD [directory]
  5002. 0        Ask the server to Change your Working Directory on the remote host, that
  5003.          is,  the  default  source  and  destination  area  for file transfer and
  5004.          management.  You will be prompted for a password, which will not echo as
  5005.          you  type  it.   If  you do not supply a password (i.e., you type only a
  5006.          carriage return), the  server  will  attempt  to  access  the  specified
  5007.          directory  without  a  password.  If you do not supply a directory name,
  5008.          your default or login directory on the remote system will be assumed and
  5009.          you will not be prompted for a password.
  5010. 0REMOTE DELETE filespec
  5011. 0        Ask the server to delete the specified  file  or  files  on  the  remote
  5012.          system.   In  response,  the server may display a list of the files that
  5013.          were or were not successfully deleted.
  5014. 0REMOTE DIRECTORY [filespec]
  5015. 0        Ask the server to display a directory listing of  the  specified  files.
  5016.          If no files are specified, then the list should include all files in the
  5017.          current working directory.
  5018. 0REMOTE HELP
  5019. 0        Ask the server to list the services it provides.
  5020. 0REMOTE HOST [command]
  5021. 0        Ask the server to send  the  command  to  the  remote  system's  command
  5022.          processor for execution.
  5023. -
  5024. -MS-DOS Kermit for the IBM-PC-- Section 7
  5025. 1Kermit File Transfer Package                                                 129
  5026. -
  5027.  KERMIT command
  5028. 0        Send the command to the remote Kermit for  interpretation  as  a  Kermit
  5029.          command  itself, in the remote Kermit server's own command syntax.  Most
  5030.          Kermit servers, including Kermit-MS, do not yet recognize such commands.
  5031. 0REMOTE SPACE [directory]
  5032. 0        Ask the server to provide a brief summary of disk usage in the specified
  5033.          area  on  the  remote host or, if none specified, the default or current
  5034.          area.
  5035. 0REMOTE TYPE filespec
  5036. 0        Ask the server to display the contents of the specified remote  file  or
  5037.          files on your screen.
  5038. -
  5039. -
  5040. -
  5041. -
  5042. -
  5043. -
  5044. -
  5045. -
  5046. -
  5047. -
  5048. -
  5049. -
  5050. -
  5051.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5052. 1130                                                 Kermit File Transfer Package
  5053. -
  5054.                                 The LOCAL Command
  5055. 0The LOCAL keyword is a prefix for a number of commands.  It indicates  that  the
  5056.  specified  command  is  to  be  executed  on the local MS-DOS system.  The LOCAL
  5057.  prefix may be omitted.   All  file  specifications  may  include  device  and/or
  5058.  directory fields.  The local commands are:
  5059. 0CWD path
  5060. 0        Changes the current working directory to the given path.  All references
  5061.          to local file names without explicit paths will refer to that path.
  5062. 0DELETE filespec
  5063. 0        Deletes the specified file or files.   As  in  DOS,  the  names  of  the
  5064.          deleted  files  are  not  listed,  only the message "file(s) deleted" or
  5065.          "file(s) not found", and if you give the command "delete *.*", Kermit-MS
  5066.          will prompt "Are you sure?", like DOS.
  5067. 0DIRECTORY [filespec]
  5068. 0        Lists the names, sizes, and creation dates of files that match the given
  5069.          file  specification.  If no filespec is given, the command is equivalent
  5070.          to DIR *.*.
  5071. 0SPACE
  5072. 0        Performs the MS-DOS CHKDSK function by running the CHKDSK  program  from
  5073.          the current path.
  5074. 0RUN command
  5075. 0        Passes the command line to COMMAND.COM for execution.  Thus,  any  legal
  5076.          DOS  operation  is  permitted:   running  a  program  (with command line
  5077.          arguments or i/o redirection), executing a DOS command, or  executing  a
  5078.          batch  file.   COMMAND.COM  should  be  in  the current path.  Kermit is
  5079.          suspended while  the  command  is  executed  and  automatically  resumes
  5080.          afterward.   Yes,  one  may  nest  RUN KERMIT several times if memory is
  5081.          available; but that just wastes memory.  If the command is a DOS command
  5082.          (like  DIR  or  REN)  it  will  be  executed  directly  by  COMMAND.COM.
  5083.          Otherwise, the specified file will be executed, which must be in .EXE or
  5084.          .COM  format, or a .BAT file containing DOS commands, from the specified
  5085.          path or according to the value of the  PATH  variable  if  no  path  was
  5086.          included in the filespec.  Example:
  5087. 0            Kermit-MS>run more < foo.txt
  5088. +                      __________________
  5089. -
  5090. -
  5091. -
  5092.  MS-DOS Kermit for the IBM-PC-- Section 7
  5093. 1Kermit File Transfer Package                                                 131
  5094. -
  5095.  TYPE filespec
  5096. 0        Displays the specified local file on the screen.  Automatic pause is not
  5097.          available  at  the  end  of  a  page  (but  see above example for how to
  5098.          accomplish this).  Ctrl-S can be used to stop scrolling  and  Ctrl-Q  to
  5099.          continue scrolling.
  5100. 0PUSH
  5101. 0        Invokes  an  MS-DOS  command   processor   "under"   Kermit-MS,   either
  5102.          COMMAND.COM  or  whatever  shell you have specified with COMSPEC in your
  5103.          CONFIG.SYS file.  You can return to Kermit-MS by typing the MS-DOS  EXIT
  5104.          command,  and  you will find Kermit-MS as you left it, with all settings
  5105.          intact.  The same function is accomplished by the  CONNECT  escape-level
  5106.          command P.
  5107. 0The local RUN command has various uses,  one  of  which  is  to  supplement  the
  5108.  features  of  Kermit-MS.   A  common complaint about Kermit-MS, for instance, is
  5109.  that it lacks login scripts, autodialer control, and phone  directories.   While
  5110.  waiting  for  these features to appear in a generally useful form in some future
  5111.  release, you might be able to provide the specific functions you need by writing
  5112.  a program in any compiled language (assembler, Pascal, C, etc) and then invoking
  5113.  from within Kermit-MS using the RUN  command.   For  instance,  if  you  have  a
  5114.  Hayes-like  modem, you could write a short program to operate the dialer with AT
  5115.  commands, accepting the phone number to dial  on  the  command  line.   If  this
  5116.  program were called DIAL, then you could "run dial 7654321" from within Kermit.
  5117. -
  5118. -
  5119. -
  5120. -
  5121. -
  5122. -
  5123. -
  5124. -
  5125. -
  5126. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5127. 1132                                                 Kermit File Transfer Package
  5128. -
  5129.                                  The TAKE Command
  5130. 0Syntax:  TAKE filespec
  5131. 0The TAKE command instructs Kermit-MS to  execute  commands  from  the  specified
  5132.  file,  which may include an explicit path; if no path is specified, the value of
  5133.  the PATH variable is used; if PATH has no  value,  then  the  current  disk  and
  5134.  directory  are  searched.   The  command  file  may  include any valid Kermit-MS
  5135.  commands, including TAKE, but it cannot include  characters  to  be  sent  to  a
  5136.  remote host during terminal emulation (i.e., after a CONNECT command).
  5137. 0Commands within TAKE files, unlike interactive commands,  may  include  trailing
  5138.  comments, preceded by semicolons:
  5139. 0    set port 2 ; Select the modem port
  5140.      set speed 1200 ; Set the speed for the modem
  5141. 0Warning:  since TAKE  file  processing  discards  all  characters  from  a  line
  5142.  beginning  with the first semicolon, it is not possible to include semicolons in
  5143.  remote filespecs within TAKE files, e.g.,
  5144. 0    get dska:foo.bar;6
  5145. 0Commands from the TAKE file will normally not be displayed on your  screen.   If
  5146.  you want to see them as they are executing, you can SET TAKE-ECHO ON.
  5147. -
  5148. -
  5149. -
  5150. -
  5151. -
  5152. -
  5153. -
  5154. -
  5155. -
  5156. -
  5157.  MS-DOS Kermit for the IBM-PC-- Section 7
  5158. 1Kermit File Transfer Package                                                 133
  5159. -
  5160.                             The LOG and CLOSE Commands
  5161. 0Syntax:  LOG filespec
  5162.           CLOSE
  5163. 0Specifies that your terminal session during CONNECT  will  be  recorded  in  the
  5164.  specified file; the filespec may include a device specification and/or directory
  5165.  path.  The LOG command allows you to "capture" files from a remote  system  that
  5166.  doesn't  have  Kermit, as well as to record remote command typescripts.  The log
  5167.  is closed when you EXIT from Kermit-MS or  when  you  issue  an  explicit  CLOSE
  5168.  command.
  5169. 0During terminal emulation, the LOG  command  records  all  the  characters  that
  5170.  arrive  from  the remote host in the specified file, including escape sequences.
  5171.  If you have SET LOCAL-ECHO ON, it will also record the characters you type.  And
  5172.  if you have also SET DEBUG ON, then during file transfer it will also record the
  5173.  packets in the log.
  5174. 0You may LOG PRN to cause the logging information to be printed directly on  your
  5175.  printer.   Note  that  any escape sequences that are sent to the screen are also
  5176.  sent to the printer.
  5177. 0If you want to record information without imbedded  escape  sequences,  use  the
  5178.  screen  dump  feature,  invoked  by the CONNECT escape-level command F, which is
  5179.  described in more detail in the terminal emulation section.
  5180. -
  5181. -
  5182. -
  5183. -
  5184. -
  5185. -
  5186. -
  5187. -
  5188. -
  5189. -
  5190.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5191. 1134                                                 Kermit File Transfer Package
  5192. -
  5193.  7.3.5.  The SERVER Command
  5194. 0Kermit-MS is capable of acting as a full-fledged Kermit server,  providing  file
  5195.  transfer  and  management  for  users coming in through one of the communication
  5196.  ports.  This is normally used when Kermit-MS is acting  as  a  remote  host  for
  5197.  another  microcomputer.   To  put  Kermit-MS  into  server mode, first issue any
  5198.  desired SET commands to select and configure the desired port, and then type the
  5199.  SERVER  command.   Kermit-MS  will  await all further instructions from the user
  5200.  Kermit on the other end of the connection, which may be hardwired  or  connected
  5201.  through an autoanswer modem.  For example:
  5202. 0  Kermit-MS>set port 1
  5203. +            __________
  5204.    Kermit-MS>set speed 1200
  5205. +            ______________
  5206.    Kermit-MS>set timer on
  5207. +            ____________
  5208.    Kermit-MS>set warning on
  5209. +            ______________
  5210.    Kermit-MS>server
  5211. +            ______
  5212. 0Kermit 2.29 server mode supports the following requests:
  5213. 0    SEND           REMOTE DELETE       REMOTE CWD
  5214.      GET            REMOTE DIRECTORY    REMOTE HOST
  5215.      FINISH         REMOTE SPACE
  5216.      BYE            REMOTE TYPE
  5217. 0The REMOTE HELP command is not implemented.  Remote CWD can be  used  to  change
  5218.  both directories and devices.
  5219. 0    CAUTION:  The method used for most of the REMOTE commands  is  to  invoke  a
  5220.      task  with  the user's command line, redirect standard output to a temporary
  5221.      file, $KERMIT$.TMP, send that file back to the remote end, and  then  delete
  5222.      the  file.   Sufficient  space  must  be  available  to store this file.  To
  5223.      service DOS commands or user tasks the  boot  drive  must  hold  a  copy  of
  5224.      COMMAND.COM.  PATH  will not be searched (this can be disastrous on a floppy
  5225.      disk based system).
  5226. 0    FURTHER CAUTION:  Any of these DOS tasks or programs may encounter an error,
  5227.      and  in  that  case,  DOS  will  generally  put  the familiar "Abort, Retry,
  5228.      Ignore?"  message on the screen, and  will  wait  for  an  answer  from  the
  5229.      keyboard.  This will hang the server until a human comes to the keyboard and
  5230.      gives a response.  The same thing will happen when any  program  is  invoked
  5231.      that  interacts  with the real console.  For instance, REMOTE SPACE works by
  5232.      running CHKDSK; if CHKDSK finds something wrong with the disk while tallying
  5233.      up  the  space,  it will ask (at the console) if you want to it to be fixed.
  5234.      This, too, will hang the server.
  5235. 0    MORAL:  The MS-DOS Kermit server should probably  not  be  used  for  REMOTE
  5236.      commands unless someone is around to take care of it when it gets stuck.
  5237. -
  5238. -
  5239. -MS-DOS Kermit for the IBM-PC-- Section 7
  5240. 1Kermit File Transfer Package                                                 135
  5241. -
  5242.  7.3.6.  The SET Command
  5243. 0Syntax:  SET parameter value
  5244.      or:  SET parameter parameter value
  5245. 0The SET command establishes or modifies various parameters for file transfer  or
  5246.  terminal  connection.   You  can  examine  their values with the STATUS and SHOW
  5247.  commands.  The following SET commands are available in Kermit-MS:
  5248. 0                BAUD  Communications port line speed (synonym for SPEED)
  5249.                  BELL  Whether to beep at the end of a transaction
  5250.      BLOCK-CHECK-TYPE  Level of error checking for file transfer
  5251.                 DEBUG  Display packet contents during file transfer
  5252.          DEFAULT-DISK  Default disk drive for file i/o
  5253.           DESTINATION  Default destination device for incoming files
  5254.               DISPLAY  For selecting the type of file transfer display
  5255.                  DUMP  Screen dump file (or device) name
  5256.           END-OF-LINE  Packet termination character
  5257.                   EOF  Method for determining or marking end of file
  5258.                ESCAPE  Escape character for CONNECT
  5259.          FLOW-CONTROL  Enable or disable XON/XOFF
  5260.             HANDSHAKE  Half-duplex line turnaround option
  5261.            INCOMPLETE  What to do with an incompletely received file
  5262.                   KEY  Specify key redefinitions, or "keystroke macros"
  5263.            LOCAL-ECHO  Specify which computer does the echoing during CONNECT
  5264.             MODE-LINE  Whether to display a mode line during terminal emulation
  5265.                PARITY  Character parity to use
  5266.                  PORT  Select a communications port
  5267.                PROMPT  Change the "Kermit-MS>" prompt to something else
  5268.               RECEIVE  Request remote Kermit to use specified parameters
  5269.                REMOTE  For running Kermit-MS interactively from back port
  5270.                 RETRY  Packet retransmission threshold
  5271.                  SEND  Use the specified parameters during file transfer
  5272.                 SPEED  Communications port line speed (synonym for BAUD)
  5273.             TAKE-ECHO  Control echoing of commands from TAKE files
  5274.              TERMINAL  Emulation and parameters
  5275.                 TIMER  Enable/disable timeouts during file transfer
  5276.               WARNING  Specify how to handle filename collisions
  5277. 0Next, the SET commands will be described in greater detail.
  5278. -
  5279. -
  5280. -
  5281. -
  5282. -
  5283.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5284. 1136                                                 Kermit File Transfer Package
  5285. -
  5286.  SET BAUD
  5287. 0Syntax:  SET BAUD rate
  5288. 0Set the speed of the currently selected terminal communications  port  (COM1  by
  5289.  default)  to 300, 1200, 1800, 2400, 4800, 9600, 19200 bps, or other common speed
  5290.  Kermit-MS leaves the current communication port settings alone unless you  issue
  5291.  explicit  SET  commands  to change them.  SET SPEED is an acceptable synonym for
  5292.  SET BAUD.  Note that on  certain  systems,  when  you  first  run  Kermit  after
  5293.  powering  the  system  up, you may get a message "Unrecognized baud rate".  This
  5294.  means that Kermit tried to read the speed  from  the  port  and  none  was  set.
  5295.  Simply  use  SET BAUD or the DOS MODE command to set the desired speed.  The NIH
  5296.  Computer Center MSKERMIT.INI file sets this parameter to 2400.
  5297. -SET BELL
  5298. 0Syntax:  SET BELL $ON, OFF
  5299. 0Specifies whether bell (beeper) should sound upon completion of a file  transfer
  5300.  operation.  Normally ON.
  5301. -SET BLOCK-CHECK
  5302. 0Syntax:  SET BLOCK-CHECK $1, 2, 3
  5303. 0Selects the error detection  method:   a  1-character  checksum,  a  2-character
  5304.  checksum,  or  a 3-character 16-bit cyclic redundancy check (CRC).  If the other
  5305.  Kermit program is not capable  of  type  2  or  3  checking  methods,  automatic
  5306.  fallback  to type 1 will occur.  NIH recommends use of type 3 whenever the other
  5307.  Kermit supports it.   The  NIH  Computer  Center  MSKERMIT.INI  file  sets  this
  5308.  parameter to 3.
  5309. -SET DEBUG
  5310. 0Syntax:  SET DEBUG $ON, OFF
  5311. 0When debugging is ON, Kermit will display packet traffic on your  screen  during
  5312.  file  transfer.   If  the  debugger is loaded, control will be transferred to it
  5313.  when Ctrl-C is typed.  During terminal emulation (on the IBM PC  only),  control
  5314.  characters  are  displayed  in uparrow notation.  If logging is being done, file
  5315.  transfer packets are included in the log.   When  OFF  (this  is  the  default),
  5316.  debugging information is not displayed, and packets are not logged.
  5317. -
  5318. -
  5319. -
  5320. 0MS-DOS Kermit for the IBM-PC-- Section 7
  5321. 1Kermit File Transfer Package                                                 137
  5322. -
  5323.  SET DEFAULT-DISK
  5324. 0Syntax:  SET DEFAULT-DISK x:
  5325. 0Specify the default disk drive to use for file transfer, directory listings, and
  5326.  so  forth.   Equivalent  to  typing  the DOS command for changing disks (A:, B:,
  5327.  etc).  Affects Kermit and all inferior processes, but when you exit from Kermit,
  5328.  you will still have the same default disk as when you entered.
  5329. -SET DESTINATION
  5330. 0Syntax:  SET DESTINATION device
  5331. 0Specify the device for incoming files during file transfer:  DISK,  PRINTER,  or
  5332.  SCREEN.   SET  DESTINATION  PRINTER  will  cause  incoming  files  to be spooled
  5333.  directly to the printer; SCREEN will send output normally destined for the  disk
  5334.  to  the  screen.   The normal destination is DISK.  SET DESTINATION affects only
  5335.  files transferred with SEND, GET, or RECEIVE; it cannot be used to  reroute  the
  5336.  output from REMOTE server commands.
  5337. -
  5338. -
  5339. -
  5340. -
  5341. -
  5342. -
  5343. -
  5344. -
  5345. -
  5346. -
  5347. -
  5348. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5349. 1138                                                 Kermit File Transfer Package
  5350. -
  5351.  SET DISPLAY
  5352. 0Syntax:  SET DISPLAY $QUIET, REGULAR, SERIAL
  5353. 0During file transfer, MS-DOS Kermit's regular  display  is  a  formatted  screen
  5354.  whose fields are randomly updated with file names, packet numbers, error counts,
  5355.  percent done, error messages, and so forth:
  5356. 0               File name:  FOO
  5357.        KBytes transferred:  7
  5358. 0                 Sending:  In progress
  5359.              Percent done:  52%
  5360. 0       Number of packets:  74
  5361.         Number of retries:  2
  5362.                Last error:  None
  5363.              Last warning:  None
  5364. 0The items in the right-hand column are updated more or less at random.
  5365. 0If you wish to run Kermit-MS interactively through the back port,  for  instance
  5366.  after  the  operator has done CTTY COM1, you must give the command SET REMOTE ON
  5367.  (which, currently at least, is equivalent to SET DISPLAY QUIET); this suppresses
  5368.  the  file  transfer display screen, so that the display won't interfere with the
  5369.  file transfer itself.  You can also use this command to suppress the display  in
  5370.  local  mode,  in  case  you  are using a system that allows you to do other work
  5371.  while file transfer proceeds in the background.
  5372. 0If you have your PC connected to  a  speaking  device  (a  common  practice  for
  5373.  visually  impaired  people),  or you are logging the display screen to a printer
  5374.  (using DOS XPrtSc or kermit > prn), the random nature  of  the  regular  display
  5375.  will  make  the  results of little use.  SET DISPLAY SERIAL is provided for this
  5376.  purpose; it causes the program to report progress "serially" on the screen.   In
  5377.  serial  mode,  error  messages  are  preceded  with  the word "Error" and repeat
  5378.  messages with the word "Retry".  Packets are numbered as dots with  every  tenth
  5379.  being  a  plus sign.  The packet display is automatically broken across lines at
  5380.  every 70th packet.  The serial display makes much more sense  when  spoken  than
  5381.  does the regular display.
  5382. 0The serial display does not show the percent and kilobytes transferred.  REGULAR
  5383.  is the default.
  5384. -SET DUMP
  5385. 0Syntax:  SET DUMP path
  5386. 0Changes the file or device name of the screen dump file.  The normal  file  name
  5387.  is  KERMIT.SCN.  See  the section on terminal emulation for details about screen
  5388.  dumps.
  5389. -
  5390. 0MS-DOS Kermit for the IBM-PC-- Section 7
  5391. 1Kermit File Transfer Package                                                 139
  5392. -
  5393.  SET END-OF-LINE
  5394. 0Syntax:  SET END-OF-LINE number
  5395. 0If the remote system needs packets to  be  terminated  by  anything  other  than
  5396.  carriage  return, specify the decimal value of the desired ASCII character.  The
  5397.  NIH MSKERMIT.INI file sets this parameter to 13 (carriage return).
  5398. -SET EOF
  5399. 0Syntax:  SET EOF $CTRL-Z, NOCTRL-Z
  5400. 0Controls how the end of file is handled.  CTRL-Z specifies a Control-Z character
  5401.  should be appended to the end of an incoming file, unless it already ends with a
  5402.  Control-Z.  Certain MS-DOS text editors and other applications require files  to
  5403.  be  in this format.  For outbound files, treat the first Control-Z as the end of
  5404.  the local file, and do not send it or any subsequent  characters.   NOCTRL-Z  is
  5405.  the  default;  incoming  files are stored, and MS-DOS files are sent, exactly as
  5406.  is, in their entirety.  The NIH Computer  Center  MSKERMIT.INI  file  sets  this
  5407.  parameter to CTRL-Z.
  5408. -SET ESCAPE
  5409. 0Syntax:  SET ESCAPE character
  5410. 0Specify  the  control  character  you  want  to  use  to  "escape"  from  remote
  5411.  connections    back    to    Kermit-MS.     The    default    is   normally   X]
  5412.  (Control-Rightbracket).  The character is entered literally, and should normally
  5413.  be  chosen  from  the  ASCII control range.  It is not possible to use non-ASCII
  5414.  characters (e.g., function keys) for this purpose.
  5415. -SET FLOW-CONTROL
  5416. 0Syntax:  SET FLOW-CONTROL $XON/XOFF, NONE
  5417. 0Specify the full duplex flow control to be done on the currently selected  port.
  5418.  The  options  are XON/XOFF and NONE.  The specified type of flow control will be
  5419.  done during both terminal emulation and file  transfer.   By  default,  XON/XOFF
  5420.  flow  control  is  selected.   XON/XOFF should not be used on half-duplex (local
  5421.  echo) connections.  If XON/XOFF is used, HANDSHAKE should be set to  NONE.   The
  5422.  NIH  MSKERMIT.INI file sets this parameter to XON/XOFF for the DECsystem-10, and
  5423.  to NONE for TSO and WYLBUR.
  5424. -
  5425. -
  5426. -
  5427. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5428. 1140                                                 Kermit File Transfer Package
  5429. -
  5430.  SET HANDSHAKE
  5431. 0Syntax:  SET HANDSHAKE $CODE number, BELL, CR, LF, NONE, XOFF, XON
  5432. 0Specify any half-duplex line turnaround handshake character  for  the  currently
  5433.  selected  port.  The CODE number form allows any ASCII character to be specified
  5434.  by its decimal ASCII code.   The  specified  handshaking  is  done  during  file
  5435.  transfer  only.   Handshake  is NONE by default; if set to other than NONE, then
  5436.  FLOW-CONTROL should be set  to  NONE.   The  NIH  MSKERMIT.INI  file  sets  this
  5437.  parameter to NONE for the DECsystem-10 and TSO, and to XON for WYLBUR.
  5438. -SET INCOMPLETE
  5439. 0Syntax:  SET INCOMPLETE $DISCARD, KEEP
  5440. 0Specifies what to do with files that arrive incompletely:  discard them or  keep
  5441.  them.  They are normally discarded.
  5442. -SET KEY
  5443. 0Syntax:  SET KEY key-specifier
  5444. 0Specifies that when the designated key is struck during terminal emulation,  the
  5445.  associated  character  string is sent.  The key-specifier is one of the keywords
  5446.  BACKSPACE, F1, F2, ..., or else SCAN followed by a scan code.
  5447. 0If SCAN is used, it is followed by a decimal number to indicate the scan code of
  5448.  the key, which you would ascertain from your system reference manual, or else by
  5449.  using the Kermit-MS SHOW KEY command.  SET KEY prompts you on a new line for the
  5450.  definition  string.   Certain  characters,  like  ESC and CR, may not be entered
  5451.  literally into the string, but can be included by inserting escape codes of  the
  5452.  form \ooo, a backslash followed by a 2- or 3-digit octal number corresponding to
  5453.  the ASCII value of the  desired  character.   If  some  other  key  redefinition
  5454.  package,  like  ProKey,  has  been  loaded,  then  its  redefinitions  will take
  5455.  precedence over Kermit's.
  5456. 0The SET KEY command is illustrated in the terminal emulation section 7.4.   Note
  5457.  that  key  redefinitions  occur  only  during  terminal  emulation,  and  not at
  5458.  Kermit-MS command level, or outside of Kermit.
  5459. -
  5460. -
  5461. -
  5462. -
  5463. -MS-DOS Kermit for the IBM-PC-- Section 7
  5464. 1Kermit File Transfer Package                                                 141
  5465. -
  5466.  SET LOCAL-ECHO
  5467. 0Syntax:  SET LOCAL-ECHO $ON, OFF
  5468. 0Specify how characters are echoed during terminal  emulation  on  the  currently
  5469.  selected  port.   ON  specifies  that  characters  are to be echoed by Kermit-MS
  5470.  (because neither the remote computer nor the communications circuitry  has  been
  5471.  requested  to echo), and is appropriate for half-duplex connections.  LOCAL-ECHO
  5472.  is OFF by default, for full-duplex, remote echo operation.
  5473. 0When using Kermit to connect two PCs "back to back," use local echo so that when
  5474.  you  CONNECT  to the other PC to send messages to its operator, you can see what
  5475.  you are typing.  Depending on the system, you may have to type a carriage return
  5476.  and  a linefeed at the end of each line in order to make the display look right.
  5477.  The NIH Computer Center MSKERMIT.INI file sets this parameter  to  OFF  for  the
  5478.  DECsystem-10, and to ON for TSO and WYLBUR.
  5479. -SET MODE-LINE
  5480. 0Syntax:  SET MODE-LINE $ON, OFF
  5481. 0Turn the status, or "mode" line (the 25th line during terminal connection) on or
  5482.  off.   When  the  mode  line  is  enabled, it may be turned on and off using the
  5483.  CONNECT escape-level command M. Refer to the terminal  emulation  section,  7.4,
  5484.  for further details.
  5485. -
  5486. -
  5487. -
  5488. -
  5489. -
  5490. -
  5491. -
  5492. -
  5493. -
  5494. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5495. 1142                                                 Kermit File Transfer Package
  5496. -
  5497.  SET PARITY
  5498. 0Syntax:  SET PARITY $EVEN, ODD, MARK, SPACE, NONE
  5499. 0Specify the character parity to be used on the currently  selected  port.   NONE
  5500.  means  no  parity  processing  is done, and the 8th bit of each character can be
  5501.  used for data when transmitting binary files.  This is the normal case.
  5502. 0You will need to  SET  PARITY  to  ODD,  EVEN,  MARK,  or  possibly  SPACE  when
  5503.  communicating   with   a   system,   or  over  a  network,  or  through  modems,
  5504.  concentrators, multiplexers, or front ends  that  require  or  impose  character
  5505.  parity  on the communication line.  For instance, GTE Telenet normally uses MARK
  5506.  parity.  If you neglect to SET PARITY when the communications equipment requires
  5507.  it,  the  symptom  may  be  that  terminal  emulation  works (well or maybe only
  5508.  partially), but file transfer does not work at all.
  5509. 0If you have set parity to ODD, EVEN, MARK, or SPACE, then Kermit-MS will request
  5510.  that  binary  files  will  be transferred using 8th-bit-prefixing.  If the other
  5511.  Kermit knows how to do 8th-bit-prefixing (this is an  optional  feature  of  the
  5512.  Kermit  protocol,  and  not  all implementations of Kermit have it), then binary
  5513.  files can be transmitted successfully.  If NONE is specified,  8th-bit-prefixing
  5514.  will  not  be  requested.   Note  that there is no advantage to using parity; it
  5515.  reduces Kermit's file transfer efficiency without providing any additional error
  5516.  detection.   The SET PARITY command is provided only to allow Kermit to adapt to
  5517.  conditions  where  parity  is  required,  or  8-bit  transmission  is  otherwise
  5518.  thwarted.   The  NIH  MSKERMIT.INI  file sets this parameter to EVEN for TSO and
  5519.  WYLBUR, and to NONE for the DECsystem-10.
  5520. -SET PORT
  5521. 0Syntax:  SET PORT $number, COM1, COM2
  5522. 0On machines with more than one communications port, select the port to  use  for
  5523.  file  transfer  and CONNECT.  This command lets you use a different asynchronous
  5524.  adapter, or switch between two or more simultaneous remote sessions.  Subsequent
  5525.  SET  SPEED,  PARITY, HANDSHAKE, FLOW, and LOCAL-ECHO commands will apply to this
  5526.  port only.  SET PORT 1 selects COM1, SET PORT 2 selects COM2.   Kermit  defaults
  5527.  to port 1.  The NIH Computer Center MSKERMIT.INI file sets this parameter to 1.
  5528. -SET PROMPT
  5529. 0Syntax:  SET PROMPT string
  5530. 0This command allows you to change the MS-DOS Kermit program's prompt.
  5531. -
  5532. -
  5533. -
  5534.  MS-DOS Kermit for the IBM-PC-- Section 7
  5535. 1Kermit File Transfer Package                                                 143
  5536. -
  5537.  SET RECEIVE
  5538. 0Syntax:  SET RECEIVE parameter value
  5539. 0At the beginning of a protocol operation, request the remote Kermit to  use  the
  5540.  given value specified parameter, or inform Kermit-MS that the remote Kermit will
  5541.  be using it.
  5542. 0PACKET-LENGTH number
  5543. 0        Ask the remote Kermit to use the specified maximum  length  for  packets
  5544.          that it sends to Kermit-MS.  The normal (and maximum) length is 94.  Use
  5545.          this command to shorten packets if the communication line is noisy; this
  5546.          will   decrease  the  probability  that  a  particular  packet  will  be
  5547.          corrupted, and will reduce the retransmission overhead  when  corruption
  5548.          occurs, but it will increase the protocol overhead.
  5549. 0PADCHAR number
  5550. 0        Ask the remote Kermit to use the given control character (expressed as a
  5551.          decimal  number 0-31, or 127) for interpacket padding.  Kermit-MS should
  5552.          never require any padding.
  5553. 0PADDING number
  5554. 0        Ask the remote Kermit to insert the given number of  padding  characters
  5555.          before each packet it sends.  This should never be necessary.
  5556. 0START-OF-PACKET number
  5557. 0        If the remote Kermit will be marking the beginning  of  packets  with  a
  5558.          control  character  other  than  Control-A,  use  this  command  to tell
  5559.          Kermit-MS about it (the number should be the decimal ASCII  value  of  a
  5560.          control  character).   This  will  be  necessary  only  if  the hosts or
  5561.          communication equipment involved cannot  pass  a  Control-A  through  as
  5562.          data,  or  if  some  piece of communication equipment is echoing packets
  5563.          back at you.
  5564. 0TIMEOUT number
  5565. 0        Ask the remote Kermit to time out after the given number of seconds if a
  5566.          packet  expected  from  Kermit-MS  has not arrived.  Use this command to
  5567.          change the normal timeout interval.
  5568. -
  5569. -
  5570. -
  5571. -
  5572.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5573. 1144                                                 Kermit File Transfer Package
  5574. -
  5575.  SET REMOTE
  5576. 0Syntax:  SET REMOTE $ON, OFF
  5577. 0SET REMOTE ON removes the file transfer display (as if you had given the command
  5578.  SET  DISPLAY QUIET).  It should be used when you are running Kermit-MS in remote
  5579.  mode (i.e., when coming in from another PC through the Kermit-MS's "back  port",
  5580.  to  which  the  console  has been reassigned using the DOS CTTY command).  It is
  5581.  necessary to issue this command because (a) Kermit-MS has no way of knowing that
  5582.  its  console  has  been  redirected, and (b) when the console is the same as the
  5583.  port, the file transfer display will interfere with the  file  transfer  itself.
  5584.  SET REMOTE OFF returns the file transfer display to its preferred style (REGULAR
  5585.  or SERIAL).
  5586. -SET RETRY
  5587. 0Syntax:  SET RETRY number
  5588. 0Sets the number of times a packet is retransmitted before the protocol gives up.
  5589.  The  number of retries can be between 1 and 63, and is 5 by default.  This is an
  5590.  especially useful parameter when the communications line is noisy or the  remote
  5591.  host is very busy.
  5592. -
  5593. -
  5594. -
  5595. -
  5596. -
  5597. -
  5598. -
  5599. -
  5600. -
  5601. -
  5602. -MS-DOS Kermit for the IBM-PC-- Section 7
  5603. 1Kermit File Transfer Package                                                 145
  5604. -
  5605.  SET SEND
  5606. 0Syntax:  SET SEND parameter value
  5607. 0PACKET-LENGTH number
  5608. 0        Use the  specified  maximum  length  for  outbound  packets.   Normally,
  5609.          Kermit-MS uses whatever length the other Kermit requests.
  5610. 0PADCHAR number
  5611. 0        Use the specified control character for interpacket padding.  Some hosts
  5612.          may  require  some  padding  characters  (normally  NUL or DEL) before a
  5613.          packet, and certain front ends or other communication equipment may need
  5614.          certain control characters to put them in the right modes.
  5615. 0PADDING number
  5616. 0        How many copies of  the  pad  character  to  send  before  each  packet,
  5617.          normally zero.
  5618. 0PAUSE number
  5619. 0        How many milliseconds to pause between sending the next  packet,  0-127,
  5620.          normally  zero.  This helps half-duplex systems prepare for reception of
  5621.          our packet.  Padding characters are  sent  only  after  the  time  limit
  5622.          expires.
  5623. 0QUOTE number
  5624. 0        Use the indicated printable character for  prefixing  (quoting)  control
  5625.          characters  and other prefix characters.  The only reason to change this
  5626.          would be for sending a very  long  file  that  contains  very  many  "#"
  5627.          characters (the normal control prefix) as data.
  5628. 0START-OF-PACKET number
  5629. 0        Mark the beginning of outbound packets with some control character other
  5630.          than  Control-A.   This  will  be  necessary  if  the remote host or the
  5631.          communication channel involved cannot accept a Control-A as data, or  if
  5632.          it  echoes  back your packets.  The remote host must have been given the
  5633.          corresponding SET RECEIVE START-OF-PACKET command.
  5634. 0TIMEOUT number
  5635. 0        Change Kermit-MS's normal timeout interval; this  command  is  effective
  5636.          only  if  TIMER  is  set to be ON; it is normally OFF so that the remote
  5637.          Kermit can control timeouts.  When the timer is ON, the default  timeout
  5638.          interval is 13 seconds.
  5639. -
  5640. -
  5641.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5642. 1146                                                 Kermit File Transfer Package
  5643. -
  5644.  SET SPEED
  5645. 0Syntax:  SET SPEED rate
  5646. 0Set the speed of the currently selected terminal communications  port  (COM1  by
  5647.  default) to 300, 1200, 1800, 2400, 4800, 9600, 19200 bps, or other common speed.
  5648.  The  NIH  Computer  Center  MSKERMIT.INI  file  sets  this  parameter  to  2400.
  5649.  Kermit-MS  leaves the current communication port settings alone unless you issue
  5650.  explicit SET commands to change them.  SET BAUD is an acceptable synonym for SET
  5651.  SPEED.   Note  that on certain systems, when you first run Kermit after powering
  5652.  the system up, you may get a message "Unrecognized baud rate".  This means  that
  5653.  Kermit  tried  to read the baud rate from the port and none was set.  Simply use
  5654.  SET SPEED or the DOS MODE command to set the desired speed.   The  NIH  Computer
  5655.  Center MSKERMIT.INI file sets this parameter to 2400.
  5656. -SET TAKE-ECHO
  5657. 0Syntax:  SET TAKE-ECHO ON or OFF
  5658. 0Specifies whether screen display should occur during implicit or  explicit  TAKE
  5659.  operations  on  MSKERMIT.INI  or  other  Kermit-MS  command  files,  and  during
  5660.  evaluation of macro definitions.  Handy for finding errors.   The  NIH  Computer
  5661.  Center MSKERMIT.INI file sets this parameter to ON.
  5662. -
  5663. -
  5664. -
  5665. -
  5666. -
  5667. -
  5668. -
  5669. -
  5670. -
  5671. -
  5672. 0MS-DOS Kermit for the IBM-PC-- Section 7
  5673. 1Kermit File Transfer Package                                                 147
  5674. -
  5675.  SET TERMINAL
  5676. 0Syntax:  SET TERMINAL parameter [value]
  5677. 0This  command  controls  most  aspects  of  terminal  emulation.   Most  of  the
  5678.  parameters  are  only  settable  (or  meaningful)  on  the  IBM  PC  family  and
  5679.  compatibles.
  5680. 0The first group of parameters tells which kind of  terminal  to  emulate.   When
  5681.  Kermit-MS  uses  its  built-in  software  for emulation, incoming characters are
  5682.  examined for  screen  control  commands  (escape  sequences)  specific  to  that
  5683.  terminal, and if encountered, the commands are executed on the PC screen.
  5684. 0NONE    Act as a dumb terminal.  All incoming characters will  be  sent  to  the
  5685.          screen  "bare",  as-is, through DOS.  If you have loaded a device driver
  5686.          into DOS for the CON device, such as ANSI.SYS, then that driver will  be
  5687.          able to interpret the codes itself.  Many non-IBM systems have their own
  5688.          screen control code interpreter built into DOS or firmware, or available
  5689.          as a loadable device driver.
  5690. 0VT52    The DEC VT-52 terminal.
  5691. 0HEATH   The  Heath/Zenith-19  terminal  (H19),  which  supports  all  the   VT52
  5692.          commands, plus line and character insert/delete editing functions, and a
  5693.          25th line.
  5694. 0VT102   The DEC VT102 (ANSI) terminal, which is the same as  a  VT100  but  also
  5695.          supports  line/character  insert/delete editing functions.  VT102 is the
  5696.          default value set by the NIH MSKERMIT.INI file.
  5697. 0TEKTRONIX
  5698. 0        A Tektronix 4010 graphics terminal.  Available on TI and Victor PCs; not
  5699.          available on IBM PCs.
  5700. 0The specific escape sequences supported by Kermit for  each  of  these  terminal
  5701.  types are listed in section 7.5.
  5702. -
  5703. -
  5704. -
  5705. -
  5706. -
  5707. -
  5708.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5709. 1148                                                 Kermit File Transfer Package
  5710. -
  5711.  The remaining SET TERMINAL commands  specify  setup  options  for  the  selected
  5712.  terminal:
  5713. 0 CHARACTER-SET $UK, US
  5714. 0         UK displays # as a pound sterling sign, US displays # as #.
  5715. 0 COLOR number [, number [, number]]
  5716. 0        Several numbers, applied in left to right sequence, separated by  commas
  5717.          or spaces:
  5718. 0           0   Reset the colors to normal intensity white characters on a black
  5719.                 background  and use the "no-snow" mode on the IBM Color Graphics
  5720.                 Adapter (CGA).
  5721.             1   High intensity foreground
  5722.             10  Request fast screen updating for use on the IBM EGA or PGA,  and
  5723.                 some non-IBM CGAs.
  5724.             3x  Foreground color
  5725.             4x  Background color
  5726. 0         where x is a single digit from 0 to 7, which is the sum of the desired
  5727.           colors:
  5728. 0           1   Red
  5729.             2   Green
  5730.             4   Blue
  5731. 0        Example:  0, 1, 34, 40 on an IBM CGA would produce  blue  characters  on
  5732.          black  field  with  no  snow.   The snow removal business has to do with
  5733.          whether the  program  should  synchronize  with  vertical  retrace  when
  5734.          updating  screen  memory.  This is necessary with certain color adaptors
  5735.          (like the CGA) and unnecessary for others (like the EGA).
  5736. 0 CURSOR-STYLE $BLOCK, UNDERLINE
  5737. 0        Sets the cursor rendition to your preference.  Note that on  some  early
  5738.          IBM  PCs and compatibles, the cursor may not be restored correctly after
  5739.          escape back from CONNECT because of a bug in the early IBM BIOS.
  5740. 0 KEYCLICK $ON, OFF
  5741. 0        Turns electronic keyclick ON or OFF.  If your keyboard has a  mechanical
  5742.          clicker  (as  IBM  boards  do),  you  may  not notice the effect of this
  5743.          command.
  5744. 0 MARGIN-BELL $ON, OFF
  5745. 0        Controls whether the bell should  be  sounded  when  the  cursor  passes
  5746.          column 72 near the right screen margin.
  5747. -
  5748. -MS-DOS Kermit for the IBM-PC-- Section 7
  5749. 1Kermit File Transfer Package                                                 149
  5750. -
  5751.   NEWLINE-MODE $ON, OFF
  5752. 0        ON sends a carriage-return-linefeed combination  (CRLF)  when  you  type
  5753.          carriage return (CR) during terminal emulation; OFF (default) just sends
  5754.          a CR when you type CR.  The NIH Computer Center MSKERMIT.INI  file  sets
  5755.          this parameter to OFF.
  5756. 0 SCREEN-BACKROUND $NORMAL, REVERSE
  5757. 0        NORMAL means dark background, light  characters.   REVERSE  means  light
  5758.          background, dark characters.
  5759. 0 TAB $AT n, CLEAR AT n, CLEAR ALL
  5760. 0        Sets tab stops or clears one  or  all  tab  stops.   n  is  the  numeric
  5761.          position  of the tab to be set or cleared.  By default, tabs are every 8
  5762.          spaces, at positions 9, 17, 25, etc.  Only meaningful when  emulating  a
  5763.          terminal  that  has  settable  tabs  (the  VT52 doesn't).  More than one
  5764.          tabstop may be specified  by  separating  column  numbers  with  commas,
  5765.          spaces, or tabs.  The NIH Computer Center MSKERMIT.INI file sets tabs at
  5766.          9, 17, 25, 33, 41, 49, 57, 65, and 73.
  5767. 0 WRAP $ON, OFF
  5768. 0        ON automatically breaks screen lines (by inserting  a  CRLF)  when  they
  5769.          reach  the  the  right margin; OFF disables wrapping -- if a line is too
  5770.          long, the excess characters go off the  screen.   The  NIH  MSKERMIT.INI
  5771.          file  sets this parameter to OFF for the DECsystem-10, and to ON for TSO
  5772.          and WYLBUR.
  5773. -SET TIMER
  5774. 0Syntax:  SET TIMER $ON, OFF
  5775. 0This command enables or disables the timer that is used during file transfer  to
  5776.  break deadlocks that occur when expected packets do not arrive.  By default, the
  5777.  timer is ON.  The NIH Computer Center MSKERMIT.INI file sets this  parameter  to
  5778.  OFF.
  5779. -
  5780. -
  5781. -
  5782. -
  5783. -
  5784. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5785. 1150                                                 Kermit File Transfer Package
  5786. -
  5787.  SET WARNING
  5788. 0Syntax:  SET WARNING $ON, OFF
  5789. 0Specify what to do when an incoming file has the same name as an  existing  file
  5790.  in  the  default  directory  of the default device.  If ON, Kermit will warn you
  5791.  when an incoming file has the same name as an existing file,  and  automatically
  5792.  rename  the  incoming  file  (as  indicated in the warning message) so as not to
  5793.  destroy (overwrite)  any  existing  one.   If  OFF,  the  pre-existing  file  is
  5794.  destroyed,  even if the incoming file does not arrive completely.  WARNING is ON
  5795.  by default.
  5796. 0The new name is formed by adding numbers to the part of the name before the dot.
  5797.  For instance, ABC.TXT becomes ABC00001.TXT, then ABC00002.TXT, etc.
  5798. -7.3.7.  The SHOW Command
  5799. 0Syntax:  SHOW option
  5800. 0Most parameters that may be altered with  SET  commands  are  displayed  by  the
  5801.  STATUS  command.   The SHOW command is used for displaying macro definitions and
  5802.  key redefinitions.
  5803. 0The SHOW MACROS command  displays  the  definitions  of  all  currently  defined
  5804.  macros, as well as the amount of space left for new macro definitions.
  5805. 0The SHOW KEY command allows you to determine the scan code produced by  pressing
  5806.  a  given  key,  so that you can construct a SET KEY SCAN command to redefine the
  5807.  key.  If the key already  has  a  redefinition  in  effect,  that  too  will  be
  5808.  displayed.   This can be done either interactively or in a macro command.  Refer
  5809.  to the terminal emulation section for examples.
  5810. -
  5811. -
  5812. -
  5813. -
  5814. -
  5815. -
  5816. -
  5817. -MS-DOS Kermit for the IBM-PC-- Section 7
  5818. 1Kermit File Transfer Package                                                 151
  5819. -
  5820.  7.3.8.  Command Macros
  5821. 0Kermit-MS provides a facility for combining  commands  into  "macros."   Command
  5822.  macro  definitions  may  be included in your MSKERMIT.INI file, TAKEn explicitly
  5823.  from a specified file, or typed interactively.  Macros are invoked with  the  DO
  5824.  command.
  5825. -                               The DEFINE Command
  5826. 0Syntax:  DEFINE macro-name [command [, command [, ...]]]
  5827. 0Kermit-MS command macros are constructed with the DEFINE command.  Any Kermit-MS
  5828.  commands may be included.  Example:
  5829. 0    define tso set parity even, set speed 2400, connect
  5830. 0A macro can be undefined by typing an empty DEFINE command for it, like
  5831. 0    define tso
  5832. 0A macro definition may be no longer than 128 characters.  Longer definitions can
  5833.  be accomplished by "chaining."  Example:
  5834. 0    define setup set port 1, set speed 19200, set parity even, do setup2
  5835.      define setup2 set port 2, set speed 1200, set parity none, do setup3
  5836.      define setup3 set warning on, set incomplete keep, connect
  5837. 0The SHOW MACROS command displays the value of all currently defined macros,  and
  5838.  tells how much space is left for further definitions.
  5839. -
  5840. -
  5841. -
  5842. -
  5843. -
  5844. -
  5845. -
  5846. -
  5847. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5848. 1152                                                 Kermit File Transfer Package
  5849. -
  5850.                                   The DO Command
  5851. 0A Kermit-MS command macro is invoked using the DO command.   For  instance,  the
  5852.  NIH  supplied MSKERMIT.INI file defines the macros WYLBUR, DEC10, TSO, and 3270.
  5853.  To setup the emulation for WYLBUR, you would type
  5854. 0    do wylbur
  5855. +    _________
  5856. 0The WYLBUR macro contains SET commands for speed, parity, local echo, etc.   You
  5857.  can  use  the  DEFINE  command  to  redefine  the  macro or to nullify the macro
  5858.  definition altogether.  The latter is accomplished by creating an  empty  macro,
  5859.  e.g.
  5860. 0    define ______
  5861. +    _______wylbur
  5862. 0There is no automatic way to undo (negate) the effect of DOing a macro.  If  you
  5863.  need  to  accomplish this effect, you should use another macro for that purpose.
  5864.  For instance, to undo the effect of "do wylbur" so that you  could  connect  to,
  5865.  say, the DECsystem-10, you could:
  5866. 0    do dec10
  5867. +    ________
  5868. 0using another of the predefined macros in the MSKERMIT.INI file supplied by  the
  5869.  NIH Computer Center.
  5870. 0If you wish to view the macro expansion whenever you issue a DO command, you can
  5871.  SET TAKE-ECHO ON.
  5872. -
  5873. -
  5874. -
  5875. -
  5876. -
  5877. -
  5878. -
  5879. -
  5880. -
  5881. 0MS-DOS Kermit for the IBM-PC-- Section 7
  5882. 1Kermit File Transfer Package                                                 153
  5883. -
  5884.  7.4.  Terminal Emulation
  5885. 0When you issue the CONNECT command, your PC acts as a terminal  connected  to  a
  5886.  remote  computer  through  the currently selected port.  The characters you type
  5887.  are sent out the port, and characters that arrive at the port are  displayed  on
  5888.  your  screen,  or  interpreted  according  to whatever type of terminal is being
  5889.  emulated.
  5890. 0If you have not previously issued a SET PORT command, COM1 is used.  If you have
  5891.  SET  LOCAL-ECHO ON for the selected port, then Kermit-MS will display characters
  5892.  on the screen as you type them, otherwise it will rely on the remote  system  to
  5893.  echo  them.  XON/XOFF flow control will be done unless you have SET FLOW-CONTROL
  5894.  OFF.  If you have SET PARITY to anything other than NONE, Kermit-MS will add the
  5895.  appropriate  parity  to  each outbound character.  While CONNECTed, you can also
  5896.  communicate directly  with  an  autodialer  or  "smart  modem"  to  control  the
  5897.  communications  line,  hang  it  up,  and  the  like, for instance, by typing AT
  5898.  commands to a Hayes-compatible modem.
  5899. 0When you CONNECT, the program attempts to raise the DTR and RTS RS-232  signals,
  5900.  and  it  takes  no specific action to lower them unless you explicitly issue the
  5901.  HANGUP command.
  5902. 0The IBM PC version of Kermit-MS emulates the DEC VT102 terminal by default,  and
  5903.  may  also  be  instructed  to  emulate  the DEC VT52, the Heath/Zenith-19, or no
  5904.  terminal at all, via the SET TERMINAL  command.   Emulation  of  each  of  these
  5905.  terminals  is  nearly  complete.   VT102 emulation lacks only smooth scroll, 132
  5906.  column mode, and ANSI printer control.  Double-height,  double-width  characters
  5907.  are  supported, but simulated using ordinary characters.  On color monitors, the
  5908.  foreground and background colors may  be  set  using  SET  TERMINAL  COLOR,  and
  5909.  inverse/normal  video  display  may  also  be  selected,  along  with many other
  5910.  terminal  parameters.   A  complete  list   of   the   commands,   default   key
  5911.  configurations,  and  escape  sequences  accepted  by the IBM PC Kermit terminal
  5912.  emulator is given in section 7.5.
  5913. -
  5914. -
  5915. -
  5916. -
  5917. -
  5918. -
  5919. -
  5920. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  5921. 1154                                                 Kermit File Transfer Package
  5922. -
  5923.  The Escape Character
  5924. 0The escape character is  used  to  regain  the  attention  of  Kermit-MS  during
  5925.  CONNECT,  i.e.,  terminal  emulation.   When  you  type  the  escape  character,
  5926.  Kermit-MS waits for you to follow it  with  a  single  character  command.   For
  5927.  instance,  the single character command "?"  produces a list of available single
  5928.  character commands.  This command is executed immediately; it may not be edited,
  5929.  and the program does not wait for a carriage return to confirm it.  Here are the
  5930.  CONNECT escape-level commands available in Kermit-MS:
  5931. 0  ?   Help -- prints the available single-character commands.
  5932.    0   (the digit zero) Transmit a NUL (ASCII 0).
  5933.    B   Transmit a BREAK signal.
  5934.    C   Close the connection and return to Kermit-MS prompt level.
  5935.    F   File the current screen in the screen dump file.
  5936.    M   Toggle the mode line, i.e., turn it off if it is on & vice versa.
  5937.    P   Push to DOS; get back to CONNECT by typing EXIT.
  5938.    Q   Temporarily quit logging the remote session.
  5939.    R   Resume logging the remote session.
  5940.    S   Show the status of the connection.
  5941.    X]  (or whatever you have set the escape character to be)
  5942.        Typing  the  escape character twice sends one copy of it to the connected
  5943.        host.
  5944. 0Typing any other character (except the space bar, which is the  "null  command")
  5945.  after  the  escape  character will cause Kermit-MS to beep, but will do no harm.
  5946.  The escape character can be changed to something other than Control-Rightbracket
  5947.  by using the SET ESCAPE command.
  5948. 0Note:  Ctrl-Break can be used to transmit a BREAK signal.   You  may  find  this
  5949.  more  convenient  to use than typing the escape character followed by the letter
  5950.  B.
  5951. -
  5952. -
  5953. -
  5954. -
  5955. -
  5956. -
  5957. -
  5958. -MS-DOS Kermit for the IBM-PC-- Section 7
  5959. 1Kermit File Transfer Package                                                 155
  5960. -
  5961.  The Mode Line
  5962. 0When you first issue the CONNECT command, an  inverse  video  "mode  line"  will
  5963.  display  the  most important facts about the connection you've just established,
  5964.  so that you can quickly diagnose any problems.  Here's what the IBM PC mode line
  5965.  looks like:
  5966. 0+---------------------------------------------------------------------------+
  5967.  | Esc-chr:X] help:X]? port:1 speed:2400 parity:even echo:rem VT102 .... PRN |
  5968.  +---------------------------------------------------------------------------+
  5969. 0This shows that the escape character is Ctrl-Rightbracket, that you  would  type
  5970.  Ctrl-rightbracket  followed  by  question mark (X]?) to get help during CONNECT,
  5971.  that you are connected on port 1 at 2400 baud with even parity and remote  echo,
  5972.  and that a VT102 terminal is being emulated.  The four dots represent the VT102s
  5973.  LEDs (they turn into the digits 1,2,3,4 when "lit") and PRN will show up if  the
  5974.  printer is activated (e.g., by Ctrl-PrintScreen).
  5975. 0The mode line occupies the 25th line of the  screen,  and  is  not  affected  by
  5976.  scrolling.   When  emulating  a VT102 or Heath-19, Kermit will allow the host to
  5977.  address the 25th line directly  using  cursor  positioning  commands.   If  this
  5978.  happens,  Kermit  will  remove  its mode line and relinquish control of the 25th
  5979.  line to the host (as if you had typed SET MODE OFF).  When no terminal is  being
  5980.  emulated,  the  25th line (if any) is available for scrolling.  If the mode line
  5981.  is disabled by an application or by the command SET MODE OFF then the  only  way
  5982.  to revive Kermit's mode line display is to give the command SET MODE ON.
  5983. -7.4.1.  Screen Scroll
  5984. 0On certain systems, Kermit-MS provides several pages of screen memory, which may
  5985.  be scrolled up and down using keys as shown in Table 1-1.
  5986. 0-------------------------------------------------------------------------------
  5987. -      Screen Forward  Line Forward        Screen Backward   Line Backward
  5988. 0      PgDn            Ctrl-PgDn           PgUp              Ctrl-PgUp
  5989. 0                   Table 7-1:   Kermit-MS Screen Scroll Keys
  5990. 0-------------------------------------------------------------------------------
  5991. 0There is no way to assign these functions to other keys.
  5992. 0The IBM PC also allows use of the Home key to get to  the  top  of  its  display
  5993.  memory  and  End key to get to the bottom, and the keypad plus (+) key to toggle
  5994.  the mode line on and off.
  5995. -
  5996. -
  5997.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  5998. 1156                                                 Kermit File Transfer Package
  5999. -
  6000.  7.4.2.  Screen Dump
  6001. 0The screen dump feature writes the contents of the screen to a file  (KERMIT.SCN
  6002.  unless  another  file  was  selected  by  the SET DUMP command) when the CONNECT
  6003.  escape-level command F is typed.  The screen dump file is appended  to  on  each
  6004.  successive screen dump, with each screen separated by a formfeed (Ctrl-L).  This
  6005.  feature may be used in conjunction with  screen  rollback  --  a  handy  way  to
  6006.  recapture  screenfuls  of  laboriously  typed-in  text  after  a remote host has
  6007.  crashed without saving your work.
  6008. 0A screen dump differs from a session log  in  two  ways.   First,  each  desired
  6009.  screen  must  be  manually  filed,  and  second,  the  screen dump file has been
  6010.  stripped of any escape sequences, whereas the session log records them.
  6011. -7.4.3.  Printer Control
  6012. 0During terminal emulation, a locally attached printer may be controlled  in  the
  6013.  normal  manner.   Pushing  the "Print Screen" key shifted will cause the current
  6014.  contents of the screen to  be  printed  or  spooled;  holding  down  CTRL  while
  6015.  depressing  Print  Screen will start or stop the spooling of incoming characters
  6016.  to the printer.  On the IBM PC, the mode line will show PRN when the printer  is
  6017.  activated  in  this  manner.   XP  or  XN  are  sent to the host during terminal
  6018.  emulation, and do not toggle printing, as they do when you're  talking  directly
  6019.  to DOS.
  6020. 0CTRL-Print-Screen can  be  simulated  with  the  Kermit-MS  LOG  PRN  and  CLOSE
  6021.  commands.
  6022. -7.4.4.  Key Redefinitions
  6023. 0Key redefinitions are useful for defining "keystroke macros" of login sequences,
  6024.  frequently  issued  commands,  and so forth, and for setting up the terminal for
  6025.  use with host resident software  designed  to  work  with  terminals  that  send
  6026.  predefined  sequences  from  their  function  keys.   For instance, here's a key
  6027.  redefinition file for arranging the DEC Rainbow keyboard into the  normal  ASCII
  6028.  keyboard layout:
  6029. 0    ; Make shift-comma send a left angle bracket
  6030.      set key scan 556
  6031.      <
  6032.      ; Shift-period sends a right angle bracket
  6033.      set key scan 558
  6034.      >
  6035.      ; Accent grave is where ESC is supposed to be
  6036.      set key scan 96
  6037.      \33
  6038.      ; Put accent grave on the ESC function key
  6039.      set key f11
  6040.      `
  6041. -
  6042. 0MS-DOS Kermit for the IBM-PC-- Section 7
  6043. 1Kermit File Transfer Package                                                 157
  6044. -
  6045.  More Examples:
  6046. 0    ; set AT&T 2224B autodial sequence for access to TSO in F9 key.
  6047.      SET KEY F9
  6048.      AT4922223\15
  6049.      ; set F10 key to TSO LOGON command.
  6050.      SET KEY F10
  6051.      LOGON AAAAIII/NONE/BBB\15
  6052. 0Since SET KEY is a two-line command, a special trick is necessary  in  order  to
  6053.  include  it in a single-line macro definition:  just use a comma where you would
  6054.  have typed carriage return after the first line, for instance:
  6055. 0    define bar set key scan 261,foo
  6056. 0The CLEAR command may be used to eliminate all key redefinitions.  The  SET  KEY
  6057.  facility  may be used provide the PC with a "meta" key for use with editors like
  6058.  EMACS or TVEDIT that can use "meta characters" as commands.  Note:  No  Computer
  6059.  Center  supported  software  offered  on  the  IBM  System 370 uses meta keys as
  6060.  described here.  A meta key is a shift key whose effect is to turn  on  the  8th
  6061.  (parity)  bit  of  the  character.   For  instance, on the IBM PC the scan codes
  6062.  produced by holding down ALT together with other keys can  be  determined  using
  6063.  SHOW  KEY,  and  then  8-bit ASCII equivalents with the 8th bit turned on can be
  6064.  defined using SET KEY; if the scan code produced  by  typing  ALT-a,  i.e.,  the
  6065.  letter "a" (ASCII 141, octal) with the ALT key held down, is 2078 (decimal), you
  6066.  would set the META equivalent to 141+200=341 (octal), or "\341" in octal SET KEY
  6067.  notation:
  6068. 0    Kermit-MS>show key
  6069.      Press a key: ALT-a
  6070.        Scan Code: 2078
  6071.        Definition:
  6072.      Kermit-MS>set key scan 2078
  6073.      Definition String: \341
  6074. 0Whenever you type ALT-a with this definition in effect, Kermit-MS will  transmit
  6075.  octal 341, rather than 141.
  6076. -
  6077. -
  6078. -
  6079. -
  6080. -
  6081. -
  6082.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  6083. 1158                                                 Kermit File Transfer Package
  6084. -
  6085.  7.5.  IBM-PC MS Kermit Terminal Emulator Summary
  6086. 0                     By Joe Doupnik, Utah State University
  6087. 0This section summarizes the IBM  PC  Kermit-MS  keyboard  and  screen  operation
  6088.  during  emulation  of  H19,  VT52,  and VT102 terminals.  Note that spaces shown
  6089.  between characters of escape sequences are there for ease of reading; the actual
  6090.  sequences contain no spaces.
  6091. -7.5.1.  Keyboard Layout and Characters Sent
  6092. 0Here is how the keypad functions are assigned to the IBM keyboard function keys:
  6093. 0---------------------------------------------------------------------------
  6094.         Heath-19 and VT52 Keypads                     VT102 keypad
  6095.                IBM Keys                                 IBM keys
  6096.     +------+------+-------+----------+       +------+------+------+------+
  6097.     | Blue |  Red |  Grey | up arrow |       |  PF1 |  PF2 |  PF3 |  PF4 |
  6098.     |  F1  |  F2  |  F3   | up arrow |       |  F1  |  F2  |  F3  |  F4  |
  6099.     +------+------+-------+----------+       +------+------+------+------+
  6100.     |  7   |  8   |  9    |down arrow|       |  7   |  8   |  9   |  -   |
  6101.     |  F5  |  F6  |  F7   |down arrow|       |  F5  |  F6  |  F7  |  F8  |
  6102.     +------+------+-------+----------+       +------+------+------+------+
  6103.     |  4   |  5   |  6    | rgt arrow|       |  4   |  5   |  6   |  ,   |
  6104.     |  F9  |  F10 |  SF1  | rgt arrow|       |  F9  |  F10 |  SF1 |  SF2 |
  6105.     +------+------+-------+----------+       +------+------+------+------+
  6106.     |  1   |  2   |  3    |left arrow|       |  1   |  2   |  3   |  E   |
  6107.     |  SF3 |  SF4 |  SF5  |left arrow|       |  SF3 |  SF4 |  SF5 |  n  S|
  6108.     +------+------+-------+----------+       +------+------+------+  t  F|
  6109.     |  0------0   |  .    |  Enter   |       |  0------0   |  .   |  e  6|
  6110.     |  SF7        |  SF8  |  SF6     |       |   SF7       |  SF8 |  r   |
  6111.     +-------------+-------+----------+       +-------------+------+------+
  6112. -                SF1 means push Shift and F1 keys simultaneously
  6113. 0---------------------------------------------------------------------------
  6114. -Cursor Keys
  6115. -                              H-19 & VT52           VT102
  6116.  VT52/H19 key   IBM key        All Modes      Numeric   Application
  6117.  up arrow       up arrow       ESC A          ESC [ A   ESC O A
  6118.  down arrow     down arrow     ESC B          ESC [ B   ESC O B
  6119.  right arrow    right arrow    ESC C          ESC [ C   ESC O C
  6120.  left arrow     left arrow     ESC D          ESC [ D   ESC O D
  6121. -
  6122. -
  6123.  MS-DOS Kermit for the IBM-PC-- Section 7
  6124. 1Kermit File Transfer Package                                                 159
  6125. -
  6126.  Auxiliary Keypad
  6127. 0                              Heath-19 & VT52             VT102
  6128.  VT52/H19 key   IBM key        Numeric Applic.   Numeric   Applic.
  6129. 0PF1/HF7/Blue   F1             ESC P   ESC P     ESC O P   ESC O P
  6130.  PF2/HF8/Red    F2             ESC Q   ESC Q     ESC O Q   ESC O Q
  6131.  PF3/HF9/Grey   F3             ESC R   ESC R     ESC O R   ESC O R
  6132.  PF4/HF1        F4             ESC S   ESC S     ESC O S   ESC O S
  6133.  0              SF7            ESC ? p           ESC O p
  6134.  1              SF3            ESC ? q           ESC O q
  6135.  2              SF4            ESC ? r           ESC O r
  6136.  3              SF5            ESC ? s           ESC O s
  6137.  4              F9             ESC ? t           ESC O t
  6138.  5              F10            ESC ? u           ESC O u
  6139.  6              SF1            ESC ? v           ESC O v
  6140.  7              F5             ESC ? w           ESC O w
  6141.  8              F6             ESC ? x           ESC O x
  6142.  9              F7             ESC ? y           ESC O y
  6143.  - (minus)      F8             ESC ? m           ESC O m
  6144.  , (comma)      SF2            ESC ? l           ESC O l (ell)
  6145.  . (period)     SF8            ESC ? n           ESC O n
  6146.  Enter          SF6            ESC ? M           ESC O M
  6147. -        (SFn means hold down Shift key while pressing Function key n.)
  6148. -Other IBM keys operational in Connect mode:
  6149. 0Del (White key) Send ASCII Del code (rubout).
  6150.  Backspace       Send ASCII Del code (rubout).
  6151.  Shift BackSpace Send ASCII BS code (backspace).
  6152.  Keypad (Grey)+  Toggle mode line on/off (only if Mode Line is enabled).
  6153.  Alt -           Toggle among Heath-19, VT52, and VT100 emulation.
  6154.  Alt =           Clear screen and reset terminal emulator  to  starting  (setup)
  6155.                  state.
  6156.  Home            Roll screen up (text down) to beginning of storage.
  6157.  End             Roll screen down (text up) to end of storage.
  6158.  PgUp            Roll screen up (back, earlier) one screen full.
  6159.  PgDn            Roll screen down (forward, later) one screen full.
  6160.  Ctrl-PgUp       Roll screen up one line.
  6161.  Ctrl-PdDn       Roll screen down one line.
  6162. 0Control-PrtSc   Toggle  on/off copying of received text to printer, "PRN" shows
  6163.                  on far right of mode line when activated.
  6164. 0Control-End     Dump image of screen  to  a  disk  file  or  device.    Default
  6165.                  filename  is  KERMIT.SCN  in the current directory. Use command
  6166.                  SET DUMP to change the filename.  Screen images are appended to
  6167.                  the file, separated by formfeeds.
  6168. -
  6169. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  6170. 1160                                                 Kermit File Transfer Package
  6171. -
  6172.  Shift-PrtSc     Standard Print-screen, dump screen image to printer.
  6173. 0"Alt -" means hold down Alt and type minus.  This  switches  among  the  various
  6174.  kinds  of  emulation,  but  does  not  change  most  operating parameters of the
  6175.  emulator.
  6176. -CONNECT Escape Commands
  6177. 0Type Kermit escape character (normally "X]"), then one of the keys below:
  6178. 0    ?   display this short list.
  6179.      0   send a null character.
  6180.      B   send a BREAK signal.
  6181.      C   close connect session & return to Kermit prompt.
  6182.      F   dump screen to filespec, default is Kermit.scn.
  6183.      M   toggle mode line on/off.
  6184.      P   push to DOS.
  6185.      Q   quit (suspend) logging.
  6186.      R   resume logging.
  6187.      S   show status.
  6188.      Kermit escape character itself: send it to the host.
  6189. -
  6190. -
  6191. -
  6192. -
  6193. -
  6194. -
  6195. -
  6196. -
  6197. -
  6198. -
  6199. -
  6200.  MS-DOS Kermit for the IBM-PC-- Section 7
  6201. 1Kermit File Transfer Package                                                 161
  6202. -
  6203.  7.5.2.  Responses to Characters Received by the Terminal Emulator
  6204. 0Unknown escape sequences of the form "ESC char" are  absorbed  by  the  emulator
  6205.  without further effect.
  6206. 0DEC VT102 functions while in ANSI (VT102) mode, unsupported features  marked  by
  6207.  asterisk (*):
  6208. 0Escape Seq     Mnemonic       Description of Action
  6209.  ESC D          IND            Index, moves cursor down one line, can scroll
  6210.  ESC E          NEL            Move cursor to start of line below, can scroll
  6211.  ESC H          HTS            Set one horizontal tab at current position
  6212.  ESC M          RI             Reverse Index, cursor up one line, can scroll
  6213.  ESC Z          DECID          Identify terminal (response is ESC [ ? 6 c)
  6214.  ESC c          RIS            Reset terminal to initial state
  6215.  ESC =          DECKPAM        Enter keypad application mode
  6216.  ESC >          DECKNPNM       Enter keypad numeric mode
  6217.  ESC 7          DECSC          Save cursor position and attributes
  6218.  ESC 8          DECRC          Restore cursor from previously saved position
  6219.  ESC # 3        DECDHL         Double height and width line, top half
  6220.  ESC # 4        DECDHL         Double height and width line, bottom half
  6221.  ESC # 5        DECSWL         Single height and width line
  6222.  ESC # 6        DECDWL         Double width single height line
  6223.  ESC # 8        DECALN         Screen alignment diagnostic - not supported
  6224.  ESC [ Pn A     CUU            Cursor up Pn lines, does not scroll
  6225.  ESC [ Pn B     CUD            Cursor down Pn lines, does not scroll
  6226.  ESC [ Pn C     CUF            Cursor forward, stays on same line
  6227.  ESC [ Pn D     CUB            Cursor backward, stays on same line
  6228.  ESC [ Pn; Pn H CUP            Set cursor to row, column (same as HVP)
  6229.  ESC [ Ps J     ED             Erase in display:
  6230.                                 0 = cursor to end of screen, inclusive
  6231.                                 1 = start of screen to cursor, inclusive
  6232.                                 2 = entire screen, reset lines to single
  6233.                                     width, cursor does not move.
  6234.  ESC [ Ps K     EL             Erase in line:
  6235.                                 0 = cursor to end of line, inclusive
  6236.                                 1 = start of line to cursor, inclusive
  6237.                                 2 = entire line
  6238.  ESC [ Pn L     (VT102)        Insert Pn lines preceding current line.
  6239.  ESC [ Pn M     (VT102)        Delete Pn lines from current downward, incl.
  6240.  ESC [ Pn P     (VT102)        Delete Pn chars from cursor to left, incl.
  6241.  ESC [ Pn; Pn R CPR            Cursor report (row, column), sent by terminal
  6242.                                Example: home position yields ESC [ 1; 1 R
  6243.  ESC [ Pn c     DA             Device attributes (reports ESC [ ? 6 c)
  6244.  ESC [ Pn; Pn f HVP            Set cursor to row, column (same as CUP)
  6245.  ESC [ Ps g     TBC            Tabs clear, 0 = at this position, 3 = all
  6246.  ESC [ 20 h     LNM            Set newline mode (lf = cr/lf)
  6247.  ESC [ 20 l     LNM            Reset newline mode (lf = lf)
  6248.  ESC [ ? Ps;...;Ps h  SM       Set mode, see table below
  6249.  ESC [ ? Ps;...;Ps l  RM       Reset mode, see table below
  6250.          Ps     mnemonic       mode           set            reset
  6251.          0                     error (ignored)
  6252. -
  6253.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  6254. 1162                                                 Kermit File Transfer Package
  6255. -
  6256.          1      DECCKM         cursor keys    application    cursor/numeric
  6257.          2      DECANM         ANSI/VT52      ANSI/VT102     VT52
  6258.          3      DECCOLM        Columns        *132 col       80 col
  6259.          4      DECSCLM        *Scrolling     smooth         jump
  6260.          4      (VT102)        Insert/Replace insert         replace
  6261.          5      DECSCNM        Screen         reverse video  normal
  6262.          6      DECOM          Origin         relative       absolute
  6263.          7      DECAWM         Autowrap       on             off
  6264.          8      DECARM         *Autorepeat    on             off
  6265.          9      DECINLM        *Interlace     on             off
  6266.          18     (VT102)        *Printer termination character
  6267.          19     (VT102)        *Printer extent
  6268.  ESC [ Pn i     (VT102)        *Printer controls
  6269.  ESC [ ? Pn i   (VT102)        *Printer controls
  6270.  ESC [ Ps;...;Ps m  SGR        Select graphic rendition
  6271.                                 0 = all attributes off (#'s 1, 4, 5, 7)
  6272.                                 1 = bold, intensify foreground
  6273.                                 4 = underscore (reverse video on IBM CGA)
  6274.                                 5 = blink
  6275.                                 7 = reverse video
  6276.                 non-DEC extensions: 30-37 = foreground color = 30 + colors
  6277.                                     40-47 = background color = 40 + colors
  6278.                                     colors: 1 = red, 2 = green, 4 = blue
  6279.  ESC [ Ps n     DSR            Device Status Report.
  6280.                                Response from VT100: 0 = ready, 3=malfunction.
  6281.                                Command to VT100: 5 = report status with DSR,
  6282.                                6 = report cursor position using CPR sequence.
  6283.  ESC [ Ps;...;Ps q  DECLL      Load LEDs, Ps=0 means clear LED#1-4
  6284.                                Ps = 1,2,3,4 sets LED # 1,2,3,4
  6285.  ESC [ Pn; Pn r DECSTBM        Set top and bottom scrolling margins
  6286.  ESC [ sol x    DECREQTPARM    Request terminal parameters, see table below
  6287.  ESC [ sol; par; nbits; xspeed; rspeed; clkmul; flags x
  6288.                 DECREPTPARM    Reports terminal parameters
  6289.                                *sol = 0  request; term can send unsolicited
  6290.                                  reports - not supported
  6291.                                sol = 1, request; term reports only on request
  6292.                                sol = 2, this is a report (DECREPTPARM)
  6293.                                sol = 3, terminal reporting only on request
  6294.                                par = 1 none, 2 space, 3 mark, 4 odd, 5 even
  6295.                                nbits = 1 (8 bits/char), 2 (7 bits/char)
  6296.                                xspeed,rspeed = transmit & receive speed index
  6297.   0,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120 correspond to speeds of
  6298.   50,75,110,134.5,150,200,300,600,1200,1800,2000,2400,3600,4800,9600,19200 baud
  6299.                                clkmul = 1 (clock rate multiplier is 16)
  6300.                                flags = 0-15 (Setup Block #5), always 0 here
  6301.  ESC [ 2; Ps y  DECST          *Confidence tests - not supported
  6302.                 SCS            Select character sets.
  6303.  ESC ( A        SCS            G0 points to UK symbols
  6304.  ESC ) A        SCS            G1 points to UK symbols
  6305.  ESC ( B        SCS            G0 points to ASCII symbols
  6306.  ESC ) B        SCS            G1 points to ASCII symbols
  6307.  ESC ( 0        SCS            G0 points to special (line drawing) graphics
  6308. -
  6309.  MS-DOS Kermit for the IBM-PC-- Section 7
  6310. 1Kermit File Transfer Package                                                 163
  6311. -
  6312.  ESC ) 0        SCS            G1 points to special (line drawing) graphics
  6313.  ESC ( 1        SCS            *G0 points to alt char ROM - not supported
  6314.  ESC ) 1        SCS            *G1 points to alt char ROM - not supported
  6315.  ESC ( 2        SCS            *G0 points to alt graphics ROM - not supported
  6316.  ESC ) 2        SCS            *G1 points to alt graphics ROM - not supported
  6317. 0XG             BELL           Sound VT102 style beep
  6318.  XH             BS             Backspace, move cursor left one character
  6319.  XI             HT             Horizontal tab, move cursor to next tabstop
  6320.  XJ             LF             Linefeed, move cursor down one line
  6321.  XL             FF             Formfeed, treated as a line feed
  6322.  XM             CR             Carriage return, move cursor to col 1
  6323.  XN             SO             Invoke usage of G1 character set
  6324.  XO             SI             Invoke usage of G0 character set
  6325. 0Other extensions:
  6326.  ESC [ ? 6 h  ESC [ 25; Pc f   VT52/VT100 move cursor to 25th line.
  6327.  ESC [ ? 6 h  ESC [ 25; Pc H   VT52/VT100 move cursor to 25th line.
  6328.                                (These will disable Kermit's own status line.)
  6329.  ESC * char                    VT200 series graphics command, ignored.
  6330. -
  6331. -
  6332. -
  6333. -
  6334. -
  6335. -
  6336. -
  6337. -
  6338. -
  6339. -
  6340. -
  6341. -                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  6342. 1164                                                 Kermit File Transfer Package
  6343. -
  6344.  7.5.3.  DEC VT102 Functions while in VT52 Mode
  6345. 0Escape seq                    Description of action
  6346.  ESC A                         Cursor up
  6347.  ESC B                         Cursor down
  6348.  ESC C                         Cursor right
  6349.  ESC D                         Cursor left
  6350.  ESC F                         Enter graphics mode
  6351.  ESC G                         Exit graphics mode
  6352.  ESC H                         Cursor home
  6353.  ESC I                         Reverse line feed
  6354.  ESC J                         Erase to end of screen
  6355.  ESC K                         Erase to end of line
  6356.  ESC Y row column              Direct cursor address, offset from space
  6357.  ESC Z                         Identify (response is ESC / Z)
  6358.  ESC =                         Enter alternate keypad mode
  6359.  ESC >                         Exit alternate keypad mode
  6360.  ESC <                         Enter ANSI mode (changes to VT102)
  6361. -
  6362. -
  6363. -
  6364. -
  6365. -
  6366. -
  6367. -
  6368. -
  6369. -
  6370. -
  6371. -
  6372. -
  6373. 0MS-DOS Kermit for the IBM-PC-- Section 7
  6374. 1Kermit File Transfer Package                                                 165
  6375. -
  6376.  7.5.4.  Heath-19 Functions
  6377. -Heath-19 Functions while in Non-ANSI Mode
  6378. 0Escape seq     Mnemonic       Description of action
  6379.  ESC A          HCUU           Cursor Up
  6380.  ESC B          HCUD           Cursor Down
  6381.  ESC C          HCUF           Cursor Forward, can jump to next line
  6382.  ESC D          HCUB           Cursor Backward, can jump to previous line
  6383.  ESC E          HCD            Clear display
  6384.  ESC F          HEGM           Enter Graphics mode
  6385.  ESC G          HXGM           Exit Graphic mode
  6386.  ESC H          HCUH           Cursor Home
  6387.  ESC I          HRI            Reverse Index
  6388.  ESC J          HEOP           Erase to end of page
  6389.  ESC K          HEOL           Erase to end of line
  6390.  ESC L          HIL            Insert line
  6391.  ESC M          HDL            Delete line
  6392.  ESC N          HDCH           Delete character
  6393.  ESC O          HERM           Exit Insert Char mode
  6394.  ESC Y row col  HDCA           Direct cursor addressing, offset from space
  6395.  ESC Z          HID            Identify (responds ESC / K  which is a VT52)
  6396.  ESC b          HBD            Erase Beginning of display
  6397.  ESC j          HSCP           Save cursor position
  6398.  ESC k          HRCP           Set cursor to saved position
  6399.  ESC l          HEL            Erase entire line
  6400.  ESC n          HCPR           Cursor Position Report request
  6401.  ESC o          HEBL           Erase beginning of line
  6402.  ESC p          HERV           Enter Reverse Video mode
  6403.  ESC q          HXRV           Exit Reverse Video mode
  6404.  ESC r Bn       HMBR           *Modify baud rate - not supported
  6405.  ESC t          HEKS           *Enter Keypad shifted mode, not supported
  6406.  ESC u          HXKS           *Exit Keypad shifted mode, not supported
  6407.  ESC v          HEWA           Wrap around at end of line
  6408.  ESC w          HXWA           Discard at end of line
  6409.  ESC x Ps       HSM            Set Mode. See table below
  6410.  ESC y Ps       HRM            Reset Mode. See table below
  6411. 0        Ps     Mnemonic       Mode           Set            Reset
  6412.          1      HSM/HRM        25th line      enabled        disabled
  6413.          2                     *keyclick      off            on
  6414.          3                     *holdscreen    enabled        disabled
  6415.          4                     cursor type    block          underl.
  6416.          5                     *cursor on/off on             off
  6417.          6                     *keypad shifted  shifted      unshifted
  6418.          7                     alt app keypad  enabled       disabled
  6419.          8                     *linefeed      CR=CRLF        just CR
  6420.          9                     newline mode   enabled        disabled
  6421. 0ESC z          HRAM           Reset to power-up configuration
  6422.  ESC =          HAKM           Enter Alternate Keypad mode
  6423. -
  6424.                                         Section 7 -- MS-DOS Kermit for the IBM-PC
  6425. 1166                                                 Kermit File Transfer Package
  6426. -
  6427.  ESC >          HXAM           Exit Alternate Keypad mode
  6428.  ESC <          HEAM           Enter ANSI mode (ESC [ stuff)
  6429.  ESC @          HEIM           Enter Insert Char mode
  6430.  ESC [          HEHS           *Enter Hold Screen mode, not supported
  6431.  ESC \          HXHS           *Exit Hold Screen mode, not supported
  6432.  ESC $ and     HEK, HDK       *Keyboard enable/disable, not supported
  6433.  ESC ]          HX25           *Transmit 25th line, not supported
  6434.  ESC #          HXMP           *Transmit page, not supported
  6435. -Heath-19 Functions while in ANSI Mode
  6436. 0Escape Seq     Mnemonic       Description of Action
  6437.  ESC [ s        PSCP           Save cursor position & attributes
  6438.  ESC [ u        PRCP           Restore cursor position & attributes
  6439.  ESC [ z        PRAM           Reset to power-up configuration
  6440.  ESC [ 2 J      ED             Erase entire screen but do not move cursor;
  6441.                                regular Heath-19 moves cursor to Home.
  6442.  ESC [ ? 2 h    PEHM           Revert to normal Heath-19 non-ANSI mode
  6443.  ESC [ > Ps h   SM             Same as ESC x Ps
  6444.  ESC [ > Ps l   RM             Same as ESC y Ps
  6445. 0Plus most of the ANSI escape sequences listed for the VT102.
  6446. -
  6447. -
  6448. -
  6449. -
  6450. -
  6451. -
  6452. -
  6453. -
  6454. -
  6455. -
  6456. -MS-DOS Kermit for the IBM-PC-- Section 7
  6457. 1Kermit File Transfer Package                                                 167
  6458. -
  6459.  7.6.  Installing MS-DOS Kermit on a Fixed Disk
  6460. -The NIH Computer Center supplied diskette contains a file (named  READ.ME)  with
  6461.  instructions  for  installing  MS-DOS  Kermit  on  a fixed disk.  To display the
  6462.  instructions, issue the DOS command:  TYPE A:READ.ME.
  6463. -
  6464. -
  6465. -
  6466. -
  6467. -
  6468. -
  6469. -
  6470. -
  6471. -
  6472. -
  6473. -
  6474. -
  6475. -
  6476. -
  6477. -
  6478. -
  6479. 0                                       Section 7 -- MS-DOS Kermit for the IBM-PC
  6480. 1168                                                 Kermit File Transfer Package
  6481. -
  6482. -
  6483. -
  6484. -
  6485. -
  6486. -
  6487. -
  6488. -
  6489. -
  6490. -
  6491. -
  6492. -
  6493. -
  6494. -
  6495. -
  6496. -
  6497. -
  6498. -
  6499. -
  6500. 0MS-DOS Kermit for the IBM-PC-- Section 7
  6501. 1Kermit File Transfer Package                                                 169
  6502. -
  6503.  8.  APPLE-DOS Kermit
  6504. -Kermit-A2 Capabilities At A Glance:
  6505. 0  Local operation:                   Yes
  6506.    Remote operation:                  Yes
  6507.    Transfers text files:              Yes
  6508.    Transfers binary files:            Yes
  6509.    Wildcard send:                     No
  6510.    XX/XY interruption:                Yes
  6511.    Filename collision avoidance:      Yes
  6512.    Can time out:                      Yes
  6513.    8th-bit prefixing:                 Yes
  6514.    Repeat count prefixing:            No
  6515.    Alternate block checks:            No
  6516.    Terminal emulation:                Yes (VT52)
  6517.    Communication settings:            Yes; local echo, parity
  6518.    Transmit BREAK:                    Yes
  6519.    IBM communication:                 Yes
  6520.    Transaction logging:               No
  6521.    Session logging (raw download):    No
  6522.    Raw upload:                        No
  6523.    Act as server:                     No
  6524.    Talk to server:                    Yes
  6525.    Advanced commands for servers:     No
  6526.    Local file management:             Yes
  6527.    Handle file attributes:            No
  6528.    Command/init files:                No
  6529.    Printer control:                   No
  6530. 0KERMIT-A2 is a program that implements the Kermit file transfer protocol for the
  6531.  Apple  ][  microcomputer  system.   It  is written in 6502 assembly language and
  6532.  should run on any Apple ][, Apple ][ Plus, Apple //e,  enhanced  Apple  //e,  or
  6533.  Apple  //c  system  running  DOS 3.3.  This section will describe the things you
  6534.  should know about the DOS 3.3 file system in order  to  make  effective  use  of
  6535.  KERMIT, and then it will describe the special features of the KERMIT-A2 program.
  6536. -
  6537. -
  6538. -
  6539. -
  6540. -
  6541. -
  6542.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  6543. 1170                                                 Kermit File Transfer Package
  6544. -
  6545.  8.1.  The DOS 3.3 File System
  6546. 0Items of importance which will be discussed in this  section  include  Filenames
  6547.  and File Characteristics.
  6548. 0Apple DOS Filenames
  6549. 0Filenames under Apple DOS may contain  almost  any  ASCII  character  (including
  6550.  space).    It  is  not  recommended  that  special  characters,  (i.e.,  control
  6551.  characters or spaces) be used in a filename to be transferred by Kermit-A2 since
  6552.  they may cause problems when parsing the filename.
  6553. 0Filenames may be up to 30 characters in length and must begin with a letter.  No
  6554.  wildcarding of any kind can be done in KERMIT-A2.
  6555. -Apple DOS File Characteristics
  6556. 0All files in Apple DOS have a file type associated with them which is  contained
  6557.  in  the  directory  entry  for  the file but is not part of the filename itself.
  6558.  There are four types of files in DOS 3.3.  They are:
  6559. 0   - APPLESOFT BASIC
  6560. 0   - INTEGER BASIC
  6561. 0   - BINARY
  6562. 0   - TEXT
  6563. 0All file types have their data stored in eight-bit bytes  although  not  all  of
  6564.  them need the eighth bit.  The two file types containing BASIC programs required
  6565.  the eighth bit due to the nature of the data being  stored.   BINARY  files  are
  6566.  images  of  memory  copied into a file.  Often, these are machine code programs.
  6567.  These files require all eight bits.  TEXT files normally contain only  printable
  6568.  or  carriage control characters.  They are stored in the form of seven-bit ASCII
  6569.  characters but the eighth bit should always be set since Apples  manipulate  all
  6570.  text internally as 'NEGATIVE ASCII'.
  6571. 0When transmitting text files, the byte size should be set  to  seven-bit.   When
  6572.  transmitting  anything else, the user must insure that both Kermits are handling
  6573.  eight bit data so that no information is lost.  If an eight-bit data path is not
  6574.  available  (i.e.,  the  remote Kermit needs to do parity checking with the eigth
  6575.  bit), then eight-bit quoting should be used.  Of course, BINARY files as well as
  6576.  Apple BASIC files will not have much meaning on a different system.  If the user
  6577.  desires to edit a BASIC file on a mainframe, for instance, he must convert it to
  6578.  a TEXT file before sending it over.  After receiving the file back on the Apple,
  6579.  the user may convert it back to BASIC once again.  The reason BASIC files  would
  6580.  be meaningless to a different machine is that the Apple stores BASIC keywords as
  6581.  single character tokens to save space and processing time.  To convert  a  BASIC
  6582.  program to and from a TEXT file, consult the Apple DOS 3.3 Manual.
  6583. -
  6584. 0APPLE-DOS Kermit for the Apple ][-- Section 8
  6585. 1Kermit File Transfer Package                                                 171
  6586. -
  6587.  File information can be obtained by issuing the CATALOG command.  For example:
  6588. 0  ]CATALOG
  6589. 0   DISK VOLUME 010
  6590.       *A 002 HELLO
  6591.        B 078 KERMIT
  6592.        A 002 READER
  6593.        T 005 TESTFILE
  6594. 0  ]
  6595. 0When KERMIT-A2 is receiving a file, the file it creates on the diskette will  be
  6596.  of  the type indicated by the FILE-TYPE parameter.  The file will always be left
  6597.  in an unlocked state after it is closed by  KERMIT-A2.   When  sending  a  file,
  6598.  KERMIT-A2  will  use  the  FILE-TYPE  parameter  to  determine  how to detect an
  6599.  End-of-file condition.  Thus, it is important to have this set properly  in  all
  6600.  cases.
  6601. -Recommendations for Archiving Files
  6602. 0When using a large system for archiving purposes, there is no reason to  convert
  6603.  Apple  Basic programs into text files before sending them since there is no need
  6604.  to edit them on the mainframe.
  6605. 0The FILE-TYPE parameter must always be set correctly when sending and  receiving
  6606.  files.   Also,  when  sending  files  which  require  eight-bit BYTE-SIZEs, this
  6607.  parameter must  also  be  set  properly  since  KERMIT-A2  does  not  change  it
  6608.  automatically based on FILE-TYPE.
  6609. 0The procedure for archiving TEXT files is:
  6610. 0   - Run Kermit on remote system
  6611. 0   - SET BYTE-SIZE 7-BIT ! On KERMIT-A2
  6612. 0   - SET FILE-TYPE TEXT ! On KERMIT-A2
  6613. 0   - Send files
  6614. 0The procedure for archiving APPLESOFT, INTEGER, and BINARY files is:
  6615. 0   - Run Kermit on remote system
  6616. 0   - Set File-byte-size to Eight-bit (On Remote Kermit)
  6617. 0   - SET BYTE-SIZE 8-BIT (On KERMIT-A2)
  6618. 0   - SET FILE-TYPE APPLESOFT (or INTEGER, or BINARY) On KERMIT-A2
  6619. 0   - Send files
  6620. -
  6621.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  6622. 1172                                                 Kermit File Transfer Package
  6623. -
  6624.  8.2.  Program Operation
  6625. -                            Hardware Considerations
  6626. 0Computer
  6627. 0KERMIT-A2 is designed to be used with the Apple ][ series of computers  with  at
  6628.  least  64k  of  memory.   It  has  been  tested  on  an  Apple //e with a normal
  6629.  (non-extended) 80-column card, an enhanced Apple //e, an Apple  //c,  and  on  a
  6630.  Apple  ][+  with  a language card.  It may work on Franklin computers, though it
  6631.  has not been tested on them.
  6632. 0Operating System
  6633. 0KERMIT-A2 reads and writes standard DOS 3.3 files  to  and  from  disk.   ProDOS
  6634.  files  must be converted to DOS 3.3 before they can be transferred.  It will NOT
  6635.  work under Apple CPM.  KERMIT-A2 is  distributed  on  a  disk  that  contains  a
  6636.  high-speed  operating  system  called Diversi-DOS(tm), which is licensed for use
  6637.  with this program only.  To legally use Diversi-DOS with other programs, you may
  6638.  send $30.00 directly to :
  6639. 0                  DSR, Inc.,
  6640.                    34880 Bunker Hill,
  6641.                    Farmington, MI  48018.
  6642. 0You will receive a Diversi-DOS utility disk with documentation.
  6643. 080 Column Cards
  6644. 0The only 80-column card supported is the Apple card that  comes  with  the  //e.
  6645.  Very  little  of  the  80-column programming in KERMIT-A2 is card-dependent, but
  6646.  other cards have not been tested.
  6647. 0Serial Interface Cards for Modem Connection
  6648. 0KERMIT-A2 will support the following serial interface cards:
  6649. 01. D.C. Hayes MICROMODEM ][ (also works for SSM, should work for
  6650.     D.C. Hayes MICROMODEM //e)
  6651. 02. Apple Super Serial card (also works for Practical Peripherals
  6652.     SERIALL)
  6653. 0Most switch settings on these cards are irrelevant to Kermit.  However,  if  you
  6654.  plan  to  SET  INTERRUPT-USAGE  ON (a must above 300 bits per second) you should
  6655.  make sure that any  switch  governing  interrupts  is  set  ON  (the  Micromodem
  6656.  requires a solder joint or jumper to make interrupts possible).
  6657. 0It is possible that  other  cards  may  have  operational  characteristics  very
  6658.  similar  or  identical to one of the devices above.  If this is the case, it may
  6659. -
  6660. 0APPLE-DOS Kermit for the Apple ][-- Section 8
  6661. 1Kermit File Transfer Package                                                 173
  6662. -
  6663.  work using one of the currently available device drivers.  The user may want  to
  6664.  try each of the above options to see if any of them work.
  6665. 0KERMIT-A2 must be told which device is being used so that it may  run  with  the
  6666.  correct  device  driver.   It  also must be told in which slot the card resides.
  6667.  This may be done with the 'SET SLOT' command (documented below).
  6668. 0General Configuration
  6669. 0It is assumed that you have at least one disk drive (used for booting the Kermit
  6670.  disk)  connected  to a disk-controller card mounted in slot 6 (the usual).  Your
  6671.  serial interface (or modem) card can be in any slot.
  6672. -                           Conversing with Kermit-A2
  6673. 0KERMIT-A2's prompt is "KERMIT-A2>."
  6674. 0To run KERMIT-A2 and issue commands to it, type the following:
  6675. -  ]BRUN KERMIT
  6676. 0      APPLE-II KERMIT (VERSION 1.0)
  6677. 0  KERMIT-A2>SEND TESTFILE
  6678. 0  file is sent
  6679. 0  KERMIT-A2>STATUS
  6680. 0  performance statistics are printed
  6681. 0  KERMIT-A2>Other commands
  6682.                    .
  6683.                    .
  6684.                    .
  6685. 0  KERMIT-A2>EXIT
  6686.    ]
  6687. 0KERMIT-A2 uses a TOPS-20 style command parser.
  6688. 0During interactive operation, you may use the ?-prompting help feature ("?") and
  6689.  recognition  (ESC) features while typing commands.  A question mark typed at any
  6690.  point in a command displays the options available at that point; typing  an  ESC
  6691.  character  causes  the  current  keyword to be completed (or default value to be
  6692.  supplied).  If you have not typed sufficient characters to uniquely specify  the
  6693.  keyword  or  filename  (or  if  there  is  no default value) then a beep will be
  6694.  sounded and you may continue typing.  Keywords may be abbreviated to any  prefix
  6695.  that  is  unique.   Control-W  erases  the  last word you have typed.  Control-U
  6696.  erases the entire line that you have typed.
  6697. -
  6698.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  6699. 1174                                                 Kermit File Transfer Package
  6700. -
  6701.  8.3.  Remote and Local Operation
  6702. 0KERMIT-A2 is normally run in local mode.  It may be run as a  remote  Kermit  as
  6703.  well  although  there  is  no  advantage  to  doing  things that way.  KERMIT-A2
  6704.  supports User-mode commands for talking to a  Server.   It  does  not  currently
  6705.  operate as a remote server.
  6706. -
  6707. -
  6708. -
  6709. -
  6710. -
  6711. -
  6712. -
  6713. -
  6714. -
  6715. -
  6716. -
  6717. -
  6718. -
  6719. -
  6720. -
  6721. -
  6722. 0APPLE-DOS Kermit for the Apple ][-- Section 8
  6723. 1Kermit File Transfer Package                                                 175
  6724. -
  6725.  8.4.  KERMIT-A2 Commands
  6726. -                            The SEND Command
  6727. 0Syntax:  SEND filespec
  6728. 0The SEND command causes a file to be sent from the Apple to the  remote  system.
  6729.  The  filespec  is  the  name  of the file on the Apple diskette to be sent.  The
  6730.  parser will not accept control characters and certain special  characters  in  a
  6731.  filename  (i.e.,  a comma), so the user may have to rename the file before it is
  6732.  sent.  The user may also have problems in  filename  compatibility  with  remote
  6733.  Kermits.  If the remote Kermit does not have the facilities to beat the filename
  6734.  into a format that its system likes, the user may have to rename the file before
  6735.  sending it.  The default disk drive used for file transfers is the drive used to
  6736.  boot the system or the last drive accessed with a  DOS  command.   This  can  be
  6737.  changed  with the 'SET DEFAULT-DISK' command (explained below).  Either the slot
  6738.  or the drive or both may be altered.
  6739. 0As a file is being sent, the screen  displays  either  'SENDING  PACKET...'   or
  6740.  'WAITING  PACKET...'   followed  by  the  absolute  packet number since start of
  6741.  transmission.  If a packet must be transmitted several times and it reaches  the
  6742.  maximum  retry  count,  the  transfer will fail and the 'KERMIT-A2>' prompt will
  6743.  return.  If the remote Kermit sends an error packet, the text of the packet will
  6744.  be displayed on the screen and the prompt will return.
  6745. 0Currently, a packet can be retransmitted manually  by  typing  anything  on  the
  6746.  keyboard.  If a 'Q' is typed, the entire transmission will be aborted.
  6747. -                              The RECEIVE Command
  6748. 0Syntax:  RECEIVE [filespec]
  6749. 0The RECEIVE command tells KERMIT-A2 to receive a file or  file  group  from  the
  6750.  other  system.  If only one file is being received, you may include the optional
  6751.  filespec as the name to store the incoming file under; otherwise,  the  name  is
  6752.  taken  from  the incoming file header.  If the name in the header is not a legal
  6753.  filename in DOS 3.3, KERMIT-A2 will attempt to change it into  something  legal.
  6754.  There  are very few things that are illegal in DOS 3.3.  If WARNING is on and an
  6755.  incoming file has a name identical to a file already existing on  the  diskette,
  6756.  KERMIT-A2 will issue a warning to the user and attempt to modify the filename to
  6757.  make it unique.
  6758. -                                The GET Command
  6759. 0Syntax:  GET remote-filespec
  6760. 0The GET command requests a remote Kermit server to send the file or  file  group
  6761.  specified  by remote-filespec.  This command can be used with a Kermit server on
  6762.  the other end.
  6763. -
  6764.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  6765. 1176                                                 Kermit File Transfer Package
  6766. -
  6767.  The remote filespec is any string that can be a legal file specification for the
  6768.  remote system; it is not parsed or validated locally.
  6769. 0If the remote Kermit is not capable of server functions, then you will  probably
  6770.  get an error message back from it like "Illegal packet type."  In this case, you
  6771.  must connect to the other Kermit, give a SEND command, escape back, and  give  a
  6772.  RECEIVE command.
  6773. -                          The CONNECT Command
  6774. 0Syntax:  CONNECT
  6775. 0Establish a terminal connection to the remote system.  Get back to KERMIT-A2  by
  6776.  typing  the  escape  character followed by the letter C. The escape character is
  6777.  Control-E  by  default.   When  you   type   the   escape   character,   several
  6778.  single-character commands are possible:
  6779. 0  B   Send a BREAK Signal.
  6780.    C   Close the connection and return to KERMIT-A2.
  6781.    H   Hang up the communications interface (drops phone connection)
  6782.    S   Show status of the connection.
  6783.    0   Send a null.
  6784.    Connect-escape
  6785.        Send the Connect-escape character itself.
  6786.    ?   List all the possible single-character arguments.
  6787. 0You can use the SET ESCAPE-CHARACTER to define a different escape character.
  6788. 0When 'CONNECTED', KERMIT-A2 will be passing characters entered on  the  keyboard
  6789.  to the remote system, and passing characters from the remote system to the Apple
  6790.  screen.  If VT52-EMULATION is turned on,  Kermit  will  trap  escape  codes  and
  6791.  simulate the appropriate functions of a VT52 terminal.
  6792. -                            The HELP Command
  6793. 0Syntax:  HELP
  6794. 0Displays a brief summary of KERMIT-A2 and its commands.
  6795. -                       The EXIT and QUIT Commands
  6796. 0Syntax:  EXIT
  6797. 0Exit from KERMIT-A2.  You can restart the  program,  provided  you  haven't  run
  6798.  anything else, by typing 'CALL 2049'.
  6799. 0Syntax:  QUIT
  6800. 0This is merely a synonym for EXIT.
  6801. -
  6802.  APPLE-DOS Kermit for the Apple ][-- Section 8
  6803. 1Kermit File Transfer Package                                                 177
  6804. -
  6805.                                  The SET Command
  6806. 0Syntax:  SET parameter [option] [value]
  6807. 0Establish or modify various parameters for file transfer or terminal connection.
  6808.  You  can  examine  their values with the SHOW command.  The following parameters
  6809.  may be SET:
  6810. 0         BAUD-RATE  Communications interface line speed.
  6811.           BYTE-SIZE  SEVEN or EIGHT significant bits in a byte.
  6812.           DEBUGGING  TERSE or VERBOSE packet information.
  6813.        DEFAULT-DISK  Disk drive and slot used for file transfer?
  6814.       DEVICE-DRIVER  Which communication device is being used?
  6815.   EIGHT-BIT-QUOTING  Should eight-bit-quoting be used?
  6816.           EMULATION  Should Apple emulate full-screen terminal?
  6817.    ESCAPE-CHARACTER  Character for terminal connection.
  6818.           FILE-TYPE  Of Apple DOS file being sent/received.
  6819.            IBM-LINE  Should Apple wait for IBM turnaround character?
  6820.     INTERRUPT-USAGE  Can serial interface card handle interrupts?
  6821.              KBOARD  Type of Apple keyboard.
  6822.      KEY-SUBSTITUTE  Used to translate individual characters.
  6823.            LINEFEED  Should Apple send linefeed with carriage return?
  6824.          LOCAL-ECHO  Specify which host does echoing during CONNECT.
  6825.  LOWER-CASE-DISPLAY  How lower case characters are displayed on Apple.
  6826.              PARITY  Character parity to use.
  6827.             RECEIVE  Various parameters for receiving files.
  6828.             RETRIES  Specify maximum number of retries allowed.
  6829.              SCREEN  Specify width of screen.
  6830.                SEND  Various parameters for sending files.
  6831.                SLOT  Which slot # is communication device in?
  6832.               SOUND  Should Kermit ring the bell?
  6833.       TERMINAL-TYPE  Type of full-screen terminal to emulate.
  6834.             WARNING  Warn users if incoming file exists.
  6835. -SET BAUD-RATE
  6836. 0Syntax:  SET BAUD-RATE rate
  6837. 0Set the line speed of the serial interface card to 300,  1200,  2400,  4800,  or
  6838.  9600 bits per second.
  6839. -
  6840. -
  6841. -
  6842. -
  6843. -                                  Section 8 -- APPLE-DOS Kermit for the Apple ][
  6844. 1178                                                 Kermit File Transfer Package
  6845. -
  6846.  SET BYTE-SIZE
  6847. 0Syntax:  SET BYTE-SIZE parameter
  6848. 0Byte size for Apple DOS file I/O.  The choices are 7-bit or 8-bit.
  6849. 07-BIT    When sending a file, shut the H.O. bit.  When receiving, turn the  H.O.
  6850.           bit  on.  This is done since text files are the only files which should
  6851.           be sent as SEVEN-BIT files and text files only make sense to the  Apple
  6852.           if they are encoded in 'negative ascii' values.
  6853. 08-BIT    Always send and receive the bytes intact.  All 8 bits are significant.
  6854. -SET DEBUGGING
  6855. 0Syntax:  SET DEBUGGING options
  6856. 0Record the packet traffic on your terminal.  Options are:
  6857. 0TERSE            Show packet info only (brief).
  6858. 0VERBOSE          Display packet field descriptions with packet info (lengthy).
  6859. 0OFF              Don't display debugging information (this is the default).
  6860. -SET DEFAULT-DISK
  6861. 0Syntax:  SET DEFAULT-DISK parameter value
  6862. 0This command will tell KERMIT-A2 which  disk  drive  should  be  used  for  file
  6863.  transfers.   The  two parameters which may be set separately are SLOT and DRIVE.
  6864.  The value for SLOT ranges from 1 to 7.  The value for DRIVE is either 1 or 2.
  6865. -
  6866. -
  6867. -
  6868. -
  6869. -
  6870. -
  6871. -
  6872.  APPLE-DOS Kermit for the Apple ][-- Section 8
  6873. 1Kermit File Transfer Package                                                 179
  6874. -
  6875.  SET DEVICE-DRIVER
  6876. 0Syntax:  SET DEVICE-DRIVER keyword
  6877. 0This command will tell KERMIT-A2 what type  of  communication  device  is  being
  6878.  used.  Currently, four different cards are supported, however, other unsupported
  6879.  cards may work similar enough to one of the  three  available  that  it  may  be
  6880.  possible  to  use  them.   KERMIT-A2  must also be told where the card is in the
  6881.  machine (see the SET SLOT command).  The options for this set command are:
  6882. 0APPLE-COM        The old Apple communication card (300 bits per second).   Note:
  6883.                   This  device  driver  has  not  been  tested  and  may not work
  6884.                   properly.
  6885. 0MICROMODEM       The  D.C.  Hayes  Micromodem  ][  (300  bits  per  second)  and
  6886.                   Micromodem //e (300 and 1200 bits per second).
  6887. 0SSM              SSM A10 serial interface card.
  6888. 0SUPER-SERIAL     The Apple Super Serial Card (300-19.2 bits per  second).   Also
  6889.                   works for Practical Peripherals SERIALL.
  6890. 0NOVATION-CAT     Novation Apple Cat ][ (300 and 1200 bits  per  second).   Note:
  6891.                   This  device  driver  has  not  been  tested  and  may not work
  6892.                   properly.
  6893. -SET EIGHT-BIT-QUOTING
  6894. 0Syntax:  SET EIGHT-BIT-QUOTING ON or OFF
  6895. 0This command will turn on or turn off the eight-bit-quoting feature.  If set ON,
  6896.  it  forces  KERMIT-A2  to  use  eight-bit-quoting  which may be handy if it must
  6897.  receive a text file in which some or all of the characters are not  in  negative
  6898.  ASCII.  The command takes ON or OFF as options.
  6899. -SET EMULATION
  6900. 0Syntax:  SET EMULATION ON or OFF
  6901. 0Specify  whether  KERMIT-A2  should  use  its  built-in  software  facility  for
  6902.  emulating a full-screen terminal.  If EMULATION is ON, the type of terminal must
  6903.  be specified by the SET TERMINAL-TYPE command.
  6904. -
  6905. -
  6906. -
  6907. -                                  Section 8 -- APPLE-DOS Kermit for the Apple ][
  6908. 1180                                                 Kermit File Transfer Package
  6909. -
  6910.  SET ESCAPE-CHARACTER
  6911. 0Syntax:  SET ESCAPE-CHARACTER hexadecimal-number
  6912. 0Specify  the  control  character  you  want  to  use  to  "escape"  from  remote
  6913.  connections back to KERMIT-A2.  The default is 5 (Control-E).  The number is the
  6914.  hex value of the ASCII control character, 1 to 37, for instance 2 is Control-B.
  6915. -SET FILE-TYPE
  6916. 0Syntax:  SET FILE-TYPE keyword
  6917. 0This will inform KERMIT-A2 what type of DOS file is being sent or received.   It
  6918.  is  important  that  this is set correctly since KERMIT-A2 must create a file of
  6919.  the appropriate type when receiving (and it has no way of knowing what  kind  of
  6920.  file  it  is).   When  KERMIT-A2  is sending, it must also know the type of file
  6921.  since that tells it how to detect the actual end-of-file.  The options for  this
  6922.  parameter are APPLESOFT, INTEGER, TEXT and BINARY.
  6923. 0APPLESOFT The file being sent/received is an Applesoft Basic program.
  6924. 0  INTEGER The file being sent/received is an Integer Basic program.
  6925. 0     TEXT The file being sent/received is an ASCII Text file.
  6926. 0   BINARY The file being sent/received is a Binary image.
  6927. -
  6928.  SET IBM-LINE
  6929. 0Syntax:  SET IBM-LINE ON or OFF
  6930. 0When set to ON, KERMIT-A2 will wait  for  the  IBM  turnaround  character  (XON,
  6931.  CTRL-Q)  before  sending any characters to the other Kermit.  Note:  This option
  6932.  must be set to OFF when used with either TSO Kermit or DECsystem-10 Kermit.
  6933. -SET INTERRUPT-USAGE
  6934. 0Syntax:  SET INTERRUPT-USAGE ON or OFF
  6935. 0When set to  ON,  it  indicates  that  the  serial  interface  card  can  handle
  6936.  interrupts (a must above 300 bits per second).  Before setting it ON, you should
  6937.  make sure that any  switch  governing  interrupts  is  enabled  (the  Micromodem
  6938.  requires a solder joint or jumper to make interrupts possible).
  6939. -SET KBOARD
  6940. 0Syntax:  SET KBOARD parameter keyword
  6941. -
  6942.  APPLE-DOS Kermit for the Apple ][-- Section 8
  6943. 1Kermit File Transfer Package                                                 181
  6944. -
  6945.  This command will tell KERMIT-A2 what type  of  keyboard  is  being  used.   The
  6946.  allowable options are:
  6947. 02P   Apple ][+ or Apple ][.
  6948. 02S   Apple ][ or ][+ with shift-key modification.
  6949. 02E   Apple //e.
  6950. 02C   Apple //c or enhanced Apple //e.
  6951. 0On an Apple ][ or ][+ with an incomplete keyboard,  special  characters  can  be
  6952.  obtained by prefixing regular characters with a right-arrow.  Also, uppercase is
  6953.  shown in inverse and lowercase characters  are  displayed  as  normal  uppercase
  6954.  characters.
  6955. 0Here are the rules for using the special Apple ][  or  ][+  input,  to  get  all
  6956.  printable ASCII characters, and how they appear on the screen:
  6957. 0Special meanings are applied in various contexts  to  certain  characters.   The
  6958.  left  and  right arrow keys do special things, and sometimes the escape key does
  6959.  as well.
  6960. 0For letters, the keyboard is always in either default UPPERCASE mode or  default
  6961.  lowercase mode.  When in UPPERCASE, all letters typed are sent out as uppercase.
  6962.  In lowercase, all letters are sent out as lowercase.  To reverse  the  case  for
  6963.  the  next  character  only,  hit  the right-arrow ("prefix") key.  To switch the
  6964.  default case, hit the prefix-key twice in a row.
  6965. 0For funny characters, the prefix key is also used to get the unusual punctuation
  6966.  characters  which  are not on the Apple keyboard.  Here they are:  (To represent
  6967.  the right-arrow prefix character, we are using the letter p).
  6968. 0To get                   Type        Appearance
  6969. 0Left Square Bracket      p(          [
  6970.  Right Square             p)          ]
  6971.  Left Curly Bracket       p<          $
  6972.  Right Curly Bracket      p>          
  6973.  Underline                p-          _
  6974.  Backslash                p/          \
  6975.  Tilde (wiggle)           pX          ~
  6976.  Vertical Line            p.          |
  6977.  At-sign                  p"          @
  6978. 0The left-arrow key sends a rubout.
  6979. 0With left-arrow and right arrow doing special things, it is  a  little  hard  to
  6980.  enter  their  characters  (Control-H  and  Control-U  respectively).   There  is
  6981.  therefore an escape from prefix mode sequence.  If you type prefix-ESC, the next
  6982.  character is sent without any interpretation.
  6983. -
  6984. 0                                  Section 8 -- APPLE-DOS Kermit for the Apple ][
  6985. 1182                                                 Kermit File Transfer Package
  6986. -
  6987.  SET KEY-SUBSTITUTE
  6988. 0Syntax:  SET KEY-SUBSTITUTE old-number new-number
  6989. 0This command may be used to tell KERMIT-A2 to  transmit  a  different  character
  6990.  each  time  a particular key is pressed.  For example, the command could be used
  6991.  to transmit the letter "B" each time the "A" key was pressed.  The first  number
  6992.  in the command (i.e., "old number") , specifies the decimal value (between 0 and
  6993.  127) of the ASCII character to be translated.  The second number in the command,
  6994.  (i.e., "new number"), specifies the decimal value of the ASCII character that is
  6995.  to be transmitted.  If the second number does not have the high  order  bit  set
  6996.  (i.e.,  the  number  is  less  than 128), then the character transmitted will be
  6997.  prefixed by an escape.  For example, the command:
  6998. 0    SET KEY-SUBSTITUTE 65 194
  6999. 0would send "B" (decimal 194) whenever the "A"  (decimal  65)  key  was  pressed.
  7000.  Similarly, the command:
  7001. 0    SET KEY-SUBSTITUTE 35 36
  7002. 0would send ESCAPE "$" (decimal  36)  whenever  the  "#"  (decimal  35)  key  was
  7003.  pressed.
  7004. -SET LINEFEED
  7005. 0Syntax:  SET LINEFEED ON or OFF
  7006. 0When set to ON, KERMIT-A2 will send a linefeed after each carriage return.
  7007. -SET LOCAL-ECHO
  7008. 0Syntax:  SET LOCAL-ECHO ON or OFF
  7009. 0Specify how characters are echoed  while  CONNECTed  to  a  remote  system.   ON
  7010.  specifies  that  characters  are  to be echoed by KERMIT-A2 (because neither the
  7011.  remote computer nor the communications circuitry has been  requested  to  echo),
  7012.  and is appropriate for half-duplex connections.
  7013. -
  7014. -
  7015. -
  7016. -
  7017. -
  7018.  APPLE-DOS Kermit for the Apple ][-- Section 8
  7019. 1Kermit File Transfer Package                                                 183
  7020. -
  7021.  SET LOWER-CASE-DISPLAY
  7022. 0Syntax:  SET LOWER-CASE-DISPLAY keyword
  7023. 0Specify how lower case characters are to  be  displayed  while  CONNECTED  to  a
  7024.  remote system.  The allowable options are:
  7025. 0INVERSE-UPPER  Upper case letters are displayed in  normal  upper  case.   Lower
  7026.                 case  letters  are  displayed in inverse upper case.  By default,
  7027.                 the keyboard is in the lower case mode.
  7028. 0LOWER-CASE     All characters are displayed in  the  proper  case.   Upper  case
  7029.                 letters  are  displayed  in normal upper case, lower case letters
  7030.                 are displayed in normal lower case.  On an Apple ][ or ][+,  this
  7031.                 option  requires  a lower case adaptor.  By default, the keyboard
  7032.                 is in the lower case mode.
  7033. 0NORMAL-UPPER   Upper case letters are displayed in inverse  upper  case.   Lower
  7034.                 case letters are displayed in normal upper case.  By default, the
  7035.                 keyboard is in the lower case mode.
  7036. 0SAME-AS-UPPER  Both upper and lower case letters are displayed in  normal  upper
  7037.                 case.  By default, the keyboard is in the lower case mode.
  7038. -SET PARITY
  7039. 0Syntax:  SET PARITY keyword
  7040. 0This command determines the type of parity to use on the transmission line.  The
  7041.  options for this parameter are EVEN, MARK, NONE, ODD, or SPACE.
  7042. -
  7043. -
  7044. -
  7045. -
  7046. -
  7047. -
  7048. -
  7049. -
  7050.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  7051. 1184                                                 Kermit File Transfer Package
  7052. -
  7053.  SET RECEIVE
  7054. 0Syntax:  SET RECEIVE parameter value
  7055. 0Parameters to request or expect for incoming packets, as follows:
  7056. 0EIGHT-BIT-QUOTE-CHAR hexadecimal-number
  7057. 0          Sets the character to be used  to  quote  characters  which  have  the
  7058.            eighth bit (parity bit) set.  This is used to transfer eight-bit bytes
  7059.            on a transmission medium which only supports  seven  data  bits.   The
  7060.            default value is 26 (ASCII "&").
  7061. 0END-OF-LINE hexadecimal-number
  7062. 0          Carriage return (ASCII 0D hex) by default.
  7063. 0PACKET-LENGTH number
  7064. 0          Maximum length packet for the other  side  to  send,  decimal  number,
  7065.            between 10 and 94, decimal.
  7066. 0PADDING number, PAD-CHAR hexadecimal-number
  7067. 0          How many padding characters to request before  each  incoming  packet,
  7068.            and  what  the  padding  character should be.  No Kermits are known to
  7069.            need padding; and if one did, it would request it without your  having
  7070.            to tell it to do so.  This command would only be necessary, therefore,
  7071.            under very unusual circumstances.
  7072. 0QUOTE-CHAR hexadecimal-number
  7073. 0          What printable character to use for quoting of control characters, "#"
  7074.            (ASCII 23 hex) by default.  There should be no reason to change this.
  7075. 0TIMEOUT number
  7076. 0          How many seconds the other Kermit should  wait  for  a  packet  before
  7077.            asking for re-transmission.
  7078. -SET RETRIES
  7079. 0Syntax:  SET RETRIES number
  7080. 0How many times to try sending a particular packet before giving up.  If  a  line
  7081.  is very noisy, you might want to increase this number.
  7082. -
  7083. -
  7084. -APPLE-DOS Kermit for the Apple ][-- Section 8
  7085. 1Kermit File Transfer Package                                                 185
  7086. -
  7087.  SET SCREEN
  7088. 0Syntax:  SET SCREEN keyword
  7089. 0This command determines if the screen display is to be in 40 column mode  or  80
  7090.  column mode.  The options for this parameter are 40 or 80.
  7091. -
  7092. -
  7093. -
  7094. -
  7095. -
  7096. -
  7097. -
  7098. -
  7099. -
  7100. -
  7101. -
  7102. -
  7103. -
  7104. -
  7105. -
  7106. -
  7107. 0                                  Section 8 -- APPLE-DOS Kermit for the Apple ][
  7108. 1186                                                 Kermit File Transfer Package
  7109. -
  7110.  SET SEND
  7111. 0Syntax:  SET SEND parameter value
  7112. 0Parameters for outgoing packets, as follows:
  7113. 0EIGHT-BIT-QUOTE-CHAR hexadecimal-number
  7114. 0          Sets the character to be used  to  quote  characters  which  have  the
  7115.            eighth bit (parity bit) set.  This is used to transfer eight-bit bytes
  7116.            on a transmission medium which only supports  seven  data  bits.   The
  7117.            default value is 26 (ASCII "&").
  7118. 0END-OF-LINE hexadecimal-number
  7119. 0          The ASCII character to be used  as  a  line  terminator  for  outbound
  7120.            packets,  if  one  is required by the other system, carriage return by
  7121.            default.  You will only have to use  this  command  for  systems  that
  7122.            require a line terminator other than carriage return.
  7123. 0PACKET-LENGTH number
  7124. 0          Maximum  packet  length  to  send,  between  10  and   94   (decimal).
  7125.            Shortening the packets might allow more of them to get through without
  7126.            error on noisy communication lines.  Lengthening the packets increases
  7127.            the throughput on clean lines.
  7128. 0PADDING number, PAD-CHAR hexadecimal-number
  7129. 0          How much padding to send before a packet,  if  the  other  side  needs
  7130.            padding,  and  what  character  to  use  for padding.  Defaults are no
  7131.            padding, and NUL (0) for the padding character.  This command is  also
  7132.            handy  for  inserting  special  characters  that  may  be  required by
  7133.            communications equipment.
  7134. 0QUOTE-CHAR hexadecimal-number
  7135. 0          What printable character to use for  quoting  of  control  characters,
  7136.            "#,"  (ASCII  23 hex) by default.  There should be no reason to change
  7137.            this.
  7138. 0TIMEOUT number
  7139. 0          How many seconds to wait for a packet before trying again.  A value of
  7140.            zero means don't time out -- wait forever.
  7141. -SET SOUND
  7142. 0Syntax:  SET SOUND ON or OFF
  7143. 0Specify whether KERMIT-A2 should ring the bell to get users attention.
  7144. -
  7145.  APPLE-DOS Kermit for the Apple ][-- Section 8
  7146. 1Kermit File Transfer Package                                                 187
  7147. -
  7148.  SET TERMINAL-TYPE
  7149. 0Syntax:  SET TERMINAL-TYPE keyword
  7150. 0This command determines the  type  of  full-screen  terminal  to  emulate.   The
  7151.  allowable options are:
  7152. 0    VCA    Emulate Volker-Craig 4404 terminal in its ADM-3A
  7153.             operating mode.
  7154. 0    VT52   Emulate DEC VT52 terminal.
  7155. -SET SLOT
  7156. 0Syntax:  SET SLOT parameter
  7157. 0This option tells KERMIT-A2 in which slot the communication device  is  located.
  7158.  The range for the parameter is 1-9.
  7159. -SET WARNING
  7160. 0Syntax:  SET WARNING ON or OFF
  7161. 0This  tells  KERMIT-A2  whether  to  warn  the  user  about  incoming  filenames
  7162.  conflicting with existing files or not.
  7163. -
  7164.                              The SHOW Command
  7165. 0Syntax:  SHOW option
  7166. 0The SHOW command displays the values of  the  parameters  settable  by  the  SET
  7167.  command.  In addition, if ALL is specified, a complete display of all parameters
  7168.  will be provided.
  7169. -                           The STATUS Command
  7170. 0Syntax:  STATUS
  7171. 0Give statistics about the most recent file transfer.  This includes  information
  7172.  such   as   number  of  characters  sent/received,  number  of  data  characters
  7173.  sent/received, and last error encountered.
  7174. -
  7175. -
  7176. -
  7177.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  7178. 1188                                                 Kermit File Transfer Package
  7179. -
  7180.                             The BYE Command
  7181. 0Syntax:  BYE
  7182. 0Shut down the remote server and exit from KERMIT-A2.
  7183. -                         The CATALOG Command
  7184. 0Syntax:  CATALOG
  7185. 0Ask DOS to show a list of files on the disk in the DEFAULT-DISK
  7186. -                         The COMPARE Command
  7187. 0Syntax:  COMPARE filespec1 filespec2
  7188. 0Compares two files on the disk in the DEFAULT-DISK  drive.   If  the  files  are
  7189.  different, it gives the number and some text of the first different line and the
  7190.  first different character.
  7191. -                          The DELETE Command
  7192. 0Syntax:  DELETE filespec
  7193. 0Ask DOS to erase a file on the disk in the DEFAULT-DISK drive.
  7194. -
  7195.                            The FINISH Command
  7196. 0Syntax:  FINISH
  7197. 0Shut down the remote server, but do not exit from KERMIT-A2.
  7198. -                         The INSTALL Command
  7199. 0Syntax:  INSTALL
  7200. 0Writes your customized version of the KERMIT-A2 program out to a disk file named
  7201.  "KERMIT."  Ignore the FILE-NOT-FOUND message.
  7202. -                         The MONITOR Command
  7203. 0Syntax:  MONITOR
  7204. 0Exit from KERMIT-A2 to the Apple's System Monitor.  You can restart the  program
  7205.  by typing '801G'.
  7206. -
  7207.  APPLE-DOS Kermit for the Apple ][-- Section 8
  7208. 1Kermit File Transfer Package                                                 189
  7209. -
  7210.                            The RENAME Command
  7211. 0Syntax:  RENAME old-filespec,new-filespec
  7212. 0Ask DOS to rename a file on the disk in the DEFAULT-DISK drive.
  7213. -                           The TYPE Command
  7214. 0Syntax:  TYPE filespec
  7215. 0Displays a text file.  KERMIT-A2 pauses  after  the  first  line  is  displayed.
  7216.  Pressing carriage return will start a continuous scroll.  Pressing any key other
  7217.  than carriage return will stop scroll and display one line per key press.
  7218. -
  7219. -
  7220. -
  7221. -
  7222. -
  7223. -
  7224. -
  7225. -
  7226. -
  7227. -
  7228. -
  7229. -
  7230. -
  7231. -                                  Section 8 -- APPLE-DOS Kermit for the Apple ][
  7232. 1190                                                 Kermit File Transfer Package
  7233. -
  7234.  8.5.  Matching KERMIT-A2 to Your System
  7235. 0Changing a few settings in the program  will  probably  be  necessary  to  match
  7236.  KERMIT-A2  to  your  particular  system.  It is unlikely that all of the default
  7237.  settings (those available when you first load KERMIT-A2) are the ones  you  will
  7238.  be  wanting to use on a regular basis.  This process of customizing KERMIT-A2 to
  7239.  your needs, which eliminates the need for typing in the settings every time  you
  7240.  load the program, is known as INSTALLATION.
  7241. 0The settings of all of the parameters may be displayed by typing:
  7242. 0    SHOW ALL
  7243. 0You will most likely  want  to  make  changes  in  parameters  related  to  your
  7244.  hardware; the commands which do this are:
  7245. 0    SET BAUD-RATE
  7246.      SET DEVICE-DRIVER
  7247.      SET INTERRUPT-USAGE
  7248.      SET KBOARD
  7249.      SET LOWER-CASE-DISPLAY
  7250.      SET SCREEN
  7251.      SET SLOT
  7252. 0There are many other parameters, changes in some of which may add greatly to the
  7253.  convenience  of using KERMIT-A2 in your particular situation.  These do NOT have
  7254.  to be done now.  You can make such changes whenever it becomes clear to you that
  7255.  they  would  be helpful.  If you want to have these changes available each time
  7256.  you run KERMIT-A2, then you must issue the INSTALL command  again  as  described
  7257.  below.
  7258. -
  7259. -
  7260. -
  7261. -
  7262. -
  7263. -
  7264. -
  7265. -
  7266. 0APPLE-DOS Kermit for the Apple ][-- Section 8
  7267. 1Kermit File Transfer Package                                                 191
  7268. -
  7269.  When you think you have everything the way you want it, review the  settings  by
  7270.  typing:
  7271. 0    SHOW ALL
  7272. 0If everything looks  correct,  you  can  now  save  the  customized  version  of
  7273.  KERMIT-A2 to disk by typing:
  7274. 0    INSTALL
  7275. 0While the disk drives whirs, ignore the  FILE-NOT-FOUND  message.   The  INSTALL
  7276.  command writes your new version into a file named KERMIT.  If there is already a
  7277.  file named KERMIT on the disk, INSTALL will warn you and refuse to write on  the
  7278.  disk.   If this happens, you can simply rename the old file and retry INSTALL by
  7279.  typing:
  7280. 0    RENAME KERMIT,OLDKERMIT
  7281.      INSTALL
  7282. 0To make sure that the new KERMIT-A2 is properly configured and saved, type:
  7283. 0    EXIT
  7284. 0and then:
  7285. 0    BRUN KERMIT
  7286. 0When you get the "KERMIT-A2>" prompt again, check the settings you made above by
  7287.  typing:
  7288. 0    SHOW ALL
  7289. -
  7290. -
  7291. -
  7292. -
  7293. -
  7294. -
  7295. -
  7296. -
  7297.                                    Section 8 -- APPLE-DOS Kermit for the Apple ][
  7298. 1192                                                 Kermit File Transfer Package
  7299. -
  7300. -
  7301. -
  7302. -
  7303. -
  7304. -
  7305. -
  7306. -
  7307. -
  7308. -
  7309. -
  7310. -
  7311. -
  7312. -
  7313. -
  7314. -
  7315. -
  7316. -
  7317. -
  7318. 0APPLE-DOS Kermit for the Apple ][-- Section 8
  7319. 1Kermit File Transfer Package                                                 193
  7320. -
  7321.  Appendix A -- When Things Go Wrong
  7322. 0Connecting two computers can be a tricky business, and many things can go wrong.
  7323.  Before  you  can  transfer  files  at  all,  you  must  first establish terminal
  7324.  communication.  But successful terminal connection  does  not  necessarily  mean
  7325.  that  file  transfer  will  also  work.  And even when file transfer seems to be
  7326.  working, things can happen to ruin it.
  7327. -A.1.  Basic Connection Problems
  7328. 0If you have a version of Kermit on your microcomputer, but the  CONNECT  command
  7329.  doesn't seem to work at all, please:
  7330. 0-     Make sure all the required physical connections have been  made  and  have
  7331.        not  wiggled loose.  If you are using a modem, make sure the carrier light
  7332.        is on.
  7333. 0-     If you have more than one connector on your microcomputer, make  sure  you
  7334.        are using the right one.
  7335. 0-     Make sure that the port is set to the right communication speed,  or  baud
  7336.        rate.   Some  versions  of  Kermit  have  a  builtin SET BAUD or SET SPEED
  7337.        command, others require that you set the baud rate using a system  command
  7338.        or  setup  mode  before  you  start  the Kermit program.  Some versions of
  7339.        Kermit have SHOW or STATUS commands that will tell you  what  the  current
  7340.        baud rate is.
  7341. 0-     Make sure that the other communication line parameters, like parity,  bits
  7342.        per character, handshake, and flow control are set correctly.
  7343. 0You may have to consult the appropriate manuals for the systems and equipment in
  7344.  question.
  7345. 0If all settings and connections appear to be correct,  and  communication  still
  7346.  does  not  take  place,  the fault may be in your modem.  Internal modems (i.e.,
  7347.  those that plug  in  to  a  slot  inside  the  microcomputer  chassis)  are  not
  7348.  recommended  for  use  with  Kermit  unless  they totally mimic the asynchronous
  7349.  serial port  hardware  they  purport  to  replace.   Many  microcomputer  Kermit
  7350.  programs  are written to control the communication hardware explicitly; internal
  7351.  modems can interfere with that control.
  7352. 0Even external modems can cause trouble --  the  "smarter"  they  are,  the  more
  7353.  potential  danger  of disagreement between the modem and the microcomputer about
  7354.  settings of baud rate, character framing, echo, and so forth.   Make  sure  your
  7355.  modem is set up correctly.
  7356. -
  7357. -
  7358. -
  7359.                                                Appendix A -- When Things Go Wrong
  7360. 1194                                                 Kermit File Transfer Package
  7361. -
  7362.  A.2.  Terminal Connection Works But The Transfer Won't Start
  7363. 0Once you've made a terminal connection to the remote system, you will  generally
  7364.  also be able to transfer files.  But not always.  If Kermit's terminal emulation
  7365.  seems to work correctly, but a  file  transfer  will  not  start  at  all,  then
  7366.  something  in  the  communication  path  is probably interfering with the packet
  7367.  data.
  7368. 0Kermit normally  expects  to  have  full  control  of  the  communication  port.
  7369.  However,  it  is  sometimes the case that some communications equipment controls
  7370.  the line between the two computers  on  either  end.   In  addition  to  modems,
  7371.  examples  include  port  contention  or  selection  units,  multiplexers,  local
  7372.  networks, and wide-area networks.  Such equipment can interfere with the  Kermit
  7373.  file transfer protocol in various ways:
  7374. 0Parity:
  7375. 0A device can impose parity upon the communication line.  This means that the 8th
  7376.  bit   of  each  character  is  used  by  the  equipment  to  check  for  correct
  7377.  transmission.  Use of parity when Kermit is not expecting it will:
  7378. 0- Cause packet CHECKSUMs to appear  incorrect  to  the  receiver  and  foil  any
  7379.    attempt  at  file transfer.  In most cases, not even the first packet will get
  7380.    through.
  7381. 0- Prevent the use of the 8th bit for binary file data.
  7382. 0If terminal connection works but file transfer does  not,  parity  is  the  most
  7383.  likely culprit.  To overcome this impediment, you should find out what parity is
  7384.  being used, and inform the Kermits on each side (using the SET  PARITY  command)
  7385.  so that they can:
  7386. 0- Compose and interpret the CHECKSUMs correctly.
  7387. 0- Employ a special encoding to allow  8-bit  data  to  pass  through  the  7-bit
  7388.    communication channel.
  7389. 0Many packet-switched networks, such as GTE TELENET, require parity to be set.
  7390. -
  7391. -
  7392. -
  7393. -
  7394. -
  7395. -When Things Go Wrong -- Appendix A
  7396. 1Kermit File Transfer Package                                                 195
  7397. -
  7398.  Echoing:
  7399. 0Some communication processors, typically front ends,  echo  their  input.   When
  7400.  this  happens,  every  Kermit  packet that is sent to it will bounce right back,
  7401.  causing no end of confusion.  Some Kermit programs have been designed to  ignore
  7402.  echoed  packets,  but  most  have not.  If you encounter this problem, there are
  7403.  several possible solutions:
  7404. 0-  Disable the front end echoing by typing  some  special  command,  if  such  a
  7405.     command is provided by the system.
  7406. 0-  Some front ends respond to certain escape or control sequences as commands to
  7407.     turn off echoing, either from that point onward, or else on a per-line basis.
  7408.     In this case, the  appropriate  control  sequence  can  be  inserted  between
  7409.     packets  by  Kermit  programs instructed to do so, for instance using the SET
  7410.     PAD command.
  7411. 0-  If the echoing cannot be disabled, then the two  Kermit  programs  should  be
  7412.     instructed   to   use   differing   packet   start  markers,  using  the  SET
  7413.     START-OF-PACKET command -- for instance, one Kermit uses Control-A as  usual,
  7414.     and  the  other  uses  Control-B.  This can only be done if both Kermits have
  7415.     this SET command.
  7416. -
  7417. -
  7418. -
  7419. -
  7420. -
  7421. -
  7422. -
  7423. -
  7424. -
  7425. -
  7426. -
  7427.                                                Appendix A -- When Things Go Wrong
  7428. 1196                                                 Kermit File Transfer Package
  7429. -
  7430.  A.3.  Special Characters
  7431. 0There is one problem that can prevent a file transfer from starting at  all,  or
  7432.  may  crop  up  after the file transfer is underway.  For instance, during a file
  7433.  transfer operation you might find your smart  modem  suddenly  hanging  up  your
  7434.  current  connection  and  placing  a  call  to Tasmania.  Or you might find that
  7435.  packets  containing  a  certain  character  like  "@"  cannot   be   transmitted
  7436.  successfully.
  7437. 0This is the problem of "special characters."  Some device in  the  communication
  7438.  path  --  a  front  end,  a  port  switcher,  a  multiplexer, a "smart" modem --
  7439.  interprets certain characters in the data stream as commands rather than as data
  7440.  to  be  passed  them along to the other side.  Usually such equipment interferes
  7441.  only with the transmission of ASCII control characters; so long as Control-A and
  7442.  Carriage  Return  --  Kermit's normal packet start and end delimiters -- are not
  7443.  molested, then Kermit can operate.  However, equipment may exist which  swallows
  7444.  even  printable  characters.   Since  Kermit  assumes  that  ALL printable ASCII
  7445.  characters (ASCII 40 through 176, octal) can be transmitted without interference
  7446.  or  modification,  such  equipment  will prevent Kermit file transfer unless its
  7447.  printable-character-swallowing features can be disabled.
  7448. -A.4.  3270 Protocol Emulators
  7449. 0Connections to IBM  mainframes  through  3270  protocol  emulation  hardware  or
  7450.  software  cannot  be  used for file transfer with Kermit or any similar program.
  7451.  Kermit requires an asynchronous  stream  ASCII  telecommunications  environment.
  7452.  3270-style  terminals  operate in a block-mode bisynchronous EBCDIC environment.
  7453.  Protocol converters change the EBCDIC screen data blocks into streams  of  ASCII
  7454.  characters  with  imbedded terminal control sequences.  Packetized file transfer
  7455.  is impossible under these circumstances because the data  is  modified  and  the
  7456.  packet block check invalidated.
  7457. 0The only exception to this rule occurs on IBM mainframes with protocol emulators
  7458.  that  can  be  put  into  transparent mode by a command from the host, and whose
  7459.  Kermit programs have been coded explicitly to do this.  For instance, as of this
  7460.  writing there are IBM mainframe Kermit programs that allow file transfer through
  7461.  the Series/1 or 7171 front ends.
  7462. 0The 3270 macro that the NIH Computer Center has supplied  (in  the  MSKERMIT.INI
  7463.  file) helps users access the NIH protocol conversion facility with the Kermit-MS
  7464.  terminal emulator.  However, Kermit file transfers  are  not  possible  via  the
  7465.  protocol conversion facility.
  7466. -
  7467. -
  7468. -
  7469. -
  7470.  When Things Go Wrong -- Appendix A
  7471. 1Kermit File Transfer Package                                                 197
  7472. -
  7473.  A.5.  The Transfer Starts But Then Gets Stuck
  7474. 0Once a Kermit file transfer has begun, there are certain conditions under  which
  7475.  it  can  become  stuck.   Since  many  hosts  are  capable of generating timeout
  7476.  interrupts when input doesn't appear within  a  reasonable  interval,  they  can
  7477.  resend  unacknowledged packets or request that missing packets be retransmitted.
  7478.  But since not all Kermit programs are capable of timing out, a means for  manual
  7479.  intervention  is  provided in the local Kermit -- you can type a carriage return
  7480.  on the keyboard of most microcomputers to wake up and continue the transfer.
  7481. 0The following sections discuss various reasons why a transfer in progress  could
  7482.  become  stuck.   Before  examining these, first make sure that you really have a
  7483.  Kermit on the other end of  the  line,  and  you  have  issued  the  appropriate
  7484.  command:   SEND,  RECEIVE,  or  SERVER.   If  the  remote  side is not a server,
  7485.  remember that you must connect back between each transfer and issue a  new  SEND
  7486.  or RECEIVE command.
  7487. -A.5.1.  The Microcomputer is Hung
  7488. 0The microcomputer itself sometimes becomes  hung  for  reasons  beyond  Kermit's
  7489.  control, such as power fluctuations.  If the microcomputer's screen has not been
  7490.  updated for a long time, then the microcomputer may be hung.   Try  these  steps
  7491.  (in the following order):
  7492. 0-  Press RETURN to wake the microcomputer up.  This should clear up any protocol
  7493.     deadlock.  Several RETURNs might be necessary.
  7494. 0-  If the problem was not a deadlock, restart Kermit, CONNECT back to the  host,
  7495.     get  back to your job or login again, and restart the transfer.  You may have
  7496.     to exit and reenter Kermit on the remote host.
  7497. -A.5.2.  The Connection is Broken
  7498. 0Check the connection.  Make sure no connectors have  wiggled  loose  from  their
  7499.  sockets.   If  you're  using a modem, make sure you still have a carrier signal.
  7500.  Reestablish your connection if you have to.
  7501. 0If upon reconnection you get no response, maybe the remote host  or  the  remote
  7502.  Kermit  program  crashed.   Get  back  to  command level on the local Kermit (on
  7503.  microcomputer implementations, you may be able to do this by typing  about  five
  7504.  RETURNs, or one or more Control-C's).  Issue the CONNECT command so that you can
  7505.  see what happened.  If the remote system has crashed then you will have to  wait
  7506.  for it to come back, and restart whatever file that was being transferred at the
  7507.  time.
  7508. -
  7509. -
  7510. -
  7511.                                                Appendix A -- When Things Go Wrong
  7512. 1198                                                 Kermit File Transfer Package
  7513. -
  7514. -A.5.3.  The Disk is Full
  7515. 0If your local floppy disk fills up or if files cannot be stored at the host, the
  7516.  Kermit  on  the machine where this occurs will inform you and then terminate the
  7517.  transfer.  You can continue the transfer by repeating the whole procedure either
  7518.  with  a  fresh floppy or after cleaning up your directory.  Some Kermit programs
  7519.  allow you to continue the sequence where it left off.  Some Kermits also have  a
  7520.  feature  that  allows  you to keep incompletely received files; this would allow
  7521.  you go back to the sending system, extract the unsent portion of the  file,  and
  7522.  send  it,  and then append the two received portions together using an editor or
  7523.  other system utility.  Kermit does not  provide  the  ability  to  switch  disks
  7524.  during a file transfer.
  7525. -A.5.4.  Message Interference
  7526. 0You may find that  file  transfers  fail  occasionally  and  upredictably.   One
  7527.  explanation  could  be  that  terminal  messages  are being mixed with your file
  7528.  packet data.  These could include system broadcast  messages  (like  "System  is
  7529.  going  down  in  30  minutes"), messages from other users ("Hi Fred, what's that
  7530.  Kermit program you're always running?"), notifications that you  have  requested
  7531.  ("It's  7:30,  go  home!"   or  "You  have  mail from..."). Most Kermit programs
  7532.  attempt to  disable  intrusive  messages  automatically,  but  not  all  can  be
  7533.  guaranteed  to  do  so.  It may be necessary for you to "turn off" such messages
  7534.  before starting Kermit.
  7535. -A.5.5.  Transmission Delays
  7536. 0Packet transmission can be delayed by  various  agents:   congested  timesharing
  7537.  systems or networks, earth satellites, etc.  When transmission delay exceeds the
  7538.  per-packet timeout interval for a significant length of time, the transfer could
  7539.  fail.   Most  Kermit  programs  provide  commands  that  allow you to adjust the
  7540.  timeout interval  or  the  packet  transmission  retry  threshold  in  order  to
  7541.  accommodate to severe transmission delays.
  7542. -A.5.6.  Noise Corruption
  7543. 0If your connection is extremely noisy, packets  will  become  corrupted  --  and
  7544.  require   retransmission   --  more  often.   The  probability  that  successive
  7545.  retransmissions will fail because of corruption rises with the noise level until
  7546.  it  exceeds  the retry threshold, at which point the file transfer fails.  There
  7547.  are several recourses.  First, try to establish a new connection.   If  that  is
  7548.  impractical,  then use SET commands (when available) to reduce the packet length
  7549.  and increase the retry threshold.  Shorter packets reduce both  the  probability
  7550.  that  a particular packet will be corrupted and the retransmission overhead when
  7551.  corruption does occur, but they also increase the overall protocol overhead.  In
  7552.  a noisy environment, you should also request a higher level of error checking.
  7553. -
  7554. 0When Things Go Wrong -- Appendix A
  7555. 1Kermit File Transfer Package                                                 199
  7556. -
  7557.  A.5.7.  Host Errors
  7558. 0Various error conditions can occur on the remote host  that  could  affect  file
  7559.  transmission.   Whenever  any  such  error  occurs,  the  remote Kermit normally
  7560.  attempts to send an informative error message to the local one, and then  breaks
  7561.  transmission, putting you back at Kermit command level on the local system.
  7562. -A.6.  File is Garbage
  7563. 0There are certain conditions under which Kermit can  believe  it  transferred  a
  7564.  file  correctly  when in fact, it did not.  The most likely cause has to do with
  7565.  the tricky business of file attributes, such  as  text  vs.  binary,  7-bit  vs.
  7566.  8-bit, blocked vs. stream, and so forth.  Each system has its own peculiarities,
  7567.  and each Kermit has special commands to allow you to specify how a  file  should
  7568.  be  sent  or  stored.   However,  these  difficulties  usually crop up only when
  7569.  sending binary files.  Text files should normally present no problem between any
  7570.  two Kermit programs.
  7571. -A.7.  Junk After End of File
  7572. 0When transferring a text file from a microcomputer to a mainframe, sometimes you
  7573.  will  find  extraneous characters at the end of the file after it arrives on the
  7574.  target system.  This is because many microcomputers don't have a consistent  way
  7575.  of  indicating  the end of a file.  CP/M is a good example.  The minimum unit of
  7576.  storage on a CP/M floppy is a "block" of 128 bytes.  Binary files always consist
  7577.  of  a  whole  number of blocks, but a text file can end anywhere within a block.
  7578.  Since CP/M does not record a file's  byte  count,  it  uses  the  convention  of
  7579.  marking  the  end  with  an imbedded Control-Z character.  If your microcomputer
  7580.  version of Kermit is not looking for this character, it  will  send  the  entire
  7581.  last  block,  which may contain arbitrary junk after the "real" end of the file.
  7582.  To circumvent this problem, most microcomputer Kermits have  commands  like  SET
  7583.  FILE  ASCII  or  SET FILE TEXT to instruct Kermit to obey the CTRL-Z convention.
  7584.  Some microcomputer Kermits operate in "text" mode by default, others in "binary"
  7585.  or "block" mode.
  7586. 0To complicate matters, certain software on other microcomputer systems, such  as
  7587.  MS-DOS,  follows the CP/M end-of-file convention.  Under MS-DOS, certain editors
  7588.  and other programs use Control-Z for end-of-file, and  other  programs  do  not.
  7589.  MS-DOS Kermit provides a SET command to choose the desired format.
  7590. -
  7591. -
  7592. -
  7593. -
  7594. -                                              Appendix A -- When Things Go Wrong
  7595. 1200                                                 Kermit File Transfer Package
  7596. -
  7597.  A.8.  Data Set Problems Under TSO
  7598. 0You may get unclear error messages when TSO cannot  find  a  data  set  you  are
  7599.  trying  to  use.   Make  sure  the  data  set  is  cataloged; TSO only processes
  7600.  cataloged data sets.  Make sure the data set conforms to the IBM standard naming
  7601.  conventions  as  described  in  Section  6.1  of this manual.  If you have set a
  7602.  prefix, make sure it is set completely.  A common mistake is to  leave  off  the
  7603.  period separator (e.g., if you have data sets qualified by "ABC", set the prefix
  7604.  to "ABC.", not "ABC").  If the files you  have  sent  to  TSO  are  mysteriously
  7605.  disappearing, you probably forgot to set the volume parameter, which defaults to
  7606.  TMP.  Files on the TMP packs are scratched within days after their creation.
  7607. 0If a file is sent to TSO from Kermit-MS with no error messages, but only part of
  7608.  the  file  is  transferred,  then  the file probably contains one or more Ctrl-Z
  7609.  characters before the real end of file.  To  circumvent  the  problem,  set  the
  7610.  Kermit-MS  EOF  parameter  to  NOCTRL-Z  (see  Section  7.3.6 of this manual for
  7611.  details).
  7612. -
  7613. -
  7614. -
  7615. -
  7616. -
  7617. -
  7618. -
  7619. -
  7620. -
  7621. -
  7622. -
  7623. -
  7624. -When Things Go Wrong -- Appendix A
  7625. 1Kermit File Transfer Package                                                 201
  7626. -Appendix B -- ASCII and EBCDIC Tables
  7627. 0B.1. The ASCII Character Set
  7628. 0There are 128 characters in the ASCII (American Standard  Code  for  Information
  7629.  Interchange) "alphabet".  The characters are listed in order of ASCII value; the
  7630.  columns are labeled as follows:
  7631. 0ASCII Dec       Decimal (base 10) representation.
  7632.  ASCII Oct       Octal (base 8) representation.
  7633.  ASCII Hex       Hexadecimal (base 16) representation.
  7634.  EBCDIC Hex      EBCDIC hexadecimal equivalent for Kermit translate tables.
  7635.  Char            Name or graphical representation of character.
  7636.  Remark          Description of character.
  7637. 0The caret (X) character notation used in the first column in the  remarks  shows
  7638.  the  association  of  control  characters  and capital letters (plus a few other
  7639.  characters).  Each control character is  exactly  64  (decimal)  less  than  the
  7640.  letter  shown.  For example, the ASCII code for "A" is decimal 65; XA is 65-64=1
  7641.  which is the code for SOH.  This notation also indicates a method  for  entering
  7642.  control  characters from the keyboard:  depress the CONTROL key and, while it is
  7643.  held down, type the letter.   Thus,  SOH  is  entered  by  depressing  CTRL  and
  7644.  striking  "A".   Many  computers  which  use   ASCII  for  internal  storage  of
  7645.  characters use this notation for displaying control  characters  which  have  no
  7646.  special significance to it (e.g., XA).
  7647. 0The first group consists of nonprintable control characters:
  7648. 0.....ASCII.... EBCDIC
  7649.  Dec   Oct  Hex  Hex    Char  Remarks
  7650.  000   000   00   00    NUL   X@, Null, Idle
  7651.  001   001   01   01    SOH   XA, Start of heading
  7652.  002   002   02   02    STX   XB, Start of text
  7653.  003   003   03   03    ETX   XC, End of text
  7654.  004   004   04   37    EOT   XD, End of transmission
  7655.  005   005   05   2D    ENQ   XE, Enquiry
  7656.  006   006   06   2E    ACK   XF, Acknowledge
  7657.  007   007   07   2F    BEL   XG, Bell, beep, or fleep
  7658.  008   010   08   16    BS    XH, Backspace
  7659.  009   011   09   05    HT    XI, Horizontal tab
  7660.  010   012   0A   25    LF    XJ, Line feed
  7661.  011   013   0B   0B    VT    XK, Vertical tab
  7662.  012   014   0C   0C    FF    XL, Form feed (top of page)
  7663.  013   015   0D   0D    CR    XM, Carriage return
  7664.  014   016   0E   0E    SO    XN, Shift out
  7665.  015   017   0F   0F    SI    XO, Shift in
  7666.  016   020   10   10    DLE   XP, Data link escape
  7667.  017   021   11   11    DC1   XQ, Device control 1, XON
  7668.  018   022   12   12    DC2   XR, Device control 2
  7669.  019   023   13   35    DC3   XS, Device control 3, XOFF
  7670.  020   024   14   3C    DC4   XT, Device control 4
  7671. -
  7672. -                                           Appendix B -- ASCII and EBCDIC Tables
  7673. 1202                                                 Kermit File Transfer Package
  7674. -.....ASCII.... EBCDIC
  7675.  Dec   Oct  Hex  Hex    Char  Remarks
  7676.  021   025   15   3D    NAK   XU, Negative acknowledge
  7677.  022   026   16   32    SYN   XV, Synchronous idle
  7678.  023   027   17   26    ETB   XW, End of transmission block
  7679.  024   030   18   18    CAN   XX, Cancel
  7680.  025   031   19   19    EM    XY, End of medium
  7681.  026   032   1A   3F    SUB   XZ, Substitute
  7682.  027   033   1B   27    ESC   X[, Escape, prefix, altmode
  7683.  028   034   1C   1C    FS    X\, File separator
  7684.  029   035   1D   1D    GS    X], Group separator
  7685.  030   036   1E   1E    RS    XX, Record separator
  7686.  031   037   1F   1F    US    X_, Unit separator
  7687. 0The  last  four  are  usually associated with the control version of backslash,
  7688.  right square bracket, uparrow (or circumflex),  and  underscore,  respectively,
  7689.  but some terminals do not transmit these control characters.
  7690. 0The following characters are printable:
  7691. 0First, some punctuation characters.
  7692. 0.....ASCII.... EBCDIC
  7693.  Dec   Oct  Hex  Hex    Char  Remarks
  7694.  032   040   20   40    SP    Space, blank
  7695.  033   041   21   5A    !     Exclamation mark
  7696.  034   042   22   7F    "     Doublequote
  7697.  035   043   23   7B    #     Number sign, pound sign
  7698.  036   044   24   5B    $     Dollar sign
  7699.  037   045   25   6C    %     Percent sign
  7700.  038   046   26   50    &     Ampersand
  7701.  039   047   27   7D    '     Apostrophe, accent acute
  7702.  040   050   28   4D    (     Left parenthesis
  7703.  041   051   29   5D    )     Right parenthesis
  7704.  042   052   2A   5C    *     Asterisk, star
  7705.  043   053   2B   4E    +     Plus sign
  7706.  044   054   2C   6B    ,     Comma
  7707.  045   055   2D   60    -     Dash, hyphen, minus sign
  7708.  046   056   2E   4B    .     Period, dot
  7709.  047   057   2F   61    /     Slash
  7710. 0Numeric characters:
  7711. 0.....ASCII.... EBCDIC
  7712.  Dec   Oct  Hex  Hex    Char
  7713.  048   060   30   F0    0
  7714.  049   061   31   F1    1
  7715.  050   062   32   F2    2
  7716.  051   063   33   F3    3
  7717.  052   064   34   F4    4
  7718.  053   065   35   F5    5
  7719.  054   066   36   F6    6
  7720.  055   067   37   F7    7
  7721.  056   070   38   F8    8
  7722.  057   071   39   F9    9
  7723. 0ASCII and EBCDIC Tables -- Appendix B
  7724. 1Kermit File Transfer Package                                                 203
  7725. -More punctuation characters:
  7726. 0.....ASCII.... EBCDIC
  7727.  Dec   Oct  Hex  Hex    Char  Remarks
  7728.  058   072   3A   7A    :     Colon
  7729.  059   073   3B   5E    ;     Semicolon
  7730.  060   074   3C   4C    <     Less than, left angle bracket
  7731.  061   075   3D   7E    =     Equal sign
  7732.  062   076   3E   6E    >     Greater than, right angle bracket
  7733.  063   077   3F   6F    ?     Question mark
  7734.  064   100   40   7C    @     "At" sign
  7735. 0Upper-case alphabetic characters (letters):
  7736. 0.....ASCII.... EBCDIC
  7737.  Dec   Oct  Hex  Hex    Char
  7738.  065   101   41   C1    A
  7739.  066   102   42   C2    B
  7740.  067   103   43   C3    C
  7741.  068   104   44   C4    D
  7742.  069   105   45   C5    E
  7743.  070   106   46   C6    F
  7744.  071   107   47   C7    G
  7745.  072   110   48   C8    H
  7746.  073   111   49   C9    I
  7747.  074   112   4A   D1    J
  7748.  075   113   4B   D2    K
  7749.  076   114   4C   D3    L
  7750.  077   115   4D   D4    M
  7751.  078   116   4E   D5    N
  7752.  079   117   4F   D6    O
  7753.  080   120   50   D7    P
  7754.  081   121   51   D8    Q
  7755.  082   122   52   D9    R
  7756.  083   123   53   E2    S
  7757.  084   124   54   E3    T
  7758.  085   125   55   E4    U
  7759.  086   126   56   E5    V
  7760.  087   127   57   E6    W
  7761.  088   130   58   E7    X
  7762.  089   131   59   E8    Y
  7763.  090   132   5A   E9    Z
  7764. 0More punctuation characters:
  7765. 0.....ASCII.... EBCDIC
  7766.  Dec   Oct  Hex  Hex    Char  Remarks
  7767.  091   133   5B   AD    [     Left square bracket
  7768.  092   134   5C   E0    \     Backslash
  7769.  093   135   5D   BD    ]     Right square bracket
  7770.  094   136   5E   5F    X     Circumflex, up arrow
  7771.  095   137   5F   6D    _     Underscore, left arrow
  7772.  096   140   60   79    `     Accent grave
  7773. -
  7774.                                             Appendix B -- ASCII and EBCDIC Tables
  7775. 1204                                                 Kermit File Transfer Package
  7776. -Lower-case alphabetic characters (letters):
  7777. 0.....ASCII.... EBCDIC
  7778.  Dec   Oct  Hex  Hex    Char
  7779.  097   141   61   81    a
  7780.  098   142   62   82    b
  7781.  099   143   63   83    c
  7782.  100   144   64   84    d
  7783.  101   145   65   85    e
  7784.  102   146   66   86    f
  7785.  103   147   67   87    g
  7786.  104   150   68   88    h
  7787.  105   151   69   89    i
  7788.  106   152   6A   91    j
  7789.  107   153   6B   92    k
  7790.  108   154   6C   93    l
  7791.  109   155   6D   94    m
  7792.  110   156   6E   95    n
  7793.  111   157   6F   96    o
  7794.  112   160   70   97    p
  7795.  113   161   71   98    q
  7796.  114   162   72   99    r
  7797.  115   163   73   A2    s
  7798.  116   164   74   A3    t
  7799.  117   165   75   A4    u
  7800.  118   166   76   A5    v
  7801.  119   167   77   A6    w
  7802.  120   170   78   A7    x
  7803.  121   171   79   A8    y
  7804.  122   172   7A   A9    z
  7805. 0More punctuation characters:
  7806. 0.....ASCII.... EBCDIC
  7807.  Dec   Oct  Hex  Hex    Char  Remarks
  7808.  123   173   7B   8B     $    Left curly brace
  7809.  124   174   7C   4F     |    Vertical bar
  7810.  125   175   7D   9B         Right curly brace
  7811.  126   176   7E   A1     ~    Tilde
  7812. -Finally, one more nonprintable character:
  7813. 0127   177   7F   07    DEL   Delete, rubout
  7814. -
  7815. -
  7816. -
  7817. -
  7818.  ASCII and EBCDIC Tables -- Appendix B
  7819. 1Kermit File Transfer Package                                                 205
  7820. -B.2. ASCII to EBCDIC Translation Table
  7821. 0     (For text data received by TSO Kermit)
  7822. 0How to read the table:  the ASCII hexadecimal representation of the character  P
  7823.  is  50; this character can be found in the table in column 5, row 0.  Below this
  7824.  character you will find the EBCDIC hexadecimal representation that results  from
  7825.  the  translation  of  ASCII  to EBCDIC.  In short, an ASCII 50 (P) is translated
  7826.  into an EBCDIC D7.  The meanings of the two and three letter codes  (e.g.,  SOH)
  7827.  can  be  found  in the remarks section of the table in Section B.1.  - the ASCII
  7828.  Character Set.
  7829. 0Notes: (1) ASCII characters with their 8th bit on are translated as if their 8th
  7830.             bit were off.  For example, hex B1 is translated like hex 31 (ASCII 1
  7831.             - hex B1 without the 8th bit on) to hex F1 (EBCDIC 1).
  7832. 0       (2) Hex 5E (ASCII X) translates to hex 5F (EBCDIC ^).
  7833. -
  7834. -
  7835. -
  7836. -
  7837. -
  7838. -
  7839. -
  7840. -
  7841. -
  7842. -
  7843. -
  7844. -
  7845. -
  7846.                                             Appendix B -- ASCII and EBCDIC Tables
  7847. 1206                                                 Kermit File Transfer Package
  7848. -    ASCII to EBCDIC Translation Table
  7849. 0              First Digit
  7850.        0   1   2   3   4   5   6   7
  7851.     +----+---+---+---+---+---+---+----+
  7852.    0| NUL DLE SP   0   @   P   `   p  |0
  7853.     | 00  10  40  F0  7C  D7  79  97  |
  7854.     |                                 |
  7855.    1| SOH DC1  !   1   A   Q   a   q  |1
  7856.     | 01  11  5A  F1  C1  D8  81  98  |
  7857.     |                                 |
  7858.    2| STX DC2  "   2   B   R   b   r  |2
  7859.     | 02  12  7F  F2  C2  D9  82  99  |
  7860.     |                                 |
  7861.  S 3| ETX DC3  #   3   C   S   c   s  |3 S
  7862.     | 03  35  7B  F3  C3  E2  83  A2  |
  7863.  e  |                                 |  e
  7864.    4| EOT DC4  $   4   D   T   d   t  |4
  7865.  c  | 37  3C  5B  F4  C4  E3  84  A3  |  c
  7866.     |                                 |
  7867.  o 5| ENQ NAK  %   5   E   U   e   u  |5 o
  7868.     | 2D  3D  6C  F5  C5  E4  85  A4  |
  7869.  n  |                                 |  n
  7870.    6| ACK SYN  &   6   F   V   f   v  |6
  7871.  d  | 2E  32  50  F6  C6  E5  86  A5  |  d
  7872.     |                                 |
  7873.    7| BEL ETB  '   7   G   W   g   w  |7
  7874.     | 2F  26  7D  F7  C7  E6  87  A6  |
  7875.  D  |                                 |  D
  7876.    8| BS  CAN  (   8   H   X   h   x  |8
  7877.  i  | 16  18  4D  F8  C8  E7  88  A7  |  i
  7878.     |                                 |
  7879.  g 9| HT  EM   )   9   I   Y   i   y  |9 g
  7880.     | 05  19  5D  F9  C9  E8  89  A8  |
  7881.  i  |                                 |  i
  7882.    A| LF  SUB  *   :   J   Z   j   z  |A
  7883.  t  | 25  3F  5C  7A  D1  E9  91  A9  |  t
  7884.     |                                 |
  7885.    B| VT  ESC  +   ;   K   [   k   $  |B
  7886.     | 0B  27  4E  5E  D2  AD  92  8B  |
  7887.     |                                 |
  7888.    C| FF  FS   ,   <   L   \   l   |  |C
  7889.     | 0C  1C  6B  4C  D3  E0  93  4F  |
  7890.     |                                 |
  7891.    D| CR  GS   -   =   M   ]   m     |D
  7892.     | 0D  1D  60  7E  D4  BD  94  9B  |
  7893.     |                                 |
  7894.    E| SO  RS   .   >   N   X   n   ~  |E
  7895.     | 0E  1E  4B  6E  D5  5F  95  A1  |
  7896.     |                                 |
  7897.    F| SI  US   /   ?   O   _   o  DEL |F
  7898.     | 0F  1F  61  6F  D6  6D  96  07  |
  7899.     +----+---+---+---+---+---+---+----+
  7900.        0   1   2   3   4   5   6   7
  7901.                First Digit
  7902. 0ASCII and EBCDIC Tables -- Appendix B
  7903. 1Kermit File Transfer Package                                                 207
  7904. -B.3. EBCDIC to ASCII Translation Table
  7905. 0       (For text data sent by TSO Kermit)
  7906. 0How to read the table:  the EBCDIC hexadecimal representation of the character 9
  7907.  is  F9; this character can be found in the table in column F, row 9.  Below this
  7908.  character you will find the ASCII hexadecimal representation that  results  from
  7909.  the translation from EBCDIC to ASCII.  In short, an EBCDIC F9 is translated into
  7910.  an ASCII 39.  The meanings of the two and three letter codes (e.g., SOH) can  be
  7911.  found in the remarks section of the table in Section B.1.  - the ASCII Character
  7912.  Set.
  7913. 0Notes: (1) Hex 33 and 37 both translate  to  hex  04  (ASCII  EOT),  37  is  the
  7914.             preferred code.
  7915. 0       (2) Hex 5F (EBCDIC ^) and BE (EBCDIC X) both translate to hex  5E  (ASCII
  7916.             X).   For  received  data,  hex  5E (ASCII X) is translated to hex 5F
  7917.             (EBCDIC ^).
  7918. 0       (3) Hex 8B and C0 both translate to hex 7B (ASCII $).  For received data,
  7919.             hex 7B (ASCII $) is translated to hex 8B.
  7920. 0       (4) Hex 9B and D0 both translate to hex 7D (ASCII ).  For received data,
  7921.             hex 7D (ASCII ) is translated to hex 9B.
  7922. 0       (5) Hex 60 (EBCDIC -) and 62 (WYLBUR inserted hyphen) both  translate  to
  7923.             hex  2D  (ASCII -).  For received data hex 2D (ASCII -) is translated
  7924.             to hex 60 (EBCDIC -).
  7925. 0       (6) EBCDIC characters not shown are translated to hex 3A (ASCII :).
  7926. -
  7927. -
  7928. -
  7929. -
  7930. -
  7931. -
  7932. -
  7933. -
  7934. -                                           Appendix B -- ASCII and EBCDIC Tables
  7935. 1208                                                 Kermit File Transfer Package
  7936. -                    EBCDIC to ASCII Translation Table
  7937. 0                               First Digit
  7938.        0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F
  7939.     +----+---+---+---+---+---+---+---+---+---+---+---+---+---+---+----+
  7940.    0| NUL DLE         SP   &   -                       $      \   0  |0
  7941.     | 00  10          20  26  2D                      7B  7D  5C  30  |
  7942.     |                                                                 |
  7943.    1| SOH DC1                  /       a   j   ~       A   J       1  |1
  7944.     | 01  11                  2F      61  6A  7E      41  4A      31  |
  7945.     |                                                                 |
  7946.    2| STX DC2     SYN          -       b   k   s       B   K   S   2  |2
  7947.     | 02  12      16          2D      62  6B  73      42  4B  53  32  |
  7948.     |                                                                 |
  7949.  S 3| ETX         EOT                  c   l   t       C   L   T   3  |3 S
  7950.     | 03          04                  63  6C  74      43  4C  54  33  |
  7951.  e  |                                                                 |  e
  7952.    4|                                  d   m   u       D   M   U   4  |4
  7953.  c  |                                 64  6D  75      44  4D  55  34  |  c
  7954.     |                                                                 |
  7955.  o 5| HT      LF  DC3                  e   n   v       E   N   V   5  |5 o
  7956.     | 09      0A  13                  65  6E  76      45  4E  56  35  |
  7957.  n  |                                                                 |  n
  7958.    6|     BS  ETB                      f   o   w       F   O   W   6  |6
  7959.  d  |     08  17                      66  6F  77      46  4F  57  36  |  d
  7960.     |                                                                 |
  7961.    7| DEL     ESC EOT                  g   p   x       G   P   X   7  |7
  7962.     | 7F      1B  04                  67  70  78      47  50  58  37  |
  7963.  D  |                                                                 |  D
  7964.    8|     CAN                          h   q   y       H   Q   Y   8  |8
  7965.  i  |     18                          68  71  79      48  51  59  38  |  i
  7966.     |                                                                 |
  7967.  g 9|     EM                       `   i   r   z       I   R   Z   9  |9 g
  7968.     |     19                      60  69  72  7A      49  52  5A  39  |
  7969.  i  |                                                                 |  i
  7970.    A|                      !       :                                  |A
  7971.  t  |                     21      3A                                  |  t
  7972.     |                                                                 |
  7973.    B| VT               .   $   ,   #   $                             |B
  7974.     | 0B              2E  24  2C  23  7B  7D                          |
  7975.     |                                                                 |
  7976.    C| FF  FS      DC4  <   *   %   @                                  |C
  7977.     | 0C  1C      14  3C  2A  25  40                                  |
  7978.     |                                                                 |
  7979.    D| CR  GS  ENQ NAK  (   )   _   '           [   ]                  |D
  7980.     | 0D  1D  05  15  28  29  5F  27          5B  5D                  |
  7981.     |                                                                 |
  7982.    E| SO  RS  ACK      +   ;   >   =               X                  |E
  7983.     | 0E  1E  06      2B  3B  3E  3D              5E                  |
  7984.     |                                                                 |
  7985.    F| SI  US  BEL SUB  |   ^   ?   "                                  |F
  7986.     | 0F  1F  07  1A  7C  5E  3F  22                                  |
  7987.     +----+---+---+---+---+---+---+---+---+---+---+---+---+---+---+----+
  7988.        0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F
  7989.                                 First Digit
  7990. 0ASCII and EBCDIC Tables -- Appendix B
  7991. 1Kermit File Transfer Package                                                 209
  7992. -
  7993.  Appendix C -- Microcomputer to Microcomputer File Transfer
  7994. 0This appendix is provided as a courtesy, the methods  and  techniques  presented
  7995.  are not supported by the NIH Computer Center.
  7996. 0This section explains to the novice user how to get  KERMIT  to  transfer  files
  7997.  between  microcomputers.   It  is  useful  to  those  who  are  in the difficult
  7998.  situation of needing to  send  information  between  incompatible  microcomputer
  7999.  systems,  either directly or across telephone lines.  This section is taken from
  8000.  "How to Use Kermit for Transferring Files Between Microcomputers:  CP/M  and  MS
  8001.  DOS  Systems"  by  Norman  Weatherby,  Ph.D.,  Center  for Population and Family
  8002.  Health, Columbia University.
  8003. -C.1.  Getting Ready to Use Kermit
  8004. 0You will need the following items in order to use  KERMIT  for  file  transfers.
  8005.  The  only real problem is given last--determining what kind of cable(s) you will
  8006.  need for the systems.
  8007. 0     1. Two microcomputers.  It is best if each one has two or more disk drives.
  8008.          Each one should have a serial port that can be used with a modem.
  8009. 0        Each microcomputer system should have a DTE  (Data  Terminal  Equipment)
  8010.          port on an asynchronous communications adapter (the serial port), called
  8011.          COM1:  or COM2:  on IBM  PC-compatible  systems.   Perhaps  there  is  a
  8012.          serial  port,  but  it  is used to send information to a serial printer.
  8013.          Nearly all serial ports on IBM PCs and compatibles are DTE, however, the
  8014.          port may be a DCE (Data Communication Equipment) port.  Using a DCE port
  8015.          will not cause problems if you have the correct cable.   Note  that  the
  8016.          IBM  PC  dot  matrix  printer  is  a  parallel  printer and not a serial
  8017.          printer.  Never connect a modem or other serial device to  the  parallel
  8018.          port  used  for the parallel printer, even though it may appear that the
  8019.          cable will plug into the connection.
  8020. 0     2. If the  two  microcomputers  are  nearby  each  other,  modems  are  not
  8021.          necessary.   If  you  are going to transfer files across telephone lines
  8022.          two full duplex modems are required such as the Hayes Smartmodem 2400 or
  8023.          the AT&T 2224B.  You should be able to set at least one of the modems to
  8024.          automatic answer mode.  File transfers work well but slowly at 300  bits
  8025.          per  second (around 30 characters per second), so it is best to have two
  8026.          1200 or 2400 bits per second modems.
  8027. 0     3. A copy of Kermit for each computer.
  8028. -
  8029. -
  8030. -
  8031. -                      Appendix C -- Microcomputer to Microcomputer File Transfer
  8032. 1210                                                 Kermit File Transfer Package
  8033. -
  8034.       4. The right cable(s).  You should be able to  plug  in  the  ends  of  the
  8035.          cable(s)  to  the  equipment that you are using.  For a connection using
  8036.          DTE ports and modems, or a DTE and a DCE port, at least pins  1  through
  8037.          8, 20, and 22 should be connected.  Do not "jumper" or short-circuit any
  8038.          pins in the cable.  For a direct connection, without modems and  with  2
  8039.          DTE  or DCE ports, a "null modem" cable will be necessary.  Wiring for a
  8040.          null modem may be done as shown:
  8041. 0          Pin to Pin
  8042. +          __________
  8043.            1    -   1
  8044.            2    -   3
  8045.            3    -   2
  8046.          5,6,8  -  20
  8047.           20    - 5,6,8
  8048.            7    -   7
  8049. 0              or
  8050. -          1    -   1
  8051.            2    -   3
  8052.            3    -   2
  8053.            6,8  -  20
  8054.           20    - 6,8
  8055.            7    -   7
  8056.          4&5 jumpered at each end
  8057. -IF YOU ARE DIRECTLY CONNECTING THE COMPUTERS:
  8058. 0     a. Do not use a null modem cable if you are connecting a modem  (DTE)  port
  8059.          on one system to a printer (DCE) port on the other system.
  8060. 0     b. Use a null modem cable if you are connecting a modem (DTE) port  on  one
  8061.          system  to  a  modem  (DTE)  port  on  the  other  system, or if you are
  8062.          connecting a printer (DCE) port on one system to a printer (DCE) port on
  8063.          the other system.
  8064. -IF YOU ARE USING MODEMS TO COMMUNICATE THROUGH TELEPHONE LINES:
  8065. 0For each system,
  8066. 0     a. Do not use a null modem cable if you are connecting a modem  (DTE)  port
  8067.          to the modem.
  8068. 0     b. Use a null modem cable if you are connecting a printer (DCE) port to the
  8069.          modem.
  8070. -
  8071. -
  8072. 0Microcomputer to Microcomputer File Transfer -- Appendix C
  8073. 1Kermit File Transfer Package                                                 211
  8074. -
  8075.  C.2.  Connecting the Computers
  8076. 0IF YOU ARE GOING TO USE MODEMS:
  8077. 0Use the correct cable to hook up a full duplex modem to each  computer's  serial
  8078.  communications port.
  8079. -IF YOU ARE GOING TO DIRECTLY CONNECT THE COMPUTERS:
  8080. 0     a. Directly connect the serial modem ports of the two machines.
  8081. 0                               OR
  8082. 0     b. Directly connect the serial modem port of one  computer  to  the  serial
  8083.          (not parallel) printer port of the other computer.
  8084. 0One benefit of using a direct connection between the computers is that  you  can
  8085.  use high speeds, such as 9600 bits per second, to transfer the files.  Since you
  8086.  are not using modems and telephones, ignore  the  parts  of  this  section  that
  8087.  concern use of the modems and dialing of the telephone.
  8088. -LOADING KERMIT INTO MEMORY:
  8089. 0Start Kermit on each machine.
  8090. -SETTING KERMIT'S OPTIONS
  8091. 0To see the options that are available in your version of  KERMIT,  type  at  the
  8092.  prompt the command
  8093. 0status<cr> or show<cr>
  8094. 0Note that the toggle command SET  IBM  (set  on  or  off)  is  NOT  FOR  IBM  PC
  8095.  MICROCOMPUTERS--it  is a command for IBM VM/CMS mainframes and it is not used at
  8096.  all at NIH.
  8097. -SETTING THE PARITY:
  8098. 0A computer "byte" is composed of eight bits, where each bit is a  zero  or  one.
  8099.  All  (English) printable letters, numbers, punctuation marks, and spaces between
  8100.  words can be represented by seven of the eight bits.  Sometimes the  eighth  bit
  8101.  is  used as a parity bit for checking to make sure that the other seven bits are
  8102.  correct.  However, some microcomputer software packages (such as  WordStar)  use
  8103.  the  eighth  bit  for  special  characters  that  allow  features  such as right
  8104.  justification.  In any event, if both computers  allow  the  following  command,
  8105.  issue it to allow the transmission of all eight bits:
  8106. 0set parity none<cr>
  8107. -
  8108.                        Appendix C -- Microcomputer to Microcomputer File Transfer
  8109. 1212                                                 Kermit File Transfer Package
  8110. -
  8111.  SETTING THE SPEED
  8112. 0If you can set the speed from within KERMIT, make the  communication  speeds  of
  8113.  both computers equal by typing at the prompt the command
  8114. 0SET SPEED ?
  8115. 0and select the correct speed from a menu that is given on the screen.   Then  go
  8116.  to  the  portion of this section that discusses communicating between computers.
  8117.  For a direct connection, the correct  speed  is  the  highest  speed  that  both
  8118.  computers  can handle.  For a modem connection, the correct speed is the highest
  8119.  speed supported by both computers and modems.
  8120. 0If you get messages that the SET SPEED command is not implemented, you will have
  8121.  to get out of Kermit and set it from your operating system, as discussed below.
  8122. 0Note that a faster way to set the speed is to type
  8123. 0SET SPEED XXXX<cr>
  8124. 0where xxxx is the speed you want.
  8125. 0If you cannot set the speed from within  KERMIT,  such  as  on  Heath/Zenith  89
  8126.  systems,  then  you  can  get  back  to  your operating system by typing, at the
  8127.  prompt,
  8128. 0QUIT<cr>
  8129. 0Then use the computer's software to set the speed of the serial  port  to  which
  8130.  the  cable  is  attached.   Refer to the specific section in this manual for the
  8131.  type of computer you are running Kermit on.
  8132. -
  8133. -
  8134. -
  8135. -
  8136. -
  8137. -
  8138. -
  8139. -
  8140.  Microcomputer to Microcomputer File Transfer -- Appendix C
  8141. 1Kermit File Transfer Package                                                 213
  8142. -
  8143.  C.3.  Communicating Between Computers
  8144. 0After Kermit is loaded into the memory of each computer,  and  its  options  are
  8145.  set, type at the prompt the command
  8146. 0CONNECT<cr>
  8147. 0on each computer.  This will put you into the connect  mode,  which  allows  one
  8148.  computer  operator  to send messages to the other operator through the modems or
  8149.  the direct connection.  Note that KERMIT replies with an "escape"  message  that
  8150.  tells you how to get back to the command state of the program.
  8151. 0In fact, it is a good idea to test the command now.  The way you get back to the
  8152.  Kermit prompt varies by the type of system.  Note that you may have to issue the
  8153.  command but add a C (upper or lower case) to  it  to  get  back  to  the  Kermit
  8154.  prompt.  On MS-DOS systems the command is:
  8155. 0X]c
  8156. 0After some experimentation, you will see the Kermit prompt, and  you  can  again
  8157.  type the command:
  8158. 0CONNECT<cr> .
  8159. 0IF YOU ARE USING MODEMS:
  8160. 0From  the  originate  modem,  dial  the  answering  modem.   If   you   have   a
  8161.  Hayes-compatible  auto-dial  modem,  you  can issue the dial command to it.  For
  8162.  example, with a touch tone telephones and a Hayes Smartmodem, the  only  command
  8163.  that is necessary for the originate modem is
  8164. 0ATDTxxxxxxx<cr>
  8165. 0where ATDT is in capital letters and xxxxxxx is the telephone  number  to  dial.
  8166.  The answering Smartmodem should be issued the command
  8167. 0ATA<cr>
  8168. 0if it does not automatically answer the phone.
  8169. -IF YOU ARE USING MODEMS OR A DIRECT CONNECTION:
  8170. 0When the connection is made, each of you  will  be  able  to  send  and  receive
  8171.  messages that serve to test the connection.
  8172. 0If you want to see what you are typing, get back to the KERMIT prompt by  typing
  8173.  the  "escape"  command  that  you  wrote  down and tested above.  Then issue the
  8174.  command
  8175. 0SET LOCAL-ECHO ON<cr>
  8176. -
  8177. 0                      Appendix C -- Microcomputer to Microcomputer File Transfer
  8178. 1214                                                 Kermit File Transfer Package
  8179. -
  8180.  If the connection is not made, so that it is not possible to  send  AND  receive
  8181.  messages, then you should check
  8182. 0     the speeds of the computers
  8183.       the modems, and the wiring to the modems
  8184.       or the wiring between the directly-connected
  8185.       computers.
  8186. 0Make sure that the computer is sending or receiving data to the correct port  on
  8187.  the computer.  It is also helpful, as a last resort, to check whether or not the
  8188.  telephone is working.
  8189. -
  8190. -
  8191. -
  8192. -
  8193. -
  8194. -
  8195. -
  8196. -
  8197. -
  8198. -
  8199. -
  8200. -
  8201. -
  8202. -
  8203. -Microcomputer to Microcomputer File Transfer -- Appendix C
  8204. 1Kermit File Transfer Package                                                 215
  8205. -
  8206.  C.4.  Sending and Receiving Files
  8207. 0When each computer operator is satisfied that a connection has been  made,  then
  8208.  both operators return to the Kermit prompt, as explained above.
  8209. 0The operator that wants to receive a file types
  8210. 0RECEIVE<cr>
  8211. 0The file name will be sent from the other system.
  8212. 0The operator that wants to send a file types the command
  8213. 0SEND [drive:]filename.ext<cr>
  8214. 0For example, to send the file on disk B that is named  myfile.txt,  the  sending
  8215.  operator would type
  8216. 0SEND b:myfile.txt<cr>
  8217. 0It is not necessary to type in the drive specification if it is the same as your
  8218.  default  disk  drive, but it is always safe to do so.  If the receiving operator
  8219.  hits the return after the sending operator hits the return, it may be  necessary
  8220.  for the receiving operator to hit another return before the file will be sent.
  8221. 0KERMIT will wait for a few seconds, and then the operators  will  see  on  their
  8222.  screens  that  packets of information are being sent and received.  Kermit first
  8223.  sends the file name, and it is a good sign to the receiving  operator  when  the
  8224.  file name appears on his or her screen.  The number of packets will increment on
  8225.  both machines until the transfer is complete, and then each computer will return
  8226.  to  the  Kermit prompt.  At that time, the receiving operator can check the file
  8227.  or another file can be sent.
  8228. -CHECKING WHAT WAS SENT
  8229. 0Once a connection has been established with KERMIT, it is not broken if  one  or
  8230.  both of the operators return to the operating system of their computers to check
  8231.  something such as the length or name of  a  file.   Thus,  when  a  transfer  is
  8232.  complete, the receiving operator can get out of Kermit by typing
  8233. 0EXIT<cr>
  8234. 0at the Kermit prompt.  The file that was received can be  examined,  usually  by
  8235.  issuing the command
  8236. 0TYPE [drive:]filename.ext<cr>
  8237. 0The file will scroll by on the screen,  and  you  will  see  that  it  has  been
  8238.  transferred without error!
  8239. -
  8240. -                      Appendix C -- Microcomputer to Microcomputer File Transfer
  8241. 1216                                                 Kermit File Transfer Package
  8242. -
  8243.  The receiving operator can then return to Kermit (e.g., X]C).  If you  need  to,
  8244.  reset  the  speed  and the parity, and you will then be able to transfer another
  8245.  file or get into connect mode and send messages.
  8246. -
  8247. -
  8248. -
  8249. -
  8250. -
  8251. -
  8252. -
  8253. -
  8254. -
  8255. -
  8256. -
  8257. -
  8258. -
  8259. -
  8260. -
  8261. -
  8262. -
  8263. 0Microcomputer to Microcomputer File Transfer -- Appendix C
  8264. 1Kermit File Transfer Package                                                 217
  8265. -
  8266.  C.5.  Figuring Out Why (If) Kermit Does Not Work
  8267. 0KERMIT is very reliable.  It accurately transfers files even when the  telephone
  8268.  line is unusable for voice transmissions because of static and noise.
  8269. 0Operators do, however, tend to make mistakes.  One such problem  is  impatience.
  8270.  Please  let  Kermit wait for a few seconds before you touch a carriage return on
  8271.  the receiving computer to "make it work."  If Kermit  seems  to  be  dead  after
  8272.  about  thirty  seconds of waiting, then something is wrong.  If you were able to
  8273.  send messages back and forth in connect mode, or if Kermit fails after the first
  8274.  four or five packets, then probably the problem is that the file that you wanted
  8275.  to send does not exist, or the sending operator misspelled its name in the  send
  8276.  command.
  8277. 0Occasionally, Kermit will fail for reasons beyond  its  control.   The  transfer
  8278.  will  fail  if  one of the computers involved goes down.  A feature such as call
  8279.  waiting or intercom messages on a telephone line will stop the  transmission  if
  8280.  they  happen during a transfer.  These failures are advantages in that they show
  8281.  that Kermit is smart enough to quit when there is a major problem.
  8282. -
  8283. -
  8284. -
  8285. -
  8286. -
  8287. -
  8288. -
  8289. -
  8290. -
  8291. -
  8292. -
  8293. -
  8294.                        Appendix C -- Microcomputer to Microcomputer File Transfer
  8295. 1218                                                 Kermit File Transfer Package
  8296. -
  8297. -
  8298. -
  8299. -
  8300. -
  8301. -
  8302. -
  8303. -
  8304. -
  8305. -
  8306. -
  8307. -
  8308. -
  8309. -
  8310. -
  8311. -
  8312. -
  8313. -
  8314. -
  8315. 0Microcomputer to Microcomputer File Transfer -- Appendix C
  8316. 1DOCUMENT COMMENT SHEET
  8317. 0Is the Kermit File Transfer Package manual
  8318. 0                                              YES   NO
  8319. 0Clear?                                        ___   ___
  8320.  Well Organized?                               ___   ___
  8321.  Complete?                                     ___   ___
  8322.  Accurate?                                     ___   ___
  8323.  Suitable for the beginner?                    ___   ___
  8324.  Suitable for advanced user?                   ___   ___
  8325. -Comments:_____________________________________________________
  8326. 0______________________________________________________________
  8327. 0______________________________________________________________
  8328. 0______________________________________________________________
  8329. 0______________________________________________________________
  8330. 0______________________________________________________________
  8331. 0______________________________________________________________
  8332. 0______________________________________________________________
  8333. 0______________________________________________________________
  8334. 0______________________________________________________________
  8335. 0______________________________________________________________
  8336. 0______________________________________________________________
  8337. 0______________________________________________________________
  8338. 0______________________________________________________________
  8339. 0______________________________________________________________
  8340. -Please give page references where appropriate.  If you wish a
  8341.  reply, include your name and mailing address.
  8342. -                   Send to:  NIH
  8343.                               DCRT
  8344.                               Computer Center
  8345.                               Technical Information Office
  8346.                               Building 12A, Room 1017
  8347.                               Bethesda, Maryland  20892
  8348. 1
  8349.