home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c-kermit / ckvker.hlp < prev    next >
Text File  |  2020-01-01  |  48KB  |  1,058 lines

  1. 1 KERMIT
  2. Kermit Communications software
  3.  
  4. C-Kermit 8.0 communications software for serial and network
  5. connections: modem dialing, file transfer and management, terminal
  6. connection, character-set translation, and script programming.
  7.  
  8. "Kermit" is a file transfer protocol developed at Columbia
  9. University and family of file transfer, management, and
  10. communication software programs from Columbia University available
  11. for most computers and operating systems.
  12.  
  13. The Kermit program for VMS is called "C-Kermit".  It supports serial
  14. connections (direct or dialed), LAT connections, and TCP/IP Telnet
  15. and Rlogin connections.  C-Kermit is also available for UNIX, VOS,
  16. AOS/VS, and other operating systems, and other Kermit programs are
  17. available for DOS, Windows, IBM mainframes, and hundreds of other
  18. platforms.
  19.  
  20. C-Kermit 8.0 is Copyright (C) 1985, 2002 by The Trustees of Columbia
  21. University in the City of New York.  
  22.  
  23. Authors:
  24.  
  25.   Frank da Cruz, Columbia University, with contributions from
  26.   hundreds of other volunteer programmers all over the world.  VMS
  27.   particulars contributed mainly by Terry Kennedy of Saint Peters
  28.   College, New Jersey, and Lucas Hart of Oregon State University.
  29.   (Open)VMS help topic by Alan Robiette, Oxford University (UK); Jim
  30.   Barbour, University of Colorado (USA); Christine M. Gianone and
  31.   Frank da Cruz, Columbia University (USA).  All references to VMS
  32.   apply to both VMS and OpenVMS, VAX and Alpha.
  33.  
  34. Documentation:
  35.  
  36.   C-Kermit 6.0 is documented in the book "Using C-Kermit" by Frank
  37.   da Cruz and Christine M. Gianone, Digital Press / Butterworth-
  38.   Heinemann, Woburn, MA, USA, Second Edition, ISBN 1-55558-164-1, 
  39.   1997.  Sales of the manual help to fund the Kermit Project.
  40.   The CKERMIT70.TXT and CKERMIT80 files document features new to
  41.   versions 7.0 and 8.0 and can be used as a supplement to the manual
  42.   until a Third Edition is published.
  43.  
  44. Format:
  45.  
  46.   KERMIT  [ cmdfile ] [ option(s) ... ] [ file(s) ... ]
  47. 2 COMMANDS
  48. C-Kermit has a large vocabulary of commands; for a summary see the
  49. "COMMAND_LIST" subtopic.  All commands can be used either interactively,
  50. i.e. typed in response to the "C-Kermit>" prompt, or placed in command
  51. files to be executed under the control of Kermit's programming language.
  52.  
  53. The SET and SHOW commands are particularly useful in that they are used
  54. to set and display the many parameters governing Kermit's communication
  55. and file transfer capabilities.
  56. 3 BACKSLASH_NOTATION
  57. Within a command, \ is a special character to help you enter special
  58. quantities, or ordinary characters that would otherwise be illegal
  59. or hard to type.  At the end of a line, \ (backslash) makes the next
  60. line a continuation of the current line.  In all other circumstances
  61. the character following the \ identifies what the special item is:
  62.  
  63.   %          a user-defined simple (scalar) variable
  64.   &          an array reference
  65.   $          an environment variable
  66.   v (or V)   a built-in variable
  67.   m (or M)   a user-defined "long" variable
  68.   f (or F)   a function
  69.   d (or D)   a decimal (base 10) number
  70.   o (or O)   an octal (base 8) number
  71.   x (or X)   a hexadecimal (base 16) number
  72.   \          the backslash character itself
  73.   \b (or \B) the BREAK signal (OUTPUT command only)
  74.   \l (or \L) a long BREAK signal (OUTPUT command only)
  75.   A decimal digit (a 1-3 digit decimal number): see below
  76.   Anything else: following character taken literally
  77.  
  78. Numbers (in decimal, octal or hexadecimal format) turn into the
  79. character with that ASCII code, so you can use \7 for a bell, or
  80. \13 (or, say, \x0D) for a carriage return.
  81. 3 COMMAND_LIST
  82. You can use upper or lower case for commands.  Also, you can
  83. abbreviate commands as long as the abbreviation matches only one
  84. possibility.  This section gives a summary of C-Kermit's commands.
  85. For more information on each, please consult the user manual.  For
  86. brief instructions, type HELP and then the command name in
  87. response to the "C-Kermit>" prompt.
  88.  
  89. ;              Introduce a full-line or trailing comment (also #).
  90. @              Execute a DCL command.
  91. !              Synonym for @.
  92. :xxx           Introduce a label (GOTO target).
  93. ADD            Add a filespec to the SEND-LIST.
  94. ANSWER         Answer an incoming modem call.
  95. APC            Send an Application Program Command escape sequence.
  96. ASK            Prompt the user, store user's reply in a variable.
  97. ASKQ           Like ASK, but doesn't echo (useful for passwords).
  98. ASSIGN         Assign an evaluated string to a variable or macro.
  99. BACK           Go back to previous directory.
  100. BEEP           Make a beep or bell noise.
  101. BUG            Display instructions for reporting bugs.
  102. BYE            Terminate and log out a remote Kermit server.
  103. CD             Change working directory (also CWD).
  104. CHECK          Check for availability of a given feature.
  105. CLEAR          Clear communication device input buffer.
  106. CLOSE          Close connection, a log, or other local file.
  107. COMMENT        Introduce a full-line comment.
  108. CONNECT        Establish a terminal connection to a remote computer.
  109. COPY           Copy a local file.
  110. DATE           Show date and time.
  111. DECLARE        Declare an array.
  112. DECREMENT      Subtract one (or other number) from a variable.
  113. DEFINE         Define a variable or macro.
  114. DELETE         Delete a file or files.
  115. DIAL           Dial a telephone number.
  116. DIRECTORY      Display a directory listing.
  117. DISABLE        Turn off selected services.
  118. DO             Execute a macro.
  119. E-PACKET       Send an Error packet to the other Kermit.
  120. ECHO           Display text on the screen.
  121. EDIT           EDIT a file using your preferred editor.
  122. EIGHTBIT       Use 8-bit i/o on all communication paths.
  123. ENABLE         Turn on selected services.
  124. END            End a command file or macro.
  125. EVALUATE       Print the value of an arithmetic expression.
  126. EXIT           Exit from C-Kermit, closing all open files and devices.
  127. FAST           Use FAST file-transfer settings.
  128. FINISH         Client tells Kermit server to exit server mode.
  129. FORWARD        Like GOTO, but only in the forward direction.
  130. FOR            Execute commands repeatedly in a counted loop.
  131. FTP            Run the system's FTP program.
  132. GET            Get files from a remote Kermit server.
  133. GETC           Get a character from the command terminal.
  134. GETOK          Ask a "yes/no" question (in scripts).
  135. GOTO           Go to a labeled command in a command file or macro.
  136. HANGUP         Hang up the phone or network connection.
  137. HELP           Display a help message for a given command.
  138. IF             Conditionally execute the following command.
  139. INCREMENT      Add one (or other number) to a variable.
  140. INPUT          Match characters from another computer against
  141.                a given text string.
  142. INTRODUCTION   Print a brief introduction to C-Kermit.
  143. KERMIT         Give command-line arguments at prompt.
  144. LOCAL          (In macro defs) declare local variables.
  145. LOG            Open a log file - debugging, packet, session, or
  146.                transaction.
  147. LOOKUP         A name in the dialing or network directory.
  148. MAIL           Send a file as electronic mail to a specified
  149.                address.
  150. MINPUT         INPUT with multiple targets.
  151. MGET           Multiple GET (list of filespecs see GET).
  152. MKDIR          Create a directory.
  153. MMOVE          Multiple MOVE (list of filespecs, see MOVE)
  154. MOVE           Move (send then delete) filespec.
  155. MSEND          Send a list of files (multiple send).
  156. MSLEEP         Do nothing for given number of milliseconds.
  157. OPEN           Open a local file for reading or writing.
  158. OUTPUT         Send text to another computer.
  159. PAUSE          Do nothing for a given number of seconds.
  160. PDIAL          Partial DIAL
  161. PING           Check if an IP host is reachable.
  162. PRINT          Print a file on a local printer.
  163. PSEND          Partial SEND - send part of a file.
  164. PUSH           Invoke host system interactive command interpreter.
  165. PWD            Display current working device/directory.
  166. QUIT           Same as EXIT.
  167. READ           Read a line from a local file.
  168. RECEIVE        Passively wait for files to arrive.
  169. REDIAL         Redial the most recently dialed number.
  170. REDO           Reexecute a previous command.
  171. REGET          Recover partial file from server.
  172. REINPUT        Reexamine text previously received from another
  173.                computer by an INPUT command.
  174. REMOTE         Issue commands to a remote Kermit server.
  175. REMOVE         Remove entries from SEND-LIST (see ADD).
  176. RENAME         Change the name of a file.
  177. RETRIEVE       Destructive GET from server.
  178. RETURN         Return from a user-defined function.
  179. RLOGIN         Make a TCP/IP Rlogin connection (privileged).
  180. RMDIR          Remove (delete) a directory.
  181. RUN            Run a program or system command.
  182. SCRIPT         Execute a UUCP-style login script.
  183. SEND           Send files.
  184. SERVER         Begin server operation.
  185. SET            Set various parameters.
  186. SHOW           Display values of SET parameters.
  187. SLEEP          Sleep (do nothing) for specified period.
  188. SPACE          Display current disk space usage.
  189. SPAWN          Synonym for RUN.
  190. STATISTICS     Display statistics about most recent file transfer.
  191. STOP           Stop executing macro or command file and return
  192.                to the prompt.
  193. SWITCH         Execute one from a group of commands.
  194. TAKE           Execute commands from a file.
  195. TELNET         Make a TELNET connection to a TCP/IP host.
  196. TRANSLATE      Translate a file's character set.
  197. TRANSMIT       Upload a file with no error checking.
  198. TYPE           Display a file on the screen.
  199. UNDEFINE       Undefine a macro or variable.
  200. VERSION        Display the program version number on the screen.
  201. WAIT           Wait for the specified modem signals.
  202. WHILE          Execute commands repeatedly while a condition
  203.                is true.
  204. WHO            Display list of logged in users.
  205. WRITE          Write text to a local file.
  206. WRITELN        Write a line of text to a local file.
  207. XECHO          Echo text without supplying CRLF at the end.
  208. XIF            Extended IF command.
  209. 3 SET_Command
  210. Here are some of the parameters you can change with the SET
  211. command.  Note that some of these parameters require further
  212. specification.  E.g.  there are several RECEIVE parameters, so
  213. commands using SET RECEIVE look like "SET RECEIVE PACKET-LENGTH
  214. 1000".  See the manual or internal HELP command for details.
  215.  
  216. ALARM          A timer for use in scripts.
  217. ATTRIBUTES     Turn attribute packet processing on or off.
  218. BLOCK-CHECK    Level of packet error detection.
  219. BUFFERS        Size of send and receive packet buffers.
  220. CARRIER-WATCH  Treatment of carrier on serial connections.
  221. CASE           Treatment of alphabetic case in string comparisons.
  222. COMMAND        Command terminal settings, such as BYTESIZE.
  223. CONTROL-CHAR   Controls prefixing of individual control characters.
  224. COUNT          Initialization of IF COUNT loops.
  225. DEBUG          Log or display debugging information.
  226. DEFAULT        Synonym for CD.
  227. DELAY          How long to wait before sending first packet.
  228. DESTINATION    Where incoming files should go.
  229. DIAL           Parameters for telephone dialing.
  230. DUPLEX         Specify which side echoes during CONNECT.
  231. ESCAPE         Prefix for "escape commands" during CONNECT.
  232. EXIT           EXIT WARNING and EXIT STATUS.
  233. FILE           Set various file parameters.
  234. FLOW-CONTROL   Communication line full-duplex flow control.
  235. HANDSHAKE      Communication line half-duplex turnaround character.
  236. HOST           Specify network host name.
  237. INPUT          Control behavior of INPUT command.
  238. KEY            Key mapping during terminal connection.
  239. LANGUAGE       Enable language-specific character-set translations.
  240. LINE           Serial communication line device name.
  241. MACRO          Control aspects of macro execution.
  242. MODEM          Modem type and modem-specific parameters.
  243. NETWORK        Select type of network.
  244. PARITY         Communication line character parity.
  245. PORT           Synonym for LINE.
  246. PRINTER        Select printer device or file.
  247. PROMPT         The C-Kermit program's interactive command prompt.
  248. QUIET          Select message verbosity level.
  249. RECEIVE        Parameters for inbound packets.
  250. REPEAT         Control run-length compression in file transfers.
  251. RETRY          Packet retransmission limit.
  252. SCRIPT         Control SCRIPT command.
  253. SEND           Parameters for outbound packets.
  254.                See RECEIVE for subparameters.  Normally you need set
  255.                only RECEIVE parameters.  SEND parameters are
  256.                automatically set by the Kermit on the other end.
  257. SERVER         Parameters for server operation.
  258. SPEED          Communication line speed, e.g. 2400, 9600.
  259. TAKE           Control aspects of TAKE file execution.
  260. TCP            TCP protocol parameters.
  261. TELNET         TELNET protocol parameters.
  262. TERMINAL       Terminal parameters.
  263. TRANSFER       File transfer parameters.
  264. TRANSMIT       Control aspects of TRANSMIT command execution.
  265. UNKNOWN-CHAR   Specify handling of unknown character sets.
  266. WINDOW-SIZE    File transfer window size.
  267. 3 SHOW_Command
  268. The SHOW command displays the current values of Kermit parameters,
  269. programming constructs etc.  The usage is
  270.  
  271.   SHOW  [ category ]
  272.  
  273. where "category" may be any of the keywords listed below.  SHOW
  274. without any argument gives a summary of the most important
  275. parameters affecting communication and file transfer.  The available
  276. categories are as follows:
  277.  
  278. ALARM              SET ALARM value.
  279. ARGUMENTS          List of currently-defined macro arguments.
  280. ARRAYS             List of arrays defined.
  281. ATTRIBUTES         Settings (on or off) of individual attributes.
  282. CHARACTER-SETS     Current character-set selections.
  283. COMMUNICATIONS     Settings of line speed, parity etc.
  284. COMMAND            Command / console settings.
  285. COUNT              Value of COUNT variable
  286. DEFAULT            Default device and directory.
  287. DIAL               Settings for DIAL command.
  288. ESCAPE             Setting of escape character.
  289. EXIT               SET EXIT values.
  290. FEATURES           C-Kermit configuration features and options.
  291. FILE               Settings for file transfer parameters.
  292. FUNCTIONS          List of built-in functions.
  293. GLOBALS            List of "\%x" variables and their values.
  294. KEY                Value assigned to key subsequently pressed.
  295. LABELED-FILE-INFO  Settings of VMS attributes to be encapsulated.
  296. LANGUAGES          Languages available for SET LANGUAGE command.
  297. MACROS             Listings of currently-defined macros.
  298. MODEM              Modem type and modem-specific settings.
  299. NETWORK            Available network support and current connection.
  300. PRINTER            SET PRINTER values.
  301. PROTOCOL           Packet sizes and other protocol-related data.
  302. SCRIPTS            Settings in force for script programs.
  303. SERVER             Server functions and whether enabled.
  304. STATUS             SUCCESS or FAILURE of last command.
  305. TERMINAL           Settings of terminal bytesize, character set etc.
  306. TRANSMIT           Settings in force for TRANSMIT command.
  307. VARIABLES          List built-in variables and their values.
  308. VERSIONS           Versions of source modules used in compilation.
  309. 2 GENERAL_SYNOPSIS
  310. Kermit is a family of file transfer, management, and telecommunication
  311. programs available on many different computer operating systems and
  312. architectures.  Kermit programs transfer both text and binary files
  313. completely and correctly, and most Kermit programs include dial-out and
  314. terminal connection capability.  This help topic describes version 7.0 of
  315. C-Kermit, the Kermit program written in C for UNIX, (Open)VMS, VOS, and
  316. several other computer systems.
  317.  
  318. Kermit is designed to help you communicate between two computers over
  319. dial-ups and other serial connections, and in most cases also over TCP/IP
  320. networks.  Once the connection is established, you can conduct a terminal
  321. session and you can transfer files.  To transfer files, you need to run
  322. Kermit on both computers.
  323.  
  324. Kermit is an "integrated" communications program.  It does the same thing
  325. as separate dial-out programs like CU, tip or VAXNET and file transfer
  326. programs such as Zmodem, NFT, or FTP.  It also has a script language,
  327. which you can use to automate communications tasks.  PC implementations
  328. of Kermit also have a terminal emulator built in.  The version of Kermit
  329. described in this help topic does not include a terminal emulator because
  330. most systems on which it is used don't need one.
  331.  
  332. Kermit has one major philosophical difference from most file transfer
  333. programs.  With programs such as Xmodem, in order to transfer a file you
  334. have to tell the program on the remote machine to send the file, then
  335. return to your local computer and tell it to receive the file.  For every
  336. file to be sent or received, you must give commands to both computers.
  337. Kermit can operate in this way too, but an alternative mode of use allows
  338. you to control all operations from your local computer.  In this mode the
  339. copy of Kermit on the remote machine acts as a "server".  Your local
  340. computer initiates all operations, sending the necessary commands to the
  341. remote Kermit.  In addition to transferring files, you can also tell
  342. Kermit to execute commands on the server, such as listing directories,
  343. deleting files, and even sending e-mail.
  344.  
  345. Normally you give Kermit commands interactively.  That is, to start
  346. Kermit, simply type the command "KERMIT" with no arguments.  Once Kermit
  347. has started up, it will prompt you for commands.  Kermit's command
  348. interpreter has good built-in help facilities.  If you use the same
  349. command sequences a lot, you can put them into files, and get Kermit to
  350. execute them automatically.  It is also possible to give Kermit commands
  351. by using options on the command line.  The options available are
  352. described in the "Parameters" section of this help topic.
  353.  
  354. Kermit's command language is too extensive to describe completely in a
  355. help topic, although other sections outline some of the facilities
  356. available.  See "Using C-Kermit" for complete documentation.
  357. 2 INITIALIZATION
  358. When C-Kermit starts, it executes commands from its initialization file.
  359. The search for the initialization file proceeds in the following order:
  360.  
  361.  1. If the "-Y" (uppercase) command-line option is given,
  362.     initialization-file processing is skipped.  Otherwise:
  363.  2. The file specified in the "-y" command-line option, if any.
  364.  3. The file CKERMIT_INI:CKERMIT.INI.
  365.  2. The file designated by the logical name CKERMIT_INIT.
  366.  3. The file SYS$LOGIN:CKERMIT.INI.
  367.  
  368. C-Kermit executes those commands before prompting you for interactive
  369. commands.  A typical initialization file might read as follows:
  370.  
  371.   SET RECEIVE PACKET 960
  372.   SET WINDOW 2
  373.   SET BLOCK 3
  374.  
  375. These commands set long packet sizes and a window size of 2 for
  376. receiving files, together with a strengthened checksum which is
  377. recommended for long packets.
  378. 2 KERMIT_HELP
  379. Kermit has extensive built-in help.  You can find out what commands
  380. exist by typing ? in response to the "C-Kermit>" prompt.  For commands
  381. that take multiple arguments, you can type ? wherever an argument is
  382. expected to see the possible choices; e.g. SET has many different
  383. things you can set, an example being SET RECEIVE PACKET-LENGTH 1000.
  384. You can type "SET ?", "SET RECEIVE ?", or "SET RECEIVE PACKET-LENGTH ?"
  385. to see the options available at each level.
  386.  
  387. You can type also HELP followed by the name of a command for fuller
  388. information on it; e.g. "HELP SET" gives information about the "SET"
  389. command in general, "HELP SET RECEIVE" tells about the SET RECEIVE
  390. command.
  391. 2 Command_Line_Options
  392. The full syntax of the KERMIT command is as follows:
  393.  
  394.   KERMIT  [cmdfile] [-x arg [-x arg]...[-yyy]...]] [= arg [arg ...]]
  395.  
  396. where:
  397.  
  398.   cmdfile is an optional command file to be executed after initialization,
  399.     -x  is an option requiring an argument,
  400.     -y  an option with no argument, and
  401.     arg is an argument word.
  402.   Words after the = sign are ignored by the program but made available
  403.   to the user in the array \&@[].
  404.  
  405. C-Kermit is often run without any command-line arguments or with just
  406. a command file, i.e. in one of the simpler variants:
  407.  
  408.   KERMIT
  409.  
  410. or:
  411.  
  412.   KERMIT cmdfile
  413.  
  414. Using this approach any Kermit parameters not set by the initialization
  415. file (see "INITIALIZATION" in this help topic), followed by those in
  416. "cmdfile" if present, may be set using interactive commands.
  417.  
  418. Command-line options provide a further way to set certain parameters
  419. and/or initiate certain actions for that particular invocation of
  420. Kermit.  This can be a useful short-cut in specific cases, e.g.
  421.  
  422.   KERMIT -s *.C
  423.  
  424. will start up Kermit, send all files with a filetype of .C in the
  425. current directory, and then exit.
  426.  
  427. From VMS, type the command "kermit -h" for a list of possible command-
  428. line options.  The principal ones are listed below.  You can get a
  429. complete list by typing HELP OPTIONS at the C-Kermit> prompt.  The
  430. options are case-sensitive.  Upper-case options must be enclosed in
  431. doublequotes.
  432.  
  433. Settings:
  434.  
  435.   -l device    Communication line device
  436.   -j host      Network host name (if network support included)
  437.   -q           Be Quiet during file transfer
  438.   -i           Binary file transfer
  439.   -b rate      Line speed (baud rate), e.g. 1200, used with -l
  440.   -m name      Modem type, e.g. hayes
  441.   -p x         Parity, x = e, o, m, s, or n
  442.   -t           Half duplex, XON handshake
  443.   -e n         Receive packet length
  444.   -v n         Window size
  445.   -y name      Alternate initialization file name
  446.   -Y           Do not execute initialization file
  447.   -d           Log debug information to DEBUG.LOG
  448.   -B           For use in batch
  449.  
  450. Actions:
  451.  
  452.   -s files     Send files
  453.   -s -         Send files from standard input (SYS$INPUT)
  454.   -r           Receive files
  455.   -k           Receive files to standard output (SYS$OUTPUT)
  456.   -x           Enter server mode
  457.   -f           Finish remote server
  458.   -g files     Get remote files from server
  459.   -a name      Alternate file name, used with -s, -r, -g
  460.   -c           Connect (before file transfer, used with -l and -b)
  461.   -n           Connect (after file transfer, used with -l and -b)
  462.   -S           Stay (do not exit after executing action commands)
  463.  
  464. If no action command is included, enter interactive dialog.
  465. 2 SCRIPT_PROGRAMMING
  466. C-Kermit includes a powerful programming language, permitting complex
  467. sequences of Kermit instructions to be executed under the control of a
  468. user-supplied program.  The language features include simple variables,
  469. arrays, control structures, macros, and numeric and algebraic
  470. manipulations of variables including a range of built-in functions.
  471.  
  472. Programmed sequences of commands are stored in regular VMS files.  Such
  473. a program is executed by feeding the file to Kermit's command
  474. interpreter using the TAKE command:
  475.  
  476.   TAKE command-file
  477.  
  478. The TAKE command may be issued as an interactive command at the
  479. "C-Kermit>" prompt.  In addition, an implicit TAKE command reads the
  480. initialization file when Kermit is started, followed by a further one if
  481. a command file name has been included as a command-line option: thus
  482. either of these files may include program sequences.
  483.  
  484. Command files may themselves contain TAKE commands.  Command files may
  485. be nested in this way to any reasonable depth.
  486. 3 CONTROL_STRUCTURES
  487. Kermit's programming language provides several means for writing
  488. loops and for conditional branching or transfer of control.  The
  489. principal control structures are summarized here.
  490.  
  491. Simple loops are constructed using the FOR command.  FOR loops take
  492. the form:
  493.  
  494.   FOR variable iv fv step { command, command, ... }
  495.     The FOR loop is controlled by a loop variable which is assigned
  496.     an initial value (iv), gets tested against a final value (fv),
  497.     and gets incremented by a step value.  If the step value is
  498.     positive, the loop exits when the loop variable is greater than
  499.     the final value.  If the step is negative, the loop exits when
  500.     the variable becomes less than the final value.
  501.  
  502. Conditional actions can be programmed using the IF, XIF ("extended
  503. if") or WHILE commands.  The syntax of these is as follows:
  504.  
  505.   IF [NOT] condition command1
  506.   [ELSE command2]
  507.  
  508.   XIF condition { command1, command2... } [ ELSE { command3, ... } ]
  509.  
  510.   WHILE condition { command1, command2... }
  511.  
  512.   SWITCH variable { :val1,commands,BREAK,:val1,commands,BREAK,... }
  513.  
  514. The simple IF can only execute one command if the condition is true;
  515. similarly the optional ELSE on the following line can only control
  516. one command.  XIF and its optional ELSE clause typically has
  517. multiple commands enclosed in the braces, as does the WHILE form of
  518. loop.  The XIF..[ELSE] and WHILE structures are each logically
  519. written all on one line, but may be spread over more than one actual
  520. line by use of the line continuation character - (hyphen).
  521.  
  522. The conditions for which it is possible to test, illustrated in the
  523. context of the IF command, include the following (see "Using C-Kermit"
  524. for a complete treatment):
  525.  
  526.   IF SUCCESS
  527.       The previous command succeeded.
  528.  
  529.   IF FAILURE
  530.       The previous command failed.
  531.  
  532.   IF DEFINED name
  533.       The named variable or macro is defined.
  534.  
  535.   IF COUNT
  536.       Subtract one from COUNT, execute the command if the result is
  537.       greater than zero (COUNT is a special variable used for simple
  538.       counted loops, initialized by SET COUNT).
  539.  
  540.   IF EXIST filename
  541.       The named file exists.
  542.  
  543.   IF NUMERIC variable
  544.       The variable's value is numeric.
  545.  
  546.   IF EQUAL s1 s2
  547.       s1 and s2 (character strings or string variables) are equal.
  548.  
  549.   IF LLT s1 s2
  550.       s1 is lexically (alphabetically) less than s2.  Use IF NOT LGT
  551.       for less-than-or-equal.
  552.  
  553.   IF LGT s1 s1
  554.       s1 is lexically (alphabetically) greater than s2.  Use IF NOT
  555.       LLT for greater-than-or-equal.
  556.  
  557.   IF = n1 n2
  558.       n1 and n2 (numbers or numeric variables) are equal.
  559.  
  560.   IF < n1 n2
  561.       n1 is arithmetically less than n2. Use IF NOT > for
  562.       less-than-or-equal.
  563.  
  564.   IF > n1 n2
  565.       n1 is arithmetically greater than n2\n.  Use IF NOT < for
  566.       greater-than-or-equal.
  567.  
  568. Various commands exist to transfer control to another part of the
  569. program.  These are often used in conjunction with a conditional of
  570. some nature.  Examples are
  571.  
  572.   GOTO label   Transfers control to the point in the program marked
  573.                by "label".  A label is a string preceded by a colon
  574.                (:) at the beginning of a line, thus
  575.  
  576.        IF < \x% 10 GOTO LESS
  577.           .
  578.           .
  579.        :LESS
  580.  
  581.   STOP         Stops execution of the program and returns control to
  582.                C-Kermit.
  583.  
  584.   END          Exits from a macro or command file, and returns to the 
  585.                point from which the macro or file was called (also 
  586.                RETURN, see documentation for details).
  587.  
  588.   BREAK        Exits unconditionally from closest enclosing FOR or
  589.                WHILE loop.
  590.  
  591.   CONTINUE     Forces jump to next iteration (if any) of closest
  592.                enclosing FOR or WHILE loop.
  593. 3 EXPRESSIONS
  594. The \Feval function allows the following operators in the
  595. expression to be evaluated.  The expression can use variables
  596. beginning with \%.  Syntax, precedences etc. are shown below:
  597.  
  598. Operator  Fix  Precedence   Operation         Example
  599.  
  600.  (   )             1        Group             (\%a + 3) * (\%1 - 5)
  601.    !      Post     2        Factorial         \%x! - (\%x - 2)!
  602.    ~      Pre      3        Logical NOT       ~\%n
  603.    -      Pre      3        Negative          -\%n
  604.    ^      In       4        Raise to power    2^\%p
  605.    *      In       5        Multiply          \%c * 5
  606.    /      In       5        Divide            \%c / 5
  607.    %      In       5        Modulus           \%c % 5
  608.    &      In       5        Logical AND       \%c & 5
  609.    +      In       6        Add               \%t + \%u
  610.    -      In       6        Subtract          127 - \%x
  611.    |      In       6        Logical OR        \%z | 4
  612.    #      In       6        Exclusive OR      \%z # 4
  613.    @      In       6        Greatest common   \%z @ 30
  614.                                divisor
  615. 3 FILE_HANDLING
  616. Kermit programs can read from and write to local files.  The
  617. relevant commands are OPEN, CLOSE, READ and WRITE.  The use of these
  618. is as follows:
  619.  
  620.   OPEN mode filename
  621.        "Mode" can be READ, WRITE or APPEND.  !READ and !WRITE are
  622.        also allowed; the meaning of these is to read from or write
  623.        to a VMS command rather than a physical file.  E.g. OPEN READ
  624.        KERMIT.DOC opens the (real) file KERMIT.DOC for reading,
  625.        while OPEN !READ DIR *.TXT requests the directory listing of
  626.        files with filetype .TXT as input.
  627.  
  628.   CLOSE mode
  629.        E.g. CLOSE READ, CLOSE WRITE etc.  Closes the file or
  630.        input/output stream defined by the mode name.
  631.  
  632.   READ variable-name
  633.        Reads a line of the file or command output, defined by the
  634.        OPEN READ or OPEN !READ statement, into the variable
  635.        specified.
  636.  
  637.   WRITE destination text-expression
  638.        Writes the information generated by "text-expression" to the
  639.        specified destination.  "Destination" may be FILE, which
  640.        writes to the file or output stream opened for writing by the
  641.        appropriate OPEN statement, but may also be any of the four
  642.        possible log files (DEBUG-LOG, PACKET-LOG, SESSION-LOG or
  643.        TRANSACTION-LOG).  "Text-expression" may contain text,
  644.        variable names, functions, expressions etc. and is evaluated
  645.        before writing.  WRITELN writes a "line" of text, or a text
  646.        record.  WRITE writes only the characters included in the text.
  647. 3 FUNCTIONS
  648. A range of built-in functions is provided in C-Kermit.  These are
  649. invoked via the general syntax \Fname(args).  From within C-Kermit
  650. they can be listed via the command SHOW FUNCTIONS.  See "Using C-Kermit"
  651. for a complete list, descriptions, examples, etc.
  652.  
  653.   \Fliteral(arg)     copy argument literally, no evaluation
  654.   \Fcharacter(arg)   return the character corresponding to
  655.                      number or numeric variable arg
  656.   \Fcode(arg)        return numeric code of character arg
  657.   \Fsubstr(a1,a2,a3) substring of a1, starting at a2, length a3
  658.   \Fright(a1,a2)     rightmost a2 characters of string a1
  659.   \Flower(arg)       convert to lower case
  660.   \Fupper(arg)       convert to upper case
  661.   \Freverse(arg)     reverse characters in string arg
  662.   \Frepeat(a1,a2)    repeat a1 a2 times
  663.   \Flpad(text,n,c)   left pad text to length n with char c
  664.   \Frpad(text,n,c)   right pad text to length n with char c
  665.   \Fexecute(m a)     execute macro named "m" with given
  666.                      parameters "a"
  667.   \Fcontents(v)      return current definition of variable
  668.   \Fdefinition(m)    return current definition of macro
  669.   \Flength(arg)      return the length of the string "arg"
  670.   \Findex(a1,a2,a3)  position of a2 in string a1, starting
  671.                      at position a3
  672.   \Ffiles(spec)      number of files matching file specification
  673.   \Fnextfile()       next file name from list in last \Ffiles
  674.   \Fmax(a1,a2)       maximum of two numbers
  675.   \Fmin(a1,a2)       minimum of two numbers
  676.   \Feval(expr)       evaluate arithmetic expression
  677. 3 MACROS
  678. A macro is a command that you define, composed of one or more other
  679. C-Kermit commands.  A typical macro is a list of Kermit commands,
  680. separated by commas.  For example:
  681.  
  682.   DEFINE SUN SET SPEED 9600, SET PARITY NONE, SET DUPLEX FULL,-
  683.   SET FLOW XON/XOFF
  684.  
  685. You call a macro by using its name, just like a normal command.  You
  686. can also call a macro using the DO command.  If you have given the
  687. DEFINE command above (or have it in your initialization file), then
  688. you can type SUN or DO SUN to execute all the commands in the
  689. definition.
  690.  
  691. Macros have normal names (i.e. not beginning with \).  You call them
  692. by using the name like a command.  If you put additional words on
  693. the same line as the macro invocation, these become arguments.
  694. Inside the macro, you can refer to the arguments as \%1, \%2, etc.
  695. For example:
  696.  
  697.   C-Kermit>DEFINE BSEND SET FILE TYPE BINARY, SEND \%1
  698.   C-Kermit>DEFINE TSEND SET FILE TYPE TEXT, SEND \%1
  699.   C-Kermit>BSEND KERMIT.EXE
  700.   C-Kermit>TSEND KERMIT.DOC
  701.  
  702. The number of arguments supplied can be referred to as \v(argc).  If
  703. you call another macro from a macro, the new one gets its own set of
  704. arguments, which do not interfere with the previous set.
  705. 3 SCRIPTED_COMMUNICATION
  706. The interactive command CONNECT and the escape sequence Ctrl-\ C,
  707. which normally switch the console terminal between the two
  708. computers, cannot be used in a scripted sequence.  Instead there are
  709. two commands, INPUT and OUTPUT, which control the dialog in the
  710. script context, supplemented by a few other commands.  Brief details
  711. are as follows:
  712.  
  713. OUTPUT text
  714.     Send the text to the other computer.
  715.  
  716. INPUT timeout text
  717.     Read responses from the other computer.  Wait up to "timeout"
  718.     seconds for the specified text to appear.  If the text appears
  719.     within the timeout interval, the command succeeds immediately.
  720.     Otherwise it fails.  Test with IF SUCCESS or IF FAILURE.
  721.  
  722. MINPUT timeout text1 text2 text3 ...
  723.     Like INPUT but looks for multiple targets simultaneously.
  724.  
  725. REINPUT timeout text
  726.     Searches previous responses from the computer for the given
  727.     text.  The timeout parameter is ignored.
  728.  
  729. ECHO [ text ]
  730.     Display the text on the local screen, followed by a newline.
  731.  
  732. CLEAR { INPUT, DEVICE, BOTH }
  733.     Clear any as-yet-unread characters from the communication
  734.     device's input buffer, the INPUT command buffer, or both.
  735.  
  736. PAUSE [ n ]
  737.     Do nothing for the indicated number of seconds, the default
  738.     being 1.
  739.  
  740. For further details of these and related commands, see the full
  741. documentation, "Using C-Kermit".  A special case of programmed terminal
  742. dialog, intended mainly for UUCP-style login sequences, is provided by
  743. the SCRIPT command.
  744. 4 SCRIPT_Command
  745. SCRIPT is a concise method for specifying a dialog between your system
  746. and another one.  There is also a more powerful general purpose script
  747. programming language, whose commands are described elsewhere in this
  748. help topic.  The SCRIPT command can be used for dialing, logging in,
  749. etc.  The syntax consists of strings separated by spaces.  The syntax is
  750.  
  751.   SCRIPT  expect send [expect send] . . .
  752.  
  753. Kermit waits until it sees the expect string, and then sends the send
  754. string.  If there are several pairs, it waits for each expect string,
  755. and then sends the send string.  (To specify a null expect string, i.e.
  756. to tell Kermit not to wait, use ~0 as the expect string.)  It normally
  757. waits up to 15 seconds for each expect string.  However ~w can be used
  758. to redefine this time.  If the expect string does not arrive, the script
  759. fails at that point.  If you want to be able to do something about
  760. failure, you can use conditional strings, of the form
  761.  
  762.   -send-expect[-send-expect[...]]
  763.  
  764. You can think of this as giving a list of things to try.  The first time
  765. one succeeds (i.e. an expected string arrives), the command terminates.
  766. At that point Kermit skips to the end of the dashed sequence.  If an
  767. expect fails, Kermit simply proceeds with the next send in the dashed
  768. sequence.
  769.  
  770. Within the strings, some special sequences can be used:
  771.  
  772.   ~b         backspace
  773.   ~s         space
  774.   ~q         `?' (trapped by Kermit's command interpreter)
  775.   ~n         linefeed
  776.   ~r         carriage return
  777.   ~t         tab
  778.   ~'         single quote
  779.   ~-         dash (hyphen)
  780.   ~~         tilde
  781.   ~"         double quote
  782.   ~x         XON (Control-Q)
  783.   ~c         don't append a carriage return
  784.   ~o[o[o]]   octal representation of an ASCII character code
  785.   ~d         delay approx 1/3 second during send
  786.   ~w[d[d]]   set wait for next expect to "dd" seconds
  787.   \\b        send a BREAK signal
  788.  
  789. Kermit sends a carriage return after each of the send strings
  790. unless the string has a ~c.
  791. 3 VARIABLES
  792. C-Kermit also lets you define variables.  Normal variables look like
  793. \%i, where i is a single letter.  The alphabetic case doesn't matter,
  794. i.e. \%a and \%A are the same variable.  Like macros, they are defined
  795. by DEFINE or ASSIGN.  All values are strings.  DEFINE gives a variable a
  796. fixed value.  ASSIGN computes a value and assigns it to the variable. To
  797. see the difference, look at
  798.  
  799.   DEFINE \%A Monday
  800.   DEFINE \%B Today is \%A
  801.   ASSIGN \%C Today is \%A
  802.   DEFINE \%A Tuesday
  803.   ECHO \%B
  804.   ECHO \%C
  805.  
  806. This will print "Today is Tuesday" then "Today is Monday".  The
  807. difference is that when defining \%C, the \%A is evaluated at the time
  808. of the definition, whereas when defining \%B, the variable name \%A
  809. itself is put in the definition.  It isn't evaluated until the command
  810. "ECHO \%B" is obeyed.
  811.  
  812. There are also arrays, which use \& instead of \%.  They are declared by
  813. DECLARE, e.g. DECLARE \&A[100].  Elements are referenced with
  814. subscripts, which may themselves be variables, and act like simple
  815. variables, e.g.
  816.  
  817.   DEFINE \&A[3] Tuesday
  818.  
  819. The first subscript of an array is [1].  You can destroy the array
  820. by making it zero size, e.g. DECLARE \&A[0].
  821. 4 PREDEFINED
  822. There are a number of built-in variables, which are referred to by
  823. \v(name).  They cannot be changed by the user.  To list these from
  824. within C-Kermit give the command SHOW VARIABLES.  See "Using C-Kermit"
  825. for a complete treatment.
  826.  
  827. \v(argc)       number of arguments passed to currently active macro.
  828. \v(args)       number of arguments passed to the program on the
  829.                command line.  The program argument vector is
  830.                assigned to the array \&@[].
  831. \v(cmdfile)    name of currently active command file, if any
  832. \v(cmdlevel)   current command level (command stack depth)
  833. \v(cmdsource)  source of current commands: prompt, macro, or file
  834. \v(count)      current value of COUNT (loop control via SET
  835.                COUNT, IF COUNT).
  836. \v(cpu)        CPU hardware type, if known, otherwise "unknown".
  837. \v(date)       current date in dd mmm yyyy format (e.g.  8 Feb 1992).
  838. \v(day)        current day of the week, e.g. Mon, Tue, Wed.
  839. \v(directory)  current device and/or directory.
  840. \v(exitstatus) current program exit status.
  841. \v(filespec)   file specification from most recent SEND, MSEND,
  842.                or GET command, or the name of the file most
  843.                recently received.
  844. \v(fsize)      size of last file transferred.
  845. \v(home)       user's home (login) directory name.
  846. \v(host)       local computer's hostname.
  847. \v(input)      current INPUT buffer contents.
  848. \v(line)       current communication device or network host name.
  849. \v(local)      1 if C-Kermit in local mode, 0 if in remote mode.
  850. \v(macro)      name of currently executing macro, if any.
  851. \v(ndate)      current date in numeric format, e.g. 19911225.
  852. \v(nday)       numeric day of the week: 0, 1, 2, ..., 6.
  853. \v(ntime)      current time in seconds since midnight, 0 through
  854.                86399.
  855. \v(platform)   name of specific machine or environment for which
  856.                C-Kermit was built.
  857. \v(program)    name of program (C-Kermit).
  858. \v(return)     value of most recent RETURN command.
  859. \v(speed)      transmission speed of current communication
  860.                device, if known.  (A spurious value of 38400
  861.                might be reported for pseudoterminals.)
  862. \v(status)     0 if the previous command succeeded, nonzero if
  863.                it failed.
  864. \v(system)     name of generic operating system for which
  865.                C-Kermit was built, such as UNIX or VMS.
  866. \v(tfsize)     total size of all files in the last group of
  867.                files that was transferred.
  868. \v(time)       current time in hh:mm:ss 24-hour clock format
  869.                (e.g. 13:45:23).
  870. \v(version)    numeric version number of C-Kermit.
  871. 2 TRANSFERRING_FILES
  872. To transfer files, Kermit must be run on both of the computers involved.
  873. Transfers may be carried out either by controlling both computers
  874. directly, or by putting one of them into "server" mode and controlling
  875. operations entirely from the other.
  876.  
  877. In the first method, one computer is given a SEND command, and the
  878. other with a corresponding RECEIVE command.  The user switches control
  879. from one computer to the other using:
  880.  
  881. (a) the CONNECT command - this switches control from the "local" system
  882.     (usually, but not necessarily, the microcomputer or workstation on
  883.     the user's desktop) to the "remote" system; and
  884.  
  885. (b) the "escape sequence" - this switches control from the remote system
  886.     back to the local system.  The escape sequence is normally Ctrl-\ C
  887.     (Control-backslash followed by "C") for C-Kermit, but Alt-X or
  888.     Ctrl-] C (Control-] followed by "C") for MS-DOS or OS/2 Kermit.
  889.  
  890. The second method using one of the Kermits as a server is described in
  891. the "SERVER_USAGE" sub-topic.
  892. 3 CHARACTER_SETS
  893. C-Kermit has the ability to send, receive and store files in a wide
  894. range of 7-bit and 8-bit character sets, including many which are
  895. designed for languages other than English.  Two character sets have to
  896. be distinguished: that which applies to the file as stored under VMS,
  897. and that used "on the wire" (i.e. the communications line or network
  898. connection) during file transfer.  These are set via the commands "SET
  899. FILE CHARACTER-SET" and "SET TRANSFER CHARACTER-SET" respectively.
  900.  
  901. The possible arguments for the SET FILE CHARACTER-SET command are:
  902.  
  903.  Name                   Bits   Script
  904.   ASCII                   7     Roman
  905.   BRITISH                 7     Roman
  906.   CANADIAN-FRENCH         7     Roman
  907.   CP437                   8     Roman, West European multinational
  908.   CP850                   8     Roman, West European multinational
  909.   CP852                   8     Roman, East European multinational
  910.   CP862-HEBREW            8     Roman + Hebrew
  911.   CP866-CYRILLIC          8     Roman + Cyrillic
  912.   CP869-GREEK             8     Roman + Greek
  913.   CYRILLIC-ISO            8     Roman + Cyrillic
  914.   DANISH                  7     Roman
  915.   DEC-KANJI              16     Roman + Japanese
  916.   DEC-MULTINATIONAL       8     Roman, West European multinational
  917.   DG-INTERNATIONAL        8     Roman, West European multinational
  918.   DUTCH                   7     Roman
  919.   ELOT927-GREEK           7     Greek
  920.   ELOT928-GREEK           7     Roman + Greek
  921.   FINNISH                 7     Roman
  922.   FRENCH                  7     Roman
  923.   GERMAN                  7     Roman
  924.   GREEK-ISO               8     Roman + Greek
  925.   HEBREW-7                7     Roman + Hebrew
  926.   HEBREW-ISO              8     Roman + Hebrew
  927.   HP-ROMAN8               8     Roman
  928.   HUNGARIAN               7     Roman
  929.   ITALIAN                 7     Roman
  930.   JAPANESE-EUC           16     Roman + Japanese
  931.   JIS7-KANJI             16     Roman + Japanese
  932.   KOI8-CYRILLIC           8     Roman + Cyrillic
  933.   LATIN1-ISO              8     Roman, West European multinational
  934.   LATIN2-ISO              8     Roman, East European multinational
  935.   MACINTOSH-LATIN         8     Roman, West European multinational
  936.   NEXT-MULTINATIONAL      8     Roman, West European multinational
  937.   NORWEGIAN               7     Roman
  938.   PORTUGUESE              7     Roman
  939.   SHIFT-JIS-KANJI        16     Roman + Japanese
  940.   SHORT-KOI               7     Roman + Cyrillic
  941.   SPANISH                 7     Roman
  942.   SWEDISH                 7     Roman
  943.   SWISS                   7     Roman
  944.  
  945. The possible arguments for the SET TRANSFER CHARACTER-SET command
  946. are:
  947.  
  948.  Name                   Bits   Script
  949.   ASCII                   7     Roman
  950.   CYRILLIC-ISO            8     Roman + Cyrllic
  951.   GREEK-ISO               8     Roman + Greek
  952.   HEBREW-ISO              8     Roman + Hebrew
  953.   JAPANESE-EUC           16     Roman + Japanese
  954.   LATIN1-ISO              8     Roman, West European Multinational
  955.   LATIN2-ISO              8     Roman, East European Multinational
  956.   TRANSPARENT 
  957.  
  958. where TRANSPARENT (the default) implies that no translation is
  959. attempted.  For translation between character sets involving accented or
  960. other foreign language characters, it will normally be necessary to use
  961. an 8-bit transfer character set such as LATIN1-ISO or CYRILLIC-ISO.
  962. 3 SERVER_USAGE
  963. Here's one way to use Kermit to transfer files.  It makes use of the
  964. "server" capability of VMS C-Kermit.  The procedure is as follows:
  965.  
  966.   + Run Kermit on your local (desktop) computer.
  967.  
  968.   + Establish connection to the VMS computer.  If your local
  969.     computer is running C-Kermit, and you are dialing with a modem,
  970.     then use the sequence SET MODEM <modem-name>, SET SPEED <rate>,
  971.     DIAL <number>.  If you are using MS-DOS or other Kermit that
  972.     lacks a DIAL command, carry on to the next step.
  973.  
  974.   + Set any other necessary communication parameters, such as PARITY,
  975.     DUPLEX, and FLOW-CONTROL.
  976.  
  977.   + Give the CONNECT command.  If you have a modem, but have not yet
  978.     dialed the VMS computer, type the modem dialing commands now.
  979.  
  980.   + Log in to VMS.
  981.  
  982.   + Start C-Kermit on VMS, and give it any desired SET commands for
  983.     file, communication, or protocol-related parameters.  If you
  984.     will be transferring binary files, give the command SET FILE
  985.     TYPE BINARY to the remote Kermit.
  986.  
  987.   + Give C-Kermit the SERVER command.
  988.  
  989.   + Escape back to the Kermit program on your local (desktop)
  990.     computer.  If your local computer is running C-Kermit, type
  991.     Ctrl-\ C (Control-backslash followed by the letter "C").  If
  992.     using MS-DOS Kermit, use Alt-X or Ctrl-] C.  You should now see
  993.     your local Kermit program's prompt.
  994.  
  995.   + If you will be transferring binary files, give the command SET
  996.     FILE TYPE BINARY.
  997.  
  998.   + Use GET followed by the filename to get files from VMS to your
  999.     local computer.  Use SEND followed by the filename to put files
  1000.     from your local computer to VMS.  You may use "wildcard"
  1001.     characters such as * and ? in the filenames to specify groups of
  1002.     files.
  1003.  
  1004.   + When you finish transferring files, and you need to continue your
  1005.     work on VMS, type FINISH and then CONNECT.  You're now talking to
  1006.     C-Kermit on VMS.
  1007.  
  1008.   + If you don't need to go back to the remote computer again, type
  1009.     the BYE command to the local Kermit program.  This will shut
  1010.     down the remote Kermit server and terminate (log you off) your
  1011.     VMS session.
  1012. 3 VMS_SPECIFICS
  1013. The standard Kermit file types of BINARY and TEXT should cope with
  1014. most circumstances when files are transferred to or from VMS
  1015. systems.  When sending, VMS files whose record organization is
  1016. "Fixed" or "Undefined" are assumed to be BINARY; all other file
  1017. types are assumed to be TEXT.
  1018.  
  1019. The default record length for binary files is 512 bytes.  This can
  1020. be changed by the command "SET FILE RECORD-LENGTH n".
  1021.  
  1022. SET FILE TYPE LABELED is an option specific to VMS C-Kermit.  If
  1023. invoked when sending a file, this causes the majority of the VMS
  1024. file attributes to be encoded and sent as part of the file to the
  1025. other system.  This information cannot be utilized by other (non-
  1026. VMS) systems, but it is useful (a) for transmitting VMS file
  1027. attributes between two different VMS systems; (b) for storing a file
  1028. on a non-VMS system, while still allowing its attributes to be
  1029. recreated when it is imported back into VMS.
  1030.  
  1031. When sending or receiving a VMS file of type LABELED, set the file
  1032. type on the other system to BINARY.  Labeled files imported from
  1033. another system do not have their attributes recreated automatically:
  1034. an external utility CKVCVT is provided to do this.  A further
  1035. sub-topic describes the options available when running CKVCVT.
  1036. 4 CKVCVT
  1037. The CKVCVT utility regenerates VMS file attributes from a file
  1038. which has earlier been exported from VMS using the SET FILE TYPE
  1039. LABELED option.  Note that this is a completely separate program
  1040. from Kermit.  If desired it can be run from within Kermit by
  1041. giving a command of the form "! CKVCVT parameters".
  1042.  
  1043. Format
  1044.  
  1045.   CKVCVT  input-file [ options ]
  1046.  
  1047. The command-line options are as follows:
  1048.  
  1049.   -a        Preserve file ACL data (may require privileges)
  1050.   -b        Preserve file backup date
  1051.   -d        Print debugging information
  1052.   -f fn     Name output file fn instead of default
  1053.   -i        Inquire if a file is labeled
  1054.   -o        Preserve file ownership (requires privileges)
  1055.   -s        Strip one level of label information
  1056.   -t        Don't trim paths from output file name
  1057.   -?        Display this message
  1058.