home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit4e / ckiker.doc < prev    next >
Text File  |  2020-01-01  |  14KB  |  284 lines

  1. INTRODUCTION
  2.  
  3. This version of Amiga Kermit is a port of the Unix C-Kermit which attempts
  4. to reproduce as much of the functionality of Unix version as possible.  I
  5. had two main goals in porting C-Kermit:  I wanted a reliable remote file
  6. transfer utility, and I wanted to investigate the use of the AmigaDOS
  7. and Exec environments.
  8.  
  9. Amiga Kermit currently provides a line oriented user interface.  I currently
  10. have no specific plans to implement menuing, but there are several places in
  11. Kermit where a menu interface would be an asset.  In this version of Kermit,
  12. I have concentrated on the functional aspects.
  13.  
  14. As I have stated before, this is a port of the Unix C-Kermit.  The file
  15. ckuker.doc contains detailed documentation on the use of C-Kermit, and
  16. Kermit's internal help can be used as a reference too.  The main
  17. difference between this version and the Unix C-Kermit is that the DIAL
  18. and SCRIPT commands are as yet unimplemented.  Therefore, only Amiga
  19. specific features are noted below.
  20.  
  21. INVOKING C-KERMIT
  22.  
  23. Amiga Kermit is usually invoked from a CLI process.  It currently can not
  24. be invoked from the Workbench.  From a CLI window, you generally enter:
  25.    KERMIT
  26. or
  27.    RUN KERMIT
  28. to execute Kermit and start up the Kermit command interpreter.  Kermit
  29. will create its own window and greet you with:
  30.  
  31.    C-Kermit, 4D(060) 18 Apr 86, Commodore Amiga
  32.    Type ? for help
  33.  
  34.    C-Kermit>
  35.  
  36. The cursor will appear following the C-Kermit> prompt.  Typing ? will
  37. produce a list of the items that can be entered at any point.  Typing ?
  38. here will produce a list of commands:
  39.  
  40.    C-Kermit>? Command, one of the following:
  41.     !                  bye                close              connect
  42.     cwd                dial               directory          echo
  43.     exit               finish             get                help
  44.     log                quit               receive            remote
  45.     script             send               server             set
  46.     show               space              statistics         take
  47.  
  48. Typing ? at various points during command entry will help you navigate
  49. through the command processor.  The 'help' command is also quite useful.
  50. Typing 'help' alone gets information about command entry:
  51.  
  52.    C-Kermit>help
  53.  
  54.    Type ? for a list of commands, type 'help x' for any command x.
  55.    While typing commands, use the following special characters:
  56.  
  57.     DEL, RUBOUT, BACKSPACE, CTRL-H: Delete the most recent character typed.
  58.     CTRL-W: Delete the most recent word typed.
  59.     CTRL-U: Delete the current line.
  60.     CTRL-R: Redisplay the current line.
  61.     ?       (question mark) display help on the current command or field.
  62.     ESC     (Escape or Altmode) Attempt to complete the current field.
  63.     \       (backslash) include the following character literally.
  64.  
  65.    From system level, type 'kermit -h' to get help about command line args.
  66.  
  67. but 'help' can be used with command lines to get command descriptions.  For
  68. example:
  69.  
  70.    C-Kermit>help bye
  71.    Shut down and log out a remote Kermit server
  72.  
  73. The Kermit command processor is normally exited with the 'QUIT' command.
  74. During Kermit protocol, you can type CTRL-C or CTRL-D to interrupt and
  75. exit Kermit.  Depending on the version of the C runtime libraries used
  76. to link Kermit, the interrupt may also be active during command input, but
  77. it is disabled during connect mode.  You will get a requestor when the
  78. interrupt is activated to allow you to choose to continue Kermit.  However,
  79. any serial read or write that was interrupted will still be aborted.
  80.  
  81. Kermit can also be used without the command processor by specifying an
  82. action on the command line.  You can enter 'kermit -h' at the CLI prompt
  83. to get a list of command line options.  However, unless input is redirected,
  84. or the -q (quiet) option is specified, Kermit will still create a window
  85. for protocol monitoring and interruption.  'KERMIT <*' can be used to
  86. run Kermit completely within the CLI window; however, this does not allow
  87. you to enter control characters, and no console input is seen until you
  88. enter return.  Input and output can be redirected to files to take advantage
  89. of C-Kermit command line file transfer options.  Unfortunately, AmigaDOS
  90. does not implement pipes (yet).
  91.  
  92. KERMIT SERIAL INITIALIZATION AND SETTINGS
  93.  
  94. Amiga Kermit uses the serial device.  Three sources are used to initialize
  95. the serial parameters.  First, the default serial configuration, as set by
  96. Preferences, is copied.  This includes baud rate, and under version 1.2 of
  97. the Workbench, parity, modem control (7-wire vs. 3-wire), and flow control.
  98. Second, command line parameters can be used to override these settings.
  99. For example:
  100.    kermit -b 1200 -p e
  101. can be used to select 1200 baud and even parity independently of the
  102. Preferences settings.  Finally, if the command processor is used, Kermit
  103. looks for a ".kermrc" initialization file, first in the "s:" directory, then
  104. in the current directory, providing that the disk containing each directory
  105. is present in the Amiga.  The ".kermrc" file contains C-Kermit commands
  106. which can be used to initialize the C-Kermit environment as desired.
  107.  
  108. The line used by Amiga Kermit is always 'serial.device', the name of the
  109. device driver being used, and Kermit will not allow you to 'SET LINE' to
  110. anything else.  The modem control mode is currently selected by 'SET MODEM
  111. type', which has two choices: 'DIRECT', for 3-wire control, and 'GENERIC',
  112. for 7-wire control.  Because of the way the serial device operates, this
  113. setting only has an effect when the serial device is opened after previously
  114. being closed, which occurs only when the serial line is used after Kermit
  115. starts or after '<escape>H' is used to hang up and exit connect mode.
  116.  
  117. Kermit allows you to set any baud rate between 110 and 292000 baud; however,
  118. it will complain if the baud rate is nonstandard (I added this feature after
  119. several attempts to use my modem at 12000 baud).  Rates of 110 and 111 baud
  120. are implemented as 112 baud.  Rates above 38400 baud can be used for
  121. connect mode, but they are not very useful for file transfer.  The file
  122. transfer rate is limited by packet retries due to transfer errors, and the
  123. overhead time spent constructing packets.
  124.  
  125. Amiga Kermit uses the serial device in shared mode.  This allows other
  126. programs, like dialers, to use the serial line at the same time, without
  127. exiting Kermit.  This could also allow in theory a terminal emulator to be
  128. used simultaneously with Kermit.  However, if two programs are reading from
  129. the serial line at the same time, the results are unpredictable.  Any such
  130. program, therefore, would have to be disabled from reading while Kermit is
  131. performing file transfer or is in connect mode.  Note that Kermit since does
  132. its own parity generation and stripping, so it always sets the serial device
  133. to use eight bit characters with no parity.
  134.  
  135. WILDCARDING
  136.  
  137. Both the SEND command invoked from the Amiga and a GET sent to an Amiga
  138. in server mode use allow wildcarding, in the Unix style.  Thus, '*'
  139. wildcard matches an arbitrary string while '?' matches an arbitrary
  140. character.  Therefore, to get all the C source files which begin with 'cki'
  141. from the Amiga server, you could use the command:
  142.  
  143.    C-Kermit>GET cki*.c
  144.  
  145. Multiple '*' wildcards can be used in a pattern; however, beware that
  146. most Unix C-Kermit's may not completely support this form.  Also, the
  147. wildcarding that is used in local and remote server commands that invoke
  148. AmigaDOS commands is the AmigaDOS form.
  149.  
  150. LOCAL AND REMOTE COMMANDS
  151.  
  152. Amiga Kermit provides several ways to invoke AmigaDOS commands from within
  153. Kermit.  Entering '!' at the Kermit prompt will create a CLI process running
  154. in its own window, and wait for it to terminate.  The form '! command' will
  155. invoke the given command command with its output going to Kermit's window.
  156. There is currently no way to pause the output of commands invoked his way,
  157. other than the stopgap use of the right mouse button.  The form 'REMOTE
  158. HOST command' can be sent to the Amiga server to execute the given command
  159. remotely on the Amiga.  Because of the way AmigaDOS Execute() function
  160. works, commands invoked in either the '! command' or 'REMOTE HOST command'
  161. forms have NIL: as their standard input.  Some AmigaDOS commands that
  162. require input, such as DiskCopy and Format, do not recognize the immediate
  163. end of file that they receive under this condition, causing them to hang.
  164.  
  165. In addition to the methods given above, various AmigaDOS commands are
  166. invoked by local Kermit commands, and generic remote commands.  These
  167. are listed below:
  168.  
  169.    AmigaDOS command    Local command      Remote generic command
  170.    DELETE files        --none--           REMOTE DELETE files
  171.    TYPE files          --none--           REMOTE TYPE files
  172.    INFO                SPACE              REMOTE SPACE
  173.    LIST obj            DIRECTORY obj      REMOTE DIRECTORY
  174.    STATUS              --none--           REMOTE WHO
  175.  
  176. Any parameters to these commands are expected to use AmigaDOS conventions,
  177. including AmigaDOS wildcarding.  Note that in order to pass a '?' through
  178. the C-Kermit command processor, it must be prefixed with a '\'.
  179.  
  180. You can change the current directory of the Kermit process locally with the
  181. CWD command and remotely with REMOTE CWD.  The local CWD command prints
  182. out the name of the current directory afterwards.  If no new directory
  183. is given, the current directory is not changed, so CWD alone can be used
  184. to determine where the current directory is.
  185.  
  186. SERVER MODE
  187.  
  188. Amiga Kermit completely implements server mode, including the ability
  189. to execute CLI commands remotely.  Currently CLI commands are executed
  190. with their standard output directed to RAM:PIPE-HOLDER, which is then
  191. written back to the commanding Kermit after the command completes.
  192.  
  193. There are a few limitations on the commands that can be executed remotely.
  194. First of all, if they produce voluminous output, the output should be
  195. redirected (redirection is supported on the REMOTE HOST command line)
  196. to avoid using all free memory for the output file.  However, the 
  197. commanding Kermit will probably timeout in the middle of the execution
  198. of any such command.  The best way to use these commands is to
  199.    REMOTE HOST RUN command >outfile parameters
  200. then use REMOTE WHO (which invokes STATUS) to monitor the command for
  201. completion.
  202.  
  203. The input stream for remote commands is NIL:, which is not handled
  204. intelligently by all Amiga commands.  For example, 'REMOTE HOST diskcopy
  205. df0: to df1:' hangs indefinitely while waiting for NIL: to press return.
  206. Finally, since each command is executed in a separate CLI, commands that
  207. set unshared process parameters, like 'cd',  will have null effect (but
  208. 'REMOTE CWD dir' can be used instead).
  209.  
  210. While server mode is active, AmigaDOS requestors are disabled.  This
  211. avoids requiring operator intervention to reset a requestore when the Amiga
  212. server is told to use a file on a disk that does not exist or is write
  213. protected.  However, disabled requestors are currently not inherited by the
  214. CLI processes that the server creates to execute remote commands.
  215. Therefore, a remote AmigaDOS command can still cause the server to become
  216. hung.
  217.  
  218. To shut down the Amiga server, enter BYE or FINISH at the commanding
  219. Kermit.  FINISH exits to whatever level the server was invoked from,
  220. while BYE exits Amiga Kermit altogether.
  221.  
  222. CONNECT MODE
  223.  
  224. Connect mode on Amiga Kermit currently provides you with a 23 line by
  225. 77 column screen.  The Amiga console device is used to provide ANSI
  226. terminal emulation.  While you are in connect mode, you can give
  227. single character commands which are prefixed by an escape character
  228. which can be set from within C-Kermit.  By default, the escape
  229. character is CTRL-\.  You can use '<escape>H' to close the serial device
  230. and exit connect mode, which makes the DTR line drop causing most modems
  231. to hang up the phone line.
  232.  
  233. You can currently get a 25 by 80 screen in Kermit by means of a kludge.
  234. Entering the Kermit command line (backslashes will be echoed only once):
  235.      ECHO \\033[25t\\033[80u\\033[0x\\033[0y\\014
  236. activates console device private escape sequences that cause the console
  237. to use a 25 by 80 region, overwriting the borders of the Kermit window.
  238. Using window gadgets will cause the borders to be redisplayed, but the
  239. display can be cleaned up by typing ctrl-L in command mode.  To reset
  240. the window to its normal condition, allowing resizing, use:
  241.     ECHO \\033[t\\033[u\\033[x\\033[y\\014
  242. and then activate a window gadget to refresh the borders.  These commands
  243. can be placed into Kermit TAKE files.
  244.  
  245. In addition to the standard connect mode commands, extra logging control
  246. has been added.  If a session log file is open, the '<escape>Q' sequence
  247. allows you to temporarily suspend logging.  The '<escape>R' sequence
  248. resumes logging if it has been suspended.
  249.  
  250. Features have also been added to prevent deadlocks while in connect mode
  251. due to spurious XOFF's or bad modem control line states.  When connect
  252. mode is unable to send serial output, keyboard characters are queued until
  253. they can be transmitted.  Queuing continues as long as space is available
  254. in the output buffer.  If the buffer, which is 64 characters long, fills up,
  255. the next keyboard input is discarded and the display 'beeps'.  To get out
  256. of a deadlock situation, you can either exit connect mode, or send a break.
  257. In either case, the output queue is flushed, and current serial output
  258. character is given one second to finish transmitting.  If it does not
  259. complete, the output is aborted, and XOFF mode reset as appropriate.  Then
  260. connect mode is exited or a break is sent, as specified.  When output
  261. characters are queued, connect status (accessed by '<escape>S') will
  262. indicate the number of queued output characters.
  263.  
  264.  
  265. BLURB
  266.  
  267. Amiga Kermit is a product of the Software Distillery group, which develops
  268. quality public domain software for the Commodore Amiga, including Hack and
  269. BLink.  The Software Distillery BBS (in Durham, NC) can be reached at
  270. (919) 471-6436.  If you have problems or suggestions related to Amiga
  271. Kermit, please contact me at the address below.  New versions of Amiga
  272. Kermit will be available as enhancements are made, and can be from
  273. obtained from various sources, including the Software Distillery BBS, and
  274. the Columbia University Kermit distribution.
  275.  
  276. Jack J. Rouse
  277. 888H Buckingham Ct.
  278. Cary, NC 27511
  279.  
  280. (919) 467-8000 (work)
  281. (919) 481-1395 (home)
  282. USENET: mcnc!rti-sel!sas!jjr
  283. COMPUSERVE: 74176,1757
  284.