home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / multics / mugkmthlp.txt next >
Text File  |  2020-01-01  |  18KB  |  372 lines

  1. 8/16/84 kermit
  2.  
  3. Function: Kermit allows files to be transferred between computers.  The files
  4.           may be ascii or binary.  A kermit program must be available on the
  5.           target (micro) computer.
  6.  
  7. Version:  Multics Kermit 2.0g of 8/16/84
  8.  
  9.  
  10. Syntax:  kermit [<control_args>]
  11.  
  12.        When invoked without control arguments, kermit will enter a request
  13.        loop.
  14.  
  15.  
  16.  
  17. Control arguments:  
  18.  
  19.    -logout  Logout after successfully transfering the file.  Must be used
  20.             in conjunction with -send or -receive.  Will not logout if
  21.             errors arise during the transfer.
  22.  
  23.    -send <star_name>  Send one (or a group) of files to the target system.
  24.  
  25.    -receive [<pathname>]  Receive a file from the micro.  Send, receive and
  26.                           server are mutually exclusive arguments.
  27.  
  28.    -set <options>  See below.
  29.  
  30.    -status  Will display the status of the last transmission.  The name of
  31.             the file, the total number of packets required and the total
  32.             number of retries will be displayed.  This arg is ignored whem
  33.             -send, -receive or -server is used.
  34.  
  35.    -server  Directs the Multics kermit to become a kermit server (slave).
  36.             Subsequent commands for file transfer come directly from the
  37.             remote computer.
  38.  
  39.    -show    Show the state of all settable options.  This arg is ignored when
  40.             -send, -receive or -server is used.
  41.  
  42.    -debug  Debugging option.  Do not use.
  43.  
  44.  
  45. The set control arg:
  46.    -set <options>  Set the options to the indicated state.  This must be
  47.                    the last control_arg on the line. Options to be set are
  48.                    typed in following without commas or additional "-set"s
  49.  
  50.                    The syntax for <options> can be in one of two forms:
  51.                    <option_group) {<parm> <val>} where <option_group> is
  52.                    either send, receive or rec or <option_name> <val>.  Both 
  53.                    types may be intermixed freely on a line.
  54.  
  55.                    All options for send or receive can be typed in following
  56.                    one instance of the send or receive keyword.  For example,
  57.                    to set the text mode off (binary transfer), default dir to
  58.                    your home directory, the number of pad characters to 3 on
  59.                    send and the send pad character to 002 (octal), use the
  60.                    following command:
  61.                    kermit -send -set text off dir [hd] send padding 3 padchar 2
  62.  
  63.                    Note that -send, -receive or -server must be used to
  64.                    execute the program.  When executed without one of these
  65.                    arguments, the only effect is to set option values.
  66.                    All set arguments retain values between invocations
  67.                    during the same process except trace and dir.
  68.  
  69.                    See the section on the set command later in this info
  70.                    file for a complete description of the set parameters
  71.                    and their allowed values.
  72.  
  73.  
  74.  
  75. Usage:
  76.  
  77.     The standard usage of Kermit to transfer files takes the following form:
  78.  
  79.     1) Start Kermit on the micro.
  80.     2) Set any desired parameters (eg baud rate for the IBM PC).
  81.     3) Connect to the mainframe.  The micro now appears to be an ordinary
  82.        terminal.
  83.     4) Login to Multics as usual.
  84.     5) Execute the Multics command kermit.  You will get the Multics prompt
  85.        of Kermit-Multics> .
  86.     6) Set any desired parameters.
  87.     7) Execute either a SEND or a RECEIVE command.
  88.     8) Use the escape sequence ctrl-] c to get back to command level at the
  89.        micro.  You will see the micro Kermit prompt.
  90.     9) Execute the corresponding command (ie if the mainframe is expecting
  91.        to RECEIVE a file, execute a SEND command and vice versa).
  92.    10) The micro will display the status of the transmission.  After 
  93.        the file is transfered, a COMPLETED message will be displayed.
  94.        If, for some reason, the file could not be transferred a FAILED
  95.        message will be displayed.
  96.    11) To transfer more files, issue a CONNECT command to the micro.  You
  97.        will be back in Multics-Kermit.  Type a carriage return to get the
  98.        prompt.  Go back to step 7.
  99.    12) If you are finished transferring files, EXIT (or QUIT also q) from 
  100.        Kermit and logout.
  101.    13) Use the ctrl-] c escape sequence to get back to micro-command level
  102.        and exit the local Kermit.
  103.  
  104.  
  105. Alternative usage:
  106.  
  107.     Kermit may also be invoked as a command without entering the request
  108.     loop.  In this case, the action specified by a control argument is
  109.     performed and Kermit will return to Multics command level.  If the
  110.     -logout arg is specified, Kermit will log you out on the Multics
  111.     end if the transfer was completed successfully.  This usage looks like:
  112.  
  113.     1) Start Kermit on the micro.
  114.     2) Set any desired parameters (eg baud rate for the IBM PC).
  115.     3) Connect to the mainframe.  The micro now appears to be an ordinary
  116.        terminal.
  117.     4) Login to Multics as usual.
  118.     5) Issue the command   kermit -receive  or  kermit -send file_name
  119.        to receive or send a file.  The file_name is optional on the -receive
  120.        command, but necessary on the -send command.  You can also put the
  121.        -logout argument on the line to automatically log you out after
  122.        the transfer completes successfully.
  123.     6) Use the escape sequence ctrl-] c  to get the prompt on the micro.
  124.     7) Issue the corresponding SEND or RECEIVE command to the micro.
  125.     8) The micro will display the status of the transmission.  When
  126.        completed, you will get the micro Kermit prompt.
  127.     9) If the -logout argument was given, you do not have to reCONNECT
  128.        to Multics, you will have been automatically logged out.
  129.    10) If the -logout argument was not given, CONNECT to Multics.  You
  130.        will be at command level, even though you may not see a ready message.
  131.        Logout.  You should also CONNECT if the transfer was unsuccessful.
  132.        In that case, you can try again.  The -logout argument will be
  133.        ignored if the transfer was not successful.
  134.  
  135.  
  136. Usage as server:
  137.  
  138.     Multics Kermit may be placed into a special "slave" mode called server
  139.     mode.  In this case, commands will be issued by the remote computer to
  140.     initiate file transfer.  Once the server is started up, you do not have
  141.     to tell it anything else directly.  Your micro will do it for you.
  142.     Not all micros support kermit server commands, and some will use a
  143.     special form of the RECEIVE command instead of the GET command.  Check
  144.     the documentation on your version.
  145.  
  146.     1) Start Kermit on the micro.
  147.     2) Set any desired parameters (eg baud rate for the IBM PC).
  148.     3) Connect to the mainframe.  The micro now appears to be an ordinary
  149.        terminal.
  150.     4) Login to Multics as usual.
  151.     5) Issue the command   kermit -server.  This puts Multics into a slave
  152.        mode that you can take advantage of if your micro supports server
  153.        commands.
  154.     6) Use the escape sequence ctrl-] c  to get the prompt on the micro.
  155.     7) Issue the corresponding SEND or GET command to the micro.
  156.     8) The micro will display the status of the transmission.  When
  157.        transmission is complete, the micro kermit prompt will reappear.
  158.        You can send or receive more files just by typing in a send or
  159.        receive command to the micro.
  160.     9) When you are finished either type in a BYE command to logout the Multics
  161.        kermit server or a FINISH command to terminate server mode and return
  162.        to command level.  In the latter case, you should reCONNECT.
  163.  
  164.  
  165. Available commands:
  166.  
  167.    The Multics implementation of Kermit allows the following commands.
  168.    Optional arguments are enclosed in [].  Items to be replaced by actual 
  169.    names or parameters (eg segment names) are enclosed in <>.
  170.  
  171.    SEND <pathname>  or  SEND <starname>
  172.      Sends either a single file to the micro or a group of files matching
  173.      <starname>.  At least one filename must match <starname> or the
  174.      command is in error.  If all is well, an OK prompt will appear and
  175.      you can go back to the micro.
  176.  
  177.    RECEIVE [<pathname>]
  178.      Receive either a single file or multiple files from the micro.  When
  179.      sending files from the micro, the name of the file is also sent and
  180.      will be used on the Multics side to name the segment.  In the case of
  181.      sending a single file, the file may be renamed by using an absolute or
  182.      relative pathname for <pathname>.  By default, the files will be
  183.      placed in your working directory.  This may be changed by the SET DIR
  184.      command (see below).  You will get an OK prompt when Multics
  185.      is ready to receive your file(s).
  186.  
  187.  
  188. More commands:
  189.    HELP [<command_name>]  When issued without a command name, help will list
  190.      the available kermit commands.  When a command name is used, kermit will 
  191.      display a short description of the command, its parameters and actions.
  192.  
  193.    EXIT, QUIT, Q
  194.      Leave Kermit and return to the Multics command level.
  195.  
  196.    EXEC <line>  or  E <line>  or  ..<line>
  197.      Send <line> to the Multics command processor.  Allows Multics commands
  198.      to be executed without leaving Kermit.  The line does not have to be
  199.      enclosed in quotes.
  200.  
  201.    .  Displays the current kermit version number and date.
  202.  
  203.  
  204. The set command:
  205.    SET <mode> <option> <value>  or  SET <option> <value>
  206.      Sets the specified option to <value>.  The parameter <mode> may be 
  207.      either SEND, RECEIVE or REC.  Many of these options are provided for
  208.      compliance with the Kermit standard and are not very useful on
  209.      Multics;  TIMEOUT, DELAY, DIR, and FILE-WARNING are probably the
  210.      most useful.  All options default to standard values.  Setting RECEIVE
  211.      options will change the default values for info coming to Multics from
  212.      the micro.  The micro may override any of these values.
  213.      
  214.      The list of available options for SEND or RECEIVE are
  215.  
  216.      PADDING <n>  Set the number of padding characters to n.  The default
  217.                   is zero.
  218.  
  219.      PADCHAR <o>  Set the padding character to that specified by the octal
  220.                   number o.  Note that this is OCTAL.  The default is the
  221.                   null character (octal 000).
  222.  
  223.      TIMEOUT <n>  Set the number of seconds to wait before giving up on a
  224.                   transmission and retrying.  Defaults to 20.
  225.  
  226.      PACKET-LENGTH <n>  Set the length of the packet to n.  The default
  227.                   (and maximum allowable) legth is 94.
  228.  
  229.      END-OF-LINE <o> Set the end of line character to that specified by the
  230.                   octal number o.  The default is a carriage return (octal 15).
  231.                   Note that this parameter may interact with the block transfer
  232.                   modes used during a file transfer.
  233.  
  234.      QUOTE <o>    Set the quote character to that specified by the octal number
  235.                   o.  The default is the # character (octal 43).  This
  236.                   options can only be set for the SEND mode.
  237.  
  238.  
  239.    Other Set Options:
  240.    These options take the command form SET <option> <value>.
  241.  
  242.      DELAY <n>   Set the delay time to n seconds.  This is the time to
  243.                  wait before sending a file after the SEND command has been
  244.                  entered.  The default is to wait 8 seconds.
  245.  
  246.      DIR <pathname> Set the default directory for segments to be placed in
  247.                  during RECEIVE or looked for during SEND.  The default 
  248.                  is the working directory at the time Kermit was invoked.
  249.                  <Pathname> may be an absolute or relative DIRECTORY 
  250.                  pathname.  To reset this parameter to your current 
  251.                  working directory, the -wd argument may be substituted 
  252.                  for <pathname>.  Active functions in <pathname> are not
  253.                  currently supported.
  254.  
  255.      FILE-WARNING <on | off>  or FW <on | off>  Set the file warning
  256.                  switch to on or off.  When on, incoming files will be
  257.                  renamed if a segment already exists with that name.
  258.                  The default is off. 
  259.  
  260.      TEXT <on | off> Sets the file transfer mode.  The default is ON.  When
  261.                  on during receive, character addition to the file halts when 
  262.                  a ctrl-Z is encountered in the input stream.  In addition, 
  263.                  lines are terminated with the standard Multics line 
  264.                  terminator, the line feed.  During transmission, plain line
  265.                  feeds are changed into the standard Kermit line terminator,
  266.                  the carraige return/line feed combination.  When off, these
  267.                  transformations are not enabled and binary files may be
  268.                  sent.  See additional info in notes.
  269.  
  270.      REPEAT <on | off>  When on, Kermit will request character compression to 
  271.                  be performed.  The default is ON.  If the other end does not
  272.                  support this feature, it will not be used.  If the other end
  273.                  requests this option in a transfer, it will be performed
  274.                  regardless of the setting of this switch.
  275.  
  276.      PARITY <on | off>  When on, Kermit will precede eight bit characters with
  277.                  a parity quote character when agreed upon by the micro.  When
  278.                  off, parity quoting will never be done.  The default is OFF.
  279.                  Parity quoting reduces transmission efficiency, is not needed
  280.                  for text files and is normally not necessary at all in
  281.                  Multics, although it may be useful over networks.
  282.                  Turning this switch on may require modifying the MODES
  283.                  parameter string.
  284.  
  285.      TRACE <on | off> Turns a trace facility on to log all packets in a file
  286.                  call Kermit.trace.  This is a debugging feature only.  The
  287.                  default is off.
  288.  
  289.      CHECKTYPE <1 | 2 | 3> Determines which checksum type Multics kermit will
  290.                  attempt to use when initiating a transfer.  1 is the standard
  291.                  single byte kermit checksum, good for most purposes.  2 is a
  292.                  double byte checksum.  3 is a CRC triple byte checksum formed
  293.                  by dividing the data bit string by the polynomial x**16 +
  294.                  x**12 + x**5 + 1 and using the remainder.  Not all micro
  295.                  kermits will support type 2 or type 3 checksums, in which case
  296.                  type 1 will be used.
  297.  
  298.      MODES <modes_string>  Kermit modifies the terminal modes when sending or
  299.                  receiving files or when in server mode.  The default modes
  300.                  are suitable for most situations.  In the event that the
  301.                  terminal modes must be modified, the <modes_string> is one
  302.                  that is acceptable to stty.  The modes string is checked upon
  303.                  entry.  Block transfer is a requirement for high speed 
  304.                  transfer over most communications lines.
  305.  
  306.  
  307. More Kermit commands:
  308.  
  309.    SHOW [<option>]
  310.      Displays the status of the user settable option specified.  If entered
  311.      without an option, all options are displayed.  Option may be chosen
  312.      from SEND, RECEIVE, REC, DELAY, DIR, FILE-WARNING, FW, 
  313.      TEXT, REPEAT, PARITY, CHECKTYPE or TRACE.
  314.  
  315.  
  316.    STATUS
  317.      Displays the status of the last transmission.  If an error occurred,
  318.      a message stating the error will be shown.
  319.  
  320.  
  321. Supported Multics Server Commands:
  322.    When in server mode, the Multics implementation of kermit will support
  323.    the following server commands:
  324.  
  325.      GET <filename>  (some implementations may use RECEIVE)
  326.      SEND <filename>  - Note files cannot be renamed this way
  327.  
  328.      BYE
  329.      FINISH
  330.      LOGOUT
  331.      REMOTE CWD <dirname>  - also changes default dir on Multics
  332.      REMOTE DIRECTORY  -  prints current working directory
  333.      REMOTE HELP
  334.      REMOTE HOST <command_line>  - Any legal Multics command line
  335.      REMOTE TYPE <path>  - Prints the indicated segment
  336.  
  337.    These are commands issued to the kermit running on the local micro that
  338.    are, in turn, relayed to the Multics kermit for execution.  These commands
  339.    are only valid when Mulitcs kermit is in server mode and the commands are
  340.    issued by the micro.  Refer to the relevant micro kermit users guide for
  341.    details.
  342.  
  343.  
  344. Notes:
  345.    All commands may be in any mixture of upper and lower case.
  346.  
  347.    File names are translated into all lower case on the Multics side.
  348.    (except when using the pathname option on the RECEIVE command)
  349.  
  350.    When TEXT mode is ON, carraige return - line feeds on files transfered TO
  351.    Multics are converted to single line feeds.  When sending files to
  352.    micros, the single line feed is turned into a CR-LF combination for
  353.    the micro kermit to handle as it will.  When TEXT mode is OFF, this
  354.    transformation is not enabled.  See below.
  355.  
  356.    When text mode is on, binary files may not be transferred properly.  
  357.    If text is on, file transfer halts when either a) the end of the file 
  358.    is reached by the micro or b) an end of file character (ctrl-Z) is 
  359.    encountered in the input stream on the Multics end (this is the default 
  360.    mode).  This should not affect the transfer of straight text files.  
  361.    Binaray files or files containing control Z characters require that 
  362.    text mode be turned off for proper uploading or downloading. 
  363.    Note that this process is symetric.  If you upload a file in binary mode
  364.    it should be downloaded in the same mode to be sure that the file is
  365.    not transformed by the transfer.  If a file has been transfered one
  366.    direction in text mode, it should be transfered the other in the same
  367.    manner.  Text mode transmission of binary files may result in a
  368.    noninvertable transformation being performed on the contents of the file.
  369.  
  370.    Source files for all of the kermit implementations as of 5/84 are
  371.    currently contained in the directory >udd>ACS>Kermit.
  372.