ckuker.nr
来自「早期freebsd实现」· NR 代码 · 共 571 行 · 第 1/2 页
NR
571 行
.TH KERMIT 1C LOCAL.SH NAMEkermit \- file transfer, terminal connection, character-set translation,and script programming.SH SYNOPSIS.B kermit[ options ...] [files ...].SH DESCRIPTION.I Kermitis a family of file transfer, management, and communication software programsavailable for most computers and operating systems. The UNIX version ofKermit, called C-Kermit, supports serial connections (direct or dialed) and,in most UNIX implementations, also TCP/IP connections. On SunOS systemsequipped with SunLink X.25, C-Kermit also supports X.25 connections..PPC-Kermit's major functions are file transfer using the Kermit protocol,automatic dialing, terminal connection, translation of national andinternational character sets, and script programming for automatedcommunications. This manual gives a brief overview of C-Kermit version5A(188). C-Kermit is fully documented in the book.IR "Using C-Kermit"by Frank da Cruz and Christine M. Gianone, Digital Press, Burlington, MA,USA. Digital Press ISBN: 1-55558-108-0; Prentice-Hall ISBN: 0-13-037490-3.Price: US $34.95. In USA, call DECdirect at 1-800-344-4825, refer to ordernumber EY-J896E-DP. Available: January 1993..PPC-Kermit can be used in two "modes" -- remote and local. In remote mode,you connect to the UNIX system from a desktop PC, Macintosh, or workstationand transfer files between your desktop computer and UNIX C-Kermit. In thatcase, connection establishment (dialing, TELNET connection, etc) is handledby the Kermit program on your desktop computer..PPIn local mode, C-Kermit establishes a connection to another computerby direct serial connection, by dialing a modem, or by making a networkconnection. When used in local mode, C-Kermit gives you a terminal connectionto the remote computer, using your actual terminal, emulator, or UNIXworkstation window or console driver for specific terminal emulation..PPC-Kermit also has two types of commands: the familiar UNIX-style command-linearguments, and an interactive dialog with prompt. Command-line arguments giveyou access to a small but useful subset of C-Kermit's features for terminalconnection and file transfer, plus the ability to pipe files into or out ofKermit for transfer..PPInteractive commands give you access to dialing, script programming, character-set translation, and in general, detailed control and display of allC-Kermit's features. Interactive commands can also be collected into commandfiles or collected into macros..PP.SH "STARTING C-KERMIT".PPC-Kermit should be available as "kermit" somewhere in your PATH. To startC-Kermit simply type "kermit", possibly followed by command-line options. Ifthere are no "action options" on the command line, C-Kermit starts ininteractive mode; you will see a greeting message and then the "C-Kermit>"prompt. If you include action options on the command line, C-Kermit takes theindicated actions and then exits back to UNIX. Either way, C-Kermit executes the commands in its initialization file, .IR ".kermrc" ,in your home directory before it executes any other commands, unless you haveincluded the -Y (uppercase) command-line option, which means to skip theinitialization file..PP.SH "USING C-KERMIT TO TRANSFER FILES".PPHere is a common scenario for Kermit file transfer:.PP.in +0.5i.ll -0.5i.ta +0.2i.ti -0.2i\(bu Start Kermit on local computer and establish a connection to theremote computer. If C-Kermit is on your localcomputer, use the sequence SET MODEM <modem-name>, SET LINE, SET SPEED, andDIAL <number> if you are dialing; SET LINE and SPEED for direct connections,SET NETWORK and SET HOST (or, for TCP/IP, simply TELNET) for networkconnections..ti -0.2i\(bu SET any other necessary communication parameters, such as PARITY,DUPLEX, and FLOW-CONTROL. If you will be communicating with an IBM mainframein line-mode (not full-screen mode), give the command DO IBM..ti -0.2i\(bu Give the CONNECT command..ti -0.2i\(bu Log in to the remote computer..ti -0.2i\(bu Start Kermit on the remote computer, give it any desired SET commandsfor file, communication, or protocol-related parameters. If you will betransferring binary files, give the command SET FILE TYPE BINARY to the remoteKermit..ti -0.2i\(bu Give the remote Kermit the SERVER command..ti -0.2i\(bu Escape back to the Kermit program on your local (desktop) computer.If your local computer is running C-Kermit, type Ctrl-\\ c (Control-backslashfollowed by the letter 'c') (on NeXT workstations, use Ctrl-] c). If MS-DOSor OS/2 Kermit, use Alt-X or Ctrl-] c. Now you should see your local Kermitprogram's prompt..ti -0.2i\(bu If you will be transferring binary files, give the command SET FILETYPE BINARY to your local Kermit program..ti -0.2i\(bu To get files from the remote computer to your local computer, use GETfollowed by the filename. Use SEND followed by the filename to put filesfrom your local computer to the remote system. You may use "wildcard"characters such as * and ? in the filenames to specify groups of files..ti -0.2i\(bu When you finish transferring files, and you need to continue your workon the remote remote computer, type FINISH and then CONNECT. You're nowtalking Kermit on the remote computer again. Type EXIT to get back to thecommand prompt on the remote system. At the end, logout normally from theremote computer. Then escape back to Kermit on your local computer, and thenEXIT from the local Kermit program..ti -0.2i\(bu If you don't need to go back to the remote computer again, type theBYE command to the local Kermit program. This will shut down the remoteKermit server and terminate (log out) your remote session..ll +0.5i.in -0.5i.fi.PP.SH HELP.PPKermit has extensive built-in help. You can find out what commands exist bytyping ? at the beginning of a line. You can type HELP followed by the nameof a command for information on it. For commands that take multiplearguments, you can type ? in the middle of the command for more information,and you can also use help with several arguments. E.g. SET has many differentthings you can set, like SET RECEIVE PACKET-LENGTH 1000. You can type 'SET?', or 'SET RECEIVE ?', etc. 'HELP SET' talks about the 'SET' command ingeneral, 'HELP SET RECEIVE talks about the SET RECEIVE options..SH BACKSLASH NOTATIONWithin an interactive command, \\ is a special character to help you enterspecial quantities, or ordinary characters that would otherwise be illegal orhard to type. At the end of a line, \\ (backslash) (or - dash) makes the nextline a continuation of the current line. Other than that, the characterfollowing the \\ identifies what the thing is:.nf % A user-defined simple (scalar) variable such as \\%a or \\%1 & an array reference such as \\&a[3] $ an environment variable such as \\$(TERM) v (or V) a built-in variable such as \\v(time) f (or F) a function such as \\fSubstring(\\%a,3,2) d (or D) a decimal (base 10) number (1 to 3 digits, 0..255) such as \\d27 o (or O) an octal (base 8) number (1 to 3 digits, 0..377) such as \\o33 x (or X) a hexadecimal (base 16) number (2 digits, 00..ff) like \\x1b \\ the backslash character itself b (or B) the BREAK signal (OUTPUT command only) l (or L) a Long BREAK signal (OUTPUT only) a decimal digit (a 1-3 digit decimal number) such as \\27 anything else: following character taken literally..fiNote that numbers turn into the character with that binary code, soyou can use \\7 for a bell, \\13 for carriage return, \\10 for linefeed..SH COMMANDS.PPYou can use upper- or lower case for commands. Either one will work (butremember that UNIX filenames are case-sensitive). Also, you can abbreviatecommands as long as the abbreviation matches only one possibility. This is asummary of C-Kermit's commands. For more information on each, see.IR "Using C-Kermit" ,or type HELP and then the command name..nf.in 0.ll 80.ta 15; Introduce a full-line or trailing comment (also #).! Run a system command or enter system command interpreter.ASK Prompt the user, store user's reply in a variable.ASKQ Like ASK, but, but doesn't echo (useful for passwords).ASSIGN Assign an evaluated string to a variable or macro.BYE Terminate and log out a remote Kermit server.C Special abbreviation for CONNECT.CD Change Working Directory (also, CWD).CHECK See if a particular feature is built in.CLEAR Clear communication device input buffer.CLOSE Close a log or other local file.COMMENT Introduce a full-line comment.CONNECT Establish a terminal connection to a remote computer.DECLARE Declare an array.DECREMENT Subtract one (or other number) from a variable.DEFINE Define a variable or macro.DELETE Delete a file or files.DIAL Dial a telephone number.DIRECTORY Display a directory listing.DISABLE Disallow access to selected features during server operation.DO Execute a macro ("DO" can be omitted).E-PACKET Send an Error packet.ECHO Display text on the screen.ELSE Used with IF.ENABLE Allow access to selected features during server operation.END A command file or macro.EXIT Exit from the program, closing all open files and devices.FINISH Instruct a remote Kermit server to exit, but not log out.FOR Execute commands repeatedly in a counted loop.G Special abbreviation for GET.GET Get files from a remote Kermit server.GETOK Ask question, get Yes or No answer, set SUCCESS or FAILURE.GOTO Go to a labeled command in a command file or macro.HANGUP Hang up the phone or network connection.HELP Display a help message for a given command.IF Conditionally execute the following command.INCREMENT Add one (or other number) to a variable.INPUT Match characters from another computer against a given text.INTRO Print a brief introduction to C-Kermit.LOG Open a log file -- debugging, packet, session, transaction.MAIL Send a file to other Kermit, to be delivered as e-mail.MSEND Send a list of files to the other Kermit.MSLEEP Sleep for given number of milliseconds.OPEN Open a local file for reading or writing.O Special abbreviation for OUTPUT.OUTPUT Send text to another computer.PAD Command for X.25 PAD (SunLink X.25 only)PAUSE Do nothing for a given number of seconds.PING Check status of remote TCP/IP host.PRINT Print a file on a printer.PUSH Invoke host system interactive command interpreter.PWD Display current working directory.QUIT Same as EXIT.R Special abbreviation for RECEIVE.READ Read a line from a local file.RECEIVE Passively wait for files to arrive.REDIAL The the most recently DIALed number again.REINPUT Reexamine text previously received from another computer.REMOTE Issue file management commands to a remote Kermit server.RENAME Change the name of a file.RETURN Return from a user-defined function.RUN Run a program or system command.S Special abbreviation for SEND.SCRIPT Execute a UUCP-style login script.SEND Send files.SERVER Begin server operation.SET Set various parameters.SHOW Display values of SET parameters.SLEEP Sleep for given number of seconds.SPACE Display current disk space usage.STATISTICS Display statistics about most recent file transfer.STOP Stop executing macro or command file, return to prompt.SUSPEND Suspend Kermit (use only if shell supports job control!).TAKE Execute commands from a file.TELNET Make a TCP/IP TELNET connection to a remote network host.TRANLATE Translate a file's character set.TRANSMIT Upload a file with no error checking.TYPE Display a file on the screen.VERSION Display the program version number on the screen.WAIT Wait for the specified modem signals.WHILE Execute commands repeatedly while a condition is true.WRITE Write text to a local file.XIF Extended IF command.XLATE Synonym for TRANSLATE.XMIT Synonym for TRANSMIT..ll.in.fi.SH PARAMETERS YOU CAN SETHere are some of the parameters you can change with the SET command. Notethat many of them require further specification, e.g. there are severalRECEIVE parameters. So commands using SET RECEIVElook like "SET RECEIVE PACKET-LENGTH 1000". For parameters like that,the possible second words are listed below them. .nf.in 0.ll 80.ta 15 ATTRIBUTES Turn Attribute packet processing on or off. BLOCKSIZE, CHARACTER-SET, DATE, DISPOSITION, LENGTH, OS-SPECIFIC, SYSTEM-ID, ALL BLOCK-CHECK Level of file transfer error detection. BUFFERS Size of send and receive packet buffers.CARRIER Treatment of carrier on terminal connections.CASE Treatment of alphabetic case in string comparisons.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?