home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / g / gt1700-6.zip / PCKERMIT.TXT < prev    next >
Text File  |  1986-08-23  |  22KB  |  521 lines

  1. PCKERMIT.HLP                                            Jan. 16, 1985
  2.  
  3. PC-DOS Kermit with Sliding Windows                      Rev 1.18
  4. ----------------------------------                      12/10/85
  5.  
  6. PCKERMIT.EXE USER GUIDE
  7. =======================
  8.  
  9. Introduction
  10. ------------
  11.  
  12. PCKERMIT version 1.18 is the first implementation of the "Sliding Window
  13. Extension" to Kermit (the extension is popularly called SuperKermit).  This
  14. extension allows data packets to be sent continuosly under most conditions,
  15. unlike "Kermit Classic" or XMODEM, both of which must wait for the other
  16. side to return an acknowledgment after each data packet has been sent.
  17.  
  18. This continuous transmission of data is especially helpful when there are
  19. delays in the communications path, such as via satelite transmission or
  20. over the public data networks (Telenet, Uninet, Tymnet, etc).
  21.  
  22.  
  23. NOT A TERMINAL PROGRAM
  24. ----------------------
  25.  
  26. PCKERMIT.EXE is not a terminal program.  It simply implements the Kermit
  27. protocol, including the sliding window extension.  It will work with
  28. older "Kermit Classic" implemenations as well, via automatic negotiation
  29. between the two Kermit programs.
  30.  
  31. PCKERMIT.EXE runs as a "one-shot" execution then returns to the caller.  A
  32. single file or multiple files (wildcard filename) are transferred until
  33. execution is completed or the transfer is abnormally aborted.  If execution
  34. is performed by the user from the DOS command line, termination of PCKERMIT
  35. returns control to PC-DOS.
  36.  
  37.  
  38. USE OF PCKERMIT.EXE
  39. -------------------
  40.  
  41. PCKERMIT does not establish a carrier with a remote system.  The connection
  42. must be established using a separate terminal program, and the remote
  43. Kermit selected using the separate terminal program.
  44.  
  45. Then you return to the MSDOS prompt and start PCKERMIT for the actual file
  46. transfer.
  47.  
  48. Here is a sample transfer taken from my screen, receiving a file using
  49. parity of mark.  (The file was being sent from The Source.)
  50.  
  51. ---------------Start of example------------------
  52.  
  53. {On The Source}
  54.  
  55. -> kermit -s l-steve.txt               {send me the file "l-steve.txt"}
  56. Kermit send started
  57.  
  58. {Exit from my terminal package to MS-DOS}
  59.  
  60. A:\>PCKERMIT -P M -R
  61. NSF
  62. L-STEVE.TXT => L-STEVE.TXT
  63. CTRL-F to cancel File,  CTRL-R to Resend current packet
  64. CTRL-B to cancel Batch, CTRL-K to abort Kermit and exit
  65. CTRL-A for status report: A
  66. File creation date: 12/18/85 - 14:17:16
  67.  
  68. File size (bytes): 1132
  69. ....Z [OK]B                            {Dots .... are put up for every 4th
  70.                                         packet received.  Z indicates the
  71.                                         end-of-file packet.  [OK] means the
  72.                                         file was received and written to
  73.                                         disk OK.  B indicates the end-of-
  74.                                         batch packet, the conclusion of the
  75.                                         transfer}
  76.  
  77. A:\>                                   {Back to MSDOS}
  78.  
  79. {Start my terminal program again}
  80.  
  81.  
  82. ---------------End of example--------------------
  83.  
  84.  
  85. The command syntax of the stand-alone Kermit program is shown in Figure 1.
  86. Here are examples of execution from the DOS command line:
  87.  
  88. PCKERMIT
  89.    or
  90. PCKERMIT -H               Help: Will give you the screen of figure 1 below
  91.  
  92. PCKERMIT -R               Receive: Will receive a file using the PCKERMIT
  93.                           defaults of 1200 baud, parity none, on COM1.
  94.  
  95. PCKERMIT -S FILENAME.EXT  Send: Will send a file using the PCKERMIT
  96.                           defaults of 1200 baud, parity none, on COM1.
  97.  
  98.  
  99. PCKERMIT -R -P M          Receive: Will receive a file using Parity Mark
  100.  
  101.  
  102. PCKERMIT -L COM2 -B 2400 -P M -R
  103.  
  104.                           This will use serial line COM2 at 2400 baud and
  105.                           parity of mark to receive a file.
  106.  
  107. Upper or lower case does not matter; neither does the order of the options
  108. (i.e., PCKERMIT -R -P M  will do the same thing as PCKERMIT -P M -R)
  109.  
  110.  
  111.  
  112. --------------Start of Figure 1-------------------------------------------
  113.  
  114. Figure 1. PCKERMIT command syntax.
  115.  
  116.   PCKERMIT version 1.18, December 10, 1985
  117.   Usage: PCKERMIT [-x arg [-x arg]...[-yyy]..]]
  118.   x is an option that requires an argument, y an option with no argument:
  119.      -s file(s)   send
  120.      -r           receive
  121.      -a name      alternate name, used with -s, -r
  122.      -h           help - print this message
  123.   settings --                                                        default
  124.      -l line      communication line device ( COM1, COM2 )            [COM1]
  125.      -b baud      line speed, e.g. 1200                               [1200]
  126.      -p x         parity, x is one of e,o,m,s,n                        [N]
  127.      -m size      maximum window size to use ( <= 31 )                 [31]
  128.      -n           non binary file transfer, affect CR/LF
  129.      -t           line turnaround handshake = xon, half duplex
  130.      -w           write over preexisting files
  131.      -q           be quiet during file transfer
  132.      -c           carrier detect signal required to be present
  133.  
  134.  
  135. Note 1:  If -t is used, -m should not be used.
  136.  
  137. Note 2:  The usage of -w is reversed from standard Columbia CKERMIT.
  138.  
  139.  
  140. --------------End of Figure 1---------------------------------------------
  141.  
  142.  
  143.  
  144. USE OF BATCH FILES
  145. ------------------
  146.  
  147. Two small batch files can greatly simplify use of PCKERMIT:
  148.  
  149.  
  150. SEND.BAT would look like this using Mark parity at 1200 baud on COM1:
  151.  
  152. PCKERMIT -P M -S %1
  153.  
  154.  
  155. REC.BAT would look like this using Mark parity at 1200 baud on COM1:
  156.  
  157. PCKERMIT -P M -R
  158.  
  159. This makes it easy to send a file by just typing
  160.  
  161. SEND filename.ext
  162.  
  163. and receive a file by typing
  164.  
  165. REC
  166.  
  167. at the MSDOS prompt.  Change the PCKERMIT command line to reflect your
  168. communications setup (add -B 300 for 300 baud, etc.).
  169.  
  170. You could include the name of your terminal software at the end of the
  171. batch file so you went directly back to your terminal software when
  172. finished with the transfer.
  173.  
  174.  
  175. CHARACTERS DISPLAYED DURING TRANSFER
  176. ------------------------------------
  177.  
  178. During operation of the standalone PCKERMIT it
  179. may display the following:
  180.  
  181.     %   Resend of last packet
  182.     .   Is printed every FOURTH data packet
  183.     A   Attributes packet (file length and creation date)
  184.     B   End of transmission packet
  185.     F   File Header
  186.     N   NAK packet
  187.     Q   Bad checksum or other packet error
  188.     S   Send-Init packet
  189.     T   Timeout
  190.     Z   End of file packet
  191.  
  192.  
  193. KEYBOARD INTERRUPTS
  194. -------------------
  195.  
  196. During a file transfer PCKERMIT responds (sometimes slowly) to
  197. the following keystrokes:
  198.  
  199. CTRL-F to cancel File,  CTRL-R to Resend current packet .
  200. CTRL-B to cancel Batch, CTRL-K to abort Kermit and exit
  201. CTRL-A for status report:
  202.  
  203. These functions are available even at the start of PCKERMIT before it
  204. tells you they are available.  In particular, Control-K can be used if
  205. the "Send-Init" exchange does not seem to be working.
  206.  
  207. Please note that PCKERMIT checks the keyboard infrequently under some
  208. conditions.  WAIT at least 20 - 30 seconds before repeating a keystroke
  209. in order to avoid stacking up repeated commands.  This is particularly true
  210. of CTRL-F (cancel file) where you might cancel more than one file.
  211.  
  212. Also, the Control-F and Control-B (cancel file and cancel batch) functions
  213. sometimes require a NAK and a resend or a timeout before they actually
  214. work.  This is not a protocol problem, but is due to the way PCKERMIT
  215. flushes it buffer before sending the abort packet.  In some cases, the
  216. flushing of the buffer truncates a packet and the following abort packet is
  217. not seen as a separate packet.
  218.  
  219. Here is a more detailed explanation of the functions:
  220.  
  221.   CTRL-F will cancel an individual file in a wildcard transaction,
  222.   but then continue with the next file in the batch.
  223.  
  224.   CTRL-B will cancel the entire batch of files, according to
  225.   protocol, and then return you to the DOS prompt.
  226.  
  227.   CTRL-K will abort the file transfer and return you to the DOS
  228.   prompt.  PCKERMIT sends an Error packet indicating it is
  229.   aborting, but otherwise does not worry about protocol.
  230.  
  231.   CTRL-R will resend the current packet; this can be used as a
  232.   manual timeout.  With windowing is in effect, this feature should be
  233.   tried only as a last resort as it has not been fully tested.
  234.  
  235.   CTRL-A will give you a status report on the screen.  The items
  236.   covere are:
  237.  
  238. CONTROL-A STATUS REPORT
  239. -----------------------
  240.                                COMMENTS
  241. ^A  Status report:
  242.  file type: binary             ;Details unknown
  243.  
  244.  file number: 1                ;Indicates which file of a multiple file
  245.                                 wildcard batch transfer
  246.  
  247.  characters : 1291             ;On SEND: indicates number of characters
  248.                                 output to the buffer, but not necessarily
  249.                                 yet sent out the modem.
  250.  
  251.                                 On RECEIVE: indicates characters actually
  252.                                 written to disk so far; others may already
  253.                                 have been received to memory.
  254.  
  255.  window size: 31               ;The window size agreed upon after negotiation
  256.                                 with the other Kermit.  By definition, 0 means
  257.                                 Classic (non-windowing) Kermit.  Otherwise,
  258.                                 the size may vary from 1 to 31.
  259.  
  260.  block check: 1                ;The block check type agreed upon after
  261.                                 negotiation with the other Kermit.
  262.                                   Type 1 = 1 byte checksum
  263.                                   Type 2 = 2 byte checksum
  264.                                   Type 3 = 3 byte CRC-16 checksum
  265.  
  266.  compression: 0                ;Is data compression (repeat count prefixing)
  267.                                 in effect?
  268.                                   0 = No compression
  269.                                   1 = Compression
  270.  
  271.  8th-bit prefixing: 1          ;Is 8th bit prefixing being used?
  272.                                   0 = No
  273.                                   1 = Yes
  274.  
  275.  
  276.  
  277. FUNCTIONS SUPPORTED BY PCKERMIT (Subject to agreement by the other Kermit)
  278. -------------------------------
  279.  
  280.    Windowing (full-duplex channel required)
  281.    Data Compression
  282.    8-bit quoting (whenever parity is not "none")
  283.    File Attributes:
  284.      File Length
  285.        On Receive: accepts either
  286.           the attribute ! (Ascii 33) - Approximate File Length in K bytes
  287.           the attribute 1 (Ascii 49) - Exact file length
  288.  
  289.        On Send:
  290.           sends the attribute 1 (Ascii 49) - Exact File Length
  291.  
  292.      Time and Date:
  293.        Both Receive and Send
  294.           the attribute # (Ascii 35)  - Creation date
  295.  
  296.        NOTE: when PCKERMIT receives the creation date file attribute, it
  297.        automatically writes the received file with that date, rather than
  298.        the current date.
  299.  
  300.  
  301. FILE RENAMING
  302. -------------
  303.  
  304. PCKERMIT will rename received files to avoid conflicting with an existing
  305. file. (If you wish to overwrite files of the same name, use the -W option
  306. on the command line.)
  307.  
  308. The first duplicate filename received is renamed to with a .~1 extension,
  309. then .~2  and so on.
  310.  
  311. The addition of ~1, etc, after the filename is not ideal because the
  312. extension is completely lost.  Often files are being received with same
  313. root but different extensions. If they are updates, it may take a while to
  314. sort things out.
  315.  
  316.  
  317. PCKERMIT AT A GLANCE
  318. --------------------
  319.  
  320.   Local operation:                   Yes
  321.   Remote operation:                  ???
  322.   Transfers text files:              Yes
  323.   Transfers binary files:            Yes
  324.   Wildcard send:                     Yes
  325.   ^X/^Y interruption:                Yes  (Different keystrokes, though)
  326.   Filename collision avoidance:      Yes
  327.   Can time out:                      Yes
  328.   8th-bit prefixing:                 Yes
  329.   Repeat count prefixing:            Yes
  330.   Alternate block checks:            Yes
  331.   Terminal emulation:                No
  332.   Communication settings:            Yes
  333.   Transmit BREAK:                    No
  334.   IBM mainframe communication:       ???
  335.   Transaction logging:               No
  336.   Session logging:                   No
  337.   Raw transmit:                      ???
  338.   Act as server:                     No
  339.   Talk to server:                    No
  340.   Advanced server functions:         No
  341.   Advanced commands for servers:     No
  342.   Local file management:             ???
  343.   Handle file attributes:            Yes
  344.   Command/init files:                No
  345.   Command macros:                    No
  346.  
  347.  
  348.  
  349. PCKERMIT KNOWN PROBLEMS (BEWARE FILE)
  350. -------------------------------------
  351.  
  352. PCKERMIT version 1.18
  353. 1. FILE RENAMING WHEN DUPLICATE FILE NAME IS RECEIVED
  354.  
  355. Long filenames can duplicate existing filenames because they are not
  356. evaluated by PCKERMIT.  The long filename is sent to DOS, which truncates
  357. it to the first FILENAME.EXT characters.
  358.  
  359. 2. COMM port parameters possibly not returned to previous state:
  360.  
  361. The commercial comm library used in creating this program reportedly
  362. contains a bug which may cause PCKERMIT to leave the comm port in a
  363. different state than it found it.  This is not a problem when using
  364. PCKERMIT from the MSDOS prompt.  However, if you call PCKERMIT from
  365. WITHIN a terminal package, when you RETURN to the terminal package from
  366. PCKERMIT the serial port may not be set the way that terminal package
  367. expects.  This is unconfirmed.  You may wish to always run version 1.18 from
  368. DOS until this problem can be verified, and if needed corrected.
  369.  
  370.  
  371. SLIDING WINDOW DEFINITION
  372. -------------------------
  373.  
  374. The Kermit sliding window extension is defined in the file KWINDOW5.DOC.
  375. If the definition is unclear or ambiguous to you in any respect, please
  376. contact Columbia University or Source Telecomputing at the address below.
  377.  
  378.  
  379. SLIDING WINDOW KERMIT STANDARDIZATION
  380. -------------------------------------
  381.  
  382. The Kermit Sliding Window Definition is still labeled experimental by
  383. Columbia University in order to help iron out all problems before the
  384. final definition is published and to aid in coordinating efforts on
  385. sliding window Kermits.
  386.  
  387. For more information, send SourceMail to STC356 on The Source.
  388.  
  389.  
  390. PCKERMIT.DOC
  391. ------------
  392.  
  393. PCKERMIT was created to be used by developers to aid them in implementing
  394. KERMIT and the new, faster "Sliding Window Kermit".  Complete documentation
  395. for developers is in the file PCKERMIT.DOC.
  396.  
  397.  
  398. COLUMBIA UNIVERSITY
  399. -------------------
  400.  
  401. Columbia University maintains the Kermit protocol.  The
  402. following is taken from their file COMMER.DOC, which describes
  403. Columbia University's policy regarding commerical use of Kermit:
  404.  
  405. "              POLICY ON COMMERCIAL USE AND DISTRIBUTION OF KERMIT
  406.  
  407.                                  Frank da Cruz
  408.  
  409.               Columbia University Center for Computing Activities
  410.  
  411.                                    June 1984
  412.  
  413.  
  414. The KERMIT file transfer protocol has always been open, available, and free to
  415. all.  The protocol was developed at the Columbia University Center for
  416. Computing Activities, as were the first several KERMIT programs.  Columbia has
  417. shared these programs freely with the worldwide computing community since 1981,
  418. and as a result many individuals and institutions have contributed their own
  419. improvements or new implementations in the same spirit.  In this manner, the
  420. number of different systems supporting KERMIT implementations has grown from
  421. three to about sixty in less than three years.  If Columbia had elected to keep
  422. the protocol secret, to restrict access to source code, or to license the
  423. software, the protocol would never have spread to cover so many systems, nor
  424. would the programs be in use at so many sites, nor would the quality of many of
  425. the implemementations be so high.
  426.  
  427. Although KERMIT is free and available to anyone who requests it, it is not in
  428. the "public domain".  The protocol, the manuals, the Columbia implementations,
  429. and many of the contributed implementations bear copyright notices dated 1981
  430. or later, and include a legend like
  431.  
  432.   Permission is granted to any individual or institution to copy or use
  433.   this document and the programs described in it, except for explicitly
  434.   commercial purposes.
  435.  
  436. This copyright notice is to protect KERMIT, Columbia University, and the
  437. various contributors from having their work usurped by others and sold as a
  438. product.  In addition, the covering letter which we include with a KERMIT tape
  439. states that KERMIT can be passed along to others; "we ask only that profit not
  440. be your goal, credit be given where it is due, and that new material be sent
  441. back to us so that we can maintain a definitive and comprehensive set of KERMIT
  442. implementations".
  443.  
  444. Within this framework, it is acceptable to charge a reproduction fee when
  445. supplying KERMIT to others.  The reproduction fee may be designed to recover
  446. costs of media, packaging, printing, shipping, order processing, or any
  447. computer use required for reproduction.  The fee should not reflect any program
  448. or documentation development effort, and it should be be independent of how
  449. many implementations of KERMIT appear on the medium or where they came from.
  450. It should not be viewed as a license fee.  For instance, when Columbia ships a
  451. KERMIT tape, there is a $100.00 reproduction fee which includes a 2400' reel of
  452. magnetic tape, two printed manuals, various flyers, a box, and postage; there
  453. is an additional $100.00 order processing charge if an invoice must be sent.
  454. The tape includes all known versions of KERMIT, including sources and
  455. documentation.
  456.  
  457. Commercial institutions may make unlimited internal use of KERMIT.  However,
  458. a question raised with increasing frequency is whether a company may
  459. incorporate KERMIT into its products.  A hardware vendor may wish to include
  460. KERMIT with its standard software.  A software house may wish to incorporate
  461. KERMIT protocol into its communications package, or to distribute it along with
  462. some other product.  A timesharing vendor or dialup database may wish to
  463. provide KERMIT for downloading.  All these uses of KERMIT are permissible, with
  464. the following provisos:
  465.  
  466. . A KERMIT program may not be sold as a product in and of itself.  In addition
  467.   to violating the prevailing spirit of sharing and cooperation, commercial
  468.   sale of a product called "KERMIT" would violate the trade mark which is held
  469.   on that name by Henson Associates, Inc., creators of The Muppet Show.
  470.  
  471. . Existing KERMIT programs and documentation may be included with hardware or
  472.   other software as part of a standard package, provided the price of the
  473.   hardware or software product is not raised significantly beyond costs of
  474.   reproduction of the KERMIT component.
  475.  
  476. . KERMIT protocol may be included in a multi-protocol communication package as
  477.   one of the communication options, or as a communication feature of some
  478.   other kind of software package, in order to enhance the attractiveness of the
  479.   package.  KERMIT protocol file transfer and management should not be the
  480.   primary purpose of the package.  The price of the package should not be
  481.   raised significantly because KERMIT was included, and the vendor's literature
  482.   should make a statement to this effect.
  483.  
  484. . Credit for development of the KERMIT protocol should be given to the Columbia
  485.   University Center for Computing Activities, and customers should be advised
  486.   that KERMIT is available for many systems for only a nominal fee from
  487.   Columbia and from various user group organizations, such as DECUS and SHARE.
  488.  
  489. Columbia University holds the copyright on the KERMIT protocol, and may grant
  490. permission to any person or institution to develop a KERMIT program for any
  491. particular system.  A commercial institution that intends to distribute KERMIT
  492. under the conditions listed above should be aware that other implementations of
  493. KERMIT for the same system may appear in the standard KERMIT distribution at
  494. any time.  Columbia University encourages all developers of KERMIT software and
  495. documentation to contribute their work back to Columbia for further
  496. distribution.
  497.  
  498. Finally, Columbia University does not warrant in any way the KERMIT software
  499. nor the accuracy of any related documentation, and neither the authors of any
  500. KERMIT programs or documentation nor Columbia University acknowledge any
  501. liability resulting from program or documentation errors.
  502.  
  503. These are general guidelines, not a legal document to be searched for
  504. loopholes.  To date, KERMIT has been freely shared by all who have taken the
  505. time to do work on it, and no formal legalities have proven necessary.  The
  506. guidelines are designed to allow commercial enterprises to participate in the
  507. promulgation of KERMIT without seriously violating the KERMIT user community's
  508. trust that KERMIT will continue to spread and improve at no significant cost to
  509. themeselves.  The guidelines are subject to change at any time, should more
  510. formal detail prove necessary.
  511.  
  512. Commercial organizations wishing to provide KERMIT to their customers should
  513. write a letter stating their plans and their agreement to comply with the
  514. guidelines listed above.  The letter should be addressed to:
  515.  
  516.  
  517.         KERMIT Distribution
  518.         Columbia University Center for Computing Activities
  519.         612 West 115th Street
  520.         New York, NY  10025"
  521.