📄 ckuker.nr
字号:
.\" @(#) kermit.1 8.0.211 2004/04/10 Columbia University.TH KERMIT 1 "APRIL 2004" "User Manuals".na.SH NAMEkermit \-.B C-Kermit 8.0:transport- and platform-independentinteractive and scriptable communications software..IPThis document is intended to give the beginner sufficient information to makebasic (if not advanced) use of C-Kermit 8.0. Although it might be rather longfor a Unix manual page, it's still far shorter than the C-Kermit manual, whichshould be consulted for advanced topics such as customization, character-sets,scripting, etc. We also attempt to provide a clear structural overview ofC-Kermit's many capabilities, functional areas, states, and modes and theirinterrelation, that should be helpful to beginners and veterans alike, as wellas to those upgrading to version 8.0 from earlier releases..PPThis document is also available as a Web page at:.IPhttp://www.columbia.edu/kermit/ckututor.html.SH DESCRIPTIONC-Kermit is an all-purpose communications software package from the KermitProject at Columbia University that:.PP.nf\(bu Is portable to many platforms, Unix and non-Unix alike..br\(bu Can make both serial and network connections..br\(bu Can conduct interactive terminal sessions over its connection..br\(bu Can transfer text or binary files over the same connection..br\(bu Can convert character sets in the terminal session..br\(bu Can convert character sets during text-file file transfer..br\(bu Is customizable in every aspect of its operation..fi.PPC-Kermit is a modem program, a Telnet client, an Rlogin client, an FTPclient, an HTTP client, and on selected platforms, also an X.25 client. Itcan make its own secure Internet connections using IETF-approved securitymethods including Kerberos IV, Kerberos V, SSL/TLS, and SRP and it can alsomake SSH connections through your external SSH client application. It canbe the far-end file-transfer or client/server partner of your desktopKermit client. It can also accept incoming dialed and network connections.It can even be installed as an Internet service on its own standard TCPsocket, 1649 [RFC2839, RFC2840]..PPAnd perhaps most important, everything you can do "by hand" (interactively)with C-Kermit, can be "scripted" (automated) using its built-incross-platform transport-independent script programming language, whichhappens to be identical to its interactive command language..PPThis manual page offers an overview of C-Kermit 8.0 for Unix ("Unix" is anoperating system family that includes AIX, DG/UX, FreeBSD, HP-UX, IRIX,Linux, Mac OS X, NetBSD, OpenBSD, Open Server, Open Unix, QNX, Solaris,SunOS, System V R3, System V R4, Tru64 Unix, Unixware, Xenix, and manyothers). For thorough coverage, please consult the published C-Kermitmanual and supplements (see DOCUMENTATION below). For further informationabout C-Kermit, Kermit software for other platforms, and Kermit manuals,visit the Kermit Project website:.PP http://www.columbia.edu/kermit/.PPThis is a longer-than-average manual page, and yet it barely scratches thesurface. Don't be daunted. C-Kermit is a large and complex package,evolving over decades of practice and experience, but that doesn't meanit's hard to learn or use. Its most commonly used functions are explainedhere with pointers to additional information elsewhere..SH SYNOPSIS.B kermit [.I filename.B ] [.I options.B ] [ {=,--,+}.I text.B ] ].PPor:.PP.B kermit .I URL.PPIf the first command-line argument is the name of a file, interactive-modecommands are executed from the file. The '=' (or "--") argument tellsKermit not to parse the remainder of the command line, but to make thewords following '=' available as \e%1, \e%2, ... \e%9. The "+" argument islike "=" but for use in "kerbang scripts" (explained below). A secondcommand-line format allows the one and only argument to be a Telnet, FTP,HTTP, or IKSD URL..PPOrder of execution:.TP 1.The command file (if any)..TP.nf 2.The initialization file, if any, unless suppressed with -Y..fi.TP 3.The customization file (if it is executed by the initialization file)..TP 4.The command-line URL (if any, and if so, execution stops here)..TP 5.Command-line options (if any)..TP 6.Interactive commands..PPSome command-line options can cause actions (such as -s to send a file);others just set parameters. If any action options are included on thecommand line, Kermit exits when finished unless also given the -S ("stay")option. If no action options are given, no initialization or command filescontained an EXIT or QUIT command, and no fatal errors occurred, Kermitissues its prompt and waits for you to type commands..IPBear in mind that C-Kermit can be built with selected featuresdisabled, and also that certain features are not available on allplatforms. For example, C-Kermit can't be built with TCP/IPsupport on a platform that does not have TCP/IP header files andlibraries (and even if Kermit does include TCP/IP support, itcan't be used to make TCP/IP connections on a computer that doesnot have a TCP/IP stack installed). If your version of lacksC-Kermit a feature mentioned here, use its SHOW FEATURES command tosee what might have been excluded..PPC-Kermit has three kinds of commands: regular single-letter command-lineoptions, extended-format command-line options, and interactive commands..PPLike most Unix commands, C-Kermit can be be given options on the commandline. But C-Kermit also can be used interactively by giving it commandscomposed of words, which are more intuitive than cryptic command-lineoptions, and more flexible too. In other words, you don't have to useC-Kermit's command-line options, but they are available if you want to. (Bythe same token, you don't have to use its interactive commands either --you can use either or both in any combination.).PPC-Kermit is generally installed in the PATH as "kermit", and therefore isinvoked by typing the word "kermit" (lowercase) at the shell prompt, andthen pressing the Return or Enter key. If you wish to include command-lineoptions, put them after the word "kermit" but before pressing Return orEnter, separated by spaces, for example:.PP $ kermit -s ckermit.tar.gz.PP('$' is the shell prompt; "kermit -s ckermit.tar.gz" is what you type,followed by Return or Enter.).SH OPTIONSHere is a list of C-Kermit's single-letter command-line options, whichstart with a single dash (-), in ASCII ("alphabetical") order. Alphabeticcase is significant (-A is not the same as -a). Action options are tagged "ACTION"..TP-0(digit zero) 100% transparent Connect state for"in-the-middle" operation: 8 bits, no parity, noescape character, everything passes through..TP-8(digit eight) Connection is 8-bit clean (this is thedefault in C-Kermit 8.0). Equivalent to the EIGHTBITcommand, which in turn is a shortcut for SET TERMINALBYTESIZE 8, SET COMMAND BYTESIZE 8, SET PARITY NONE..TP-9 arg(digit nine) Make a connection to an FTP server.Equivalent to the FTP OPEN command.Argument: IP-address-or-hostname[:optional-TCP-port].NOTE: C-Kermit also has a separate FTP command-linepersonality, with regular FTP-like command-linesyntax. More about this below..TP-AKermit is to be started as an Internet service (IKSD)(only from inetd.conf)..TP-BKermit is running in Batch or Background (nocontrolling terminal). To be used in case Kermitdoesn't automatically sense its background status.Equivalent to the SET BACKGROUND ON command..TP-C argInteractive-mode Commands to be executed.Argument: Commands separated by commas, list indoublequotes..TP-D argDelay before starting to send in Remote mode.Equivalent to the SET DELAY command.Argument: Number of seconds..TP-EExit automatically when connection closes. Equivalentto SET EXIT ON-DISCONNECT ON..TP-F argUse an open TCP connection.Argument: Numeric file descriptor of open TCPconnection.Also see: -j, -J..TP-G arg(ACTION) Get file(s) from server, send contents to standardoutput, which normally would be piped to anotherprocess.Argument: Remote file specification, in quotes if itcontains metacharacters.Also see: -g, -k..TP-HSuppress program startup Herald and greeting..TP-ITell Kermit it has a reliable connection, to force streaming to be used whereit normally would not be. Equivalent to the SET RELIABLE ON command..TP-J arg(ACTION) "Be like Telnet." Like -j but implies -E. Argument: IPhostname/address optionally followed by service. NOTE: C-Kermit also has aseparate Telnet command-line personality, with regular Telnet-likecommand-line syntax. More about this below..TP-LRecursive directory descent for files in -s option..TP-M argMy user name (for use with Telnet, Rlogin, FTP, etc).Equivalent to the SET LOGIN USER command.Argument: Username string..TP-O(ACTION) (Uppercase letter O) Be a server for One command only.Also see: -x..TP-PDon't convert file (Path) names of transferred files.Equivalent to SET FILE NAMES LITERAL..TP-QQuick Kermit protocol settings. Equivalent to the FASTcommand. This is the default in C-Kermit 7.0 and later..TP-RRemote-only (this just makes IF REMOTE true)..TP-SStay (enter command parser after action options)..TP-TForce Text mode for file transfer; implies -V.Equivalent to SET TRANSFER MODE MANUAL, SET FILE TYPE TEXT..TP-VDisable automatic per-file text/binary switching.Equivalent to SET TRANSFER MODE MANUAL..TP-YSkip (don't execute) the initialization file..TP-a argAs-name for file(s) in -s, -r, or -g.Argument: As-name string (alternative filename). Whenreceiving files, this can be a directory name..TP-b argSpeed for serial device. Equivalent to SET SPEED.Argument: Numeric Bits per second for serialconnections..TP-c(ACTION) Enter Connect state before transferring files..TP-dCreate a debug.log file with detailed debugginginformation (a second -d adds timestamps). Equivalentto LOG DEBUG but takes effect sooner..TP-e argMaximum length for incoming Kermit file-transferpackets. Equivalent to SET RECEIVE PACKET-LENGTH.Argument: Length in bytes..TP-f(ACTION) Send a FINISH command to a Kermit server..TP-g argGet file(s) from a Kermit server.Argument: File specification on other computer, inquotes if it contains metacharacters. Equivalent toGET. Also see: -a, -G, -r..TP-h(ACTION) Print Help text for single-letter command-line options(pipe thru 'more' to prevent scrolling)..TP-iForce binary (Image) mode for file transfer; implies-V. Equivalent to SET TRANSFER MODE MANUAL, SET FILETYPE BINARY..TP-j argMake a TCP/IP connection.Argument: IP host name/address and optional servicename or number. Equivalent to the TELNET command.Also see: -J, -F..TP-k(ACTION) Receive file(s) to standard output, which normally would be piped to another process.Also see: -r, -G..TP-l arg(Lowercase letter L) Make a connection on the givenserial communications device. Equivalent to the SETLINE (SET PORT) command.Argument: Serial device name, e.g. /dev/ttyS0..TP-m argModem type for use with the -l device. Equivalent tothe SET MODEM TYPE command.Argument: Modem name as in SET MODEM TYPE command,e.g. "usrobotics"..TP-n(ACTION) Enter Connect state after transferring files (historical)..TP-p argParity. Equivalent to the SET PARITY command.Argument: One of the following: e(ven), o(dd), m(ark),n(one), s(pace)..TP-qQuiet (suppress most messages). Equivalent to SET QUIET ON..TP-r(ACTION) Receive file(s). Equivalent to the RECEIVE command.Argument: (none, but see -a).TP-s argSend file(s).Argument: One or more local file specifications.Equivalent to the SEND command.Also see: -a..TP-t(Historical) Xon (Ctrl-Q) Turnaround character forhalf-duplex connections (used on serial linemodeconnections to old mainframes). Equivalent to SETDUPLEX HALF, SET HANDSHAKE XON..TP-v argWindow size for Kermit protocol (ignored whenstreaming). Equivalanet to SET WINDOW-SIZE.Argument: Number, 1 to 32..TP-wIncoming files Write over existing files. Equivalent
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -