📄 ckuker.nr
字号:
.\" @(#) kermit.1 7.0.196 2000/01/01 Columbia University.TH KERMIT 1C "1 Jan 2000" "UNIX C-Kermit".SH NAMEkermit \- C-Kermit 7.0 communications software for serial and networkconnections: modem dialing, file transfer and management, terminal connection,character-set translation, numeric and alpha paging, and script programming..SH SYNOPSIS.B kermit[ command-file ] [ options ... ].SH DESCRIPTION.I Kermitis a family of file transfer, management, and communication software programsfrom the Kermit Project at Columbia University available for most computersand operating systems.The UNIX version of Kermit, called.IR "C-Kermit",supports serial connections (direct or dialed) and, in most UNIXimplementations, also TCP/IP connections. On certain platforms,C-Kermit can also make X.25 connections.C-Kermit can be thought of as a user-friendly and powerful alternative to cu,tip, uucp, ftp, telnet, rlogin, expect, and even your shell; a single packagefor both network and serial communications, offering automation, convenience,and language features not found in the other packages, and having a great dealin common with its cousins, C-Kermit on other UNIX platforms, Kermit 95 forWindows 95, Windows 98, Windows NT and 2000, and OS/2; MS-DOS Kermit for PCswith DOS and Windows 3.x, and IBM Mainframe Kermit-370 for VM/CMS, MVS/TSO,and CICS. C-Kermit itself also runs on Digital VMS, Data General AOS/VS,Stratus VOS, OS-9, QNX, Plan 9, the Commodore Amiga, and elsewhere.Together, C-Kermit, Kermit 95, MS-DOS Kermit, and IBM Mainframe Kermit offer aconsistent and nearly universal approach to inter-computer communications..PPC-Kermit 7.0 is Copyright (C) 1985, 2000 by the Trustees of ColumbiaUniversity in the City of New York. For use and redistribution rights,see the C-Kermit COPYING.TXT file or give the C-Kermit COPYRIGHT command(summary: no license is required for own use;no license is required for distribution with Open Source operating systems;a license is required for certain other forms of redistribution)..PP.PPC-Kermit 6.0 is thoroughly documented in the book.IR "Using C-Kermit"by Frank da Cruz and Christine M. Gianone, Digital Press, Second Edition,1997; see REFERENCESat the end of this manual page. This manual page is not a substitute for thebook. If you are a serious user of C-Kermit, particularly if plan to writeC-Kermit script programs, you should purchase the manual. Book sales are theprimary source of funding for the nonprofit Kermit Project..PPAny new features added since the second edition of the book waspublished are documented in the online file.IR "ckermit2.upd"until such time as the Third Edition of the book is ready.Hints, tips, limitations, restrictions are listed in.IR "ckcbwr.txt"(general C-Kermit) and.IR "ckuker.bwr"(UNIX-specific); see FILES below. Please consult all of these referencesbefore reporting problems or asking for technical support..PPKermit software is available for hundreds of different computers and operatingsystems from Columbia University. For best file-transfer results, please useC-Kermit in conjunction with real Columbia University Kermit software on othercomputers, such as Kermit 95 for Windows 95 and NT or MS-DOS Kermit for DOS3.x or Windows. See CONTACTS below..SH "MODES OF OPERATION"C-Kermit can be used in two "modes": remote and local. In.IR "remote mode",you connect to theUNIXsystem from a desktop computerand transfer files between your desktop computer andUNIXC-Kermit. In thatcase, connection establishment (dialing, TELNET connection, etc) is handledby the Kermit program on your desktop computer..PPIn.IR "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 terminal window or console driver for specific terminal emulation..PPC-Kermit also has two commands interfaces: the familiar UNIX-style command-lineoptions, and an interactive dialog with a prompt..IR "Command-line options"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..PP.IR "Interactive commands"give you access to dialing, script programming,character-set translation, and, in general, detailed control and display, aswell as automation, of all C-Kermit's features. Interactive commands can alsobe collected into command files or macros. C-Kermit's command and scriptlanguage is portable to many and diverse platforms..PP.SH "STARTING C-KERMIT".PPC-Kermit should be available as "kermit" somewhere in your PATH, perhaps as/usr/local/bin/kermit, in which case you canstart C-Kermit just by typing "kermit", possibly followed by command-lineoptions.If there are no "action options" on the command line (explainedbelow), C-Kermit starts in interactive command mode; you will see a greetingmessage and then the "C-Kermit>" prompt. If you do include action options onthe command line, C-Kermit takes the indicated actions and then exits directlyback to UNIX. Either way, C-Kermit executes the commands in itsinitialization file,.IR ".kermrc" ,in your home directory (or a system-wide directory if C-Kermit was built todo this)before it executes any other commands, unless you haveincluded the `\|\c.B \-Y\c\&\|' (uppercase) command-line option, which means to skip theinitialization file, or you have included the `\|\c.B -y \c\&\|.IR "filename" \c\&\|'option to specify an alternative initialization file..PP.SH "FILE TRANSFER".PPHere is the most common scenario for Kermit file transfer. Many othermethods are possible, most of them more convenient, but this basic methodshould work in all cases..PP.in +0.5i.ll -0.5i.ta +0.2i.ti -0.2i\(bu Start Kermit on your local computer and establish a connection to theremote computer. If C-Kermit is on your localcomputer, use the sequence SET MODEM TYPE.IR "modem-name" \c\&\|, SET LINE.IR "device-name" \c\&\|, SET SPEED.IR "bits-per-second" \c\&\|, and DIAL.IR "phone-number"if you are dialing; SET LINE and SPEED for direct connections;SET NETWORK.IR "network-type"and SET HOST.IR "host-name-or-address"for network connections..sp.ti -0.2i\(bu SET any other necessary communication parameters, such as PARITY,DUPLEX, and FLOW-CONTROL..sp.ti -0.2i\(bu Give the CONNECT command..sp.ti -0.2i\(bu Log in to the remote computer..sp.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 theKermit program that will be sending them..sp.ti -0.2i\(bu To.IR downloada file or file group, give the remote Kermit a SEND command, following bya filename or "wildcard" file specification, for example:.nf.sp send oofa.txt (send one file).sp.fior:.nf.sp send oofa.* (send a group of files).sp.fiTo.IR uploada file or files, give the remote Kermit a RECEIVE command. The sending Kermitwill tell the receiving Kermit the name (and other attributes) of each file..sp.ti -0.2i\(bu Escape back to the Kermit program on your local (desktop) computer. Ifyour local computer is running C-Kermit, type Ctrl-\\ c (Control-backslashfollowed by the letter 'c') (on NeXT workstations, use Ctrl-] c). If MS-DOSKermit or Kermit 95, use Alt-x (hold down the Alt key, press 'x'). Nowyou should see your local Kermit program's prompt..sp.ti -0.2i\(bu If you will be transferring binary files, give the command SET FILETYPE BINARY to the Kermit program that is sending the files..sp.ti -0.2i\(bu If you are.IR downloadingfiles, tell the local Kermit program to RECEIVE. If you are.IR "uploading",give your local Kermit program a SEND command, specifying a filenameor wildcard file specification. In other words, tell the.IR remoteKermit program what to do first, SEND or RECEIVE, then escape back tothe.IR localKermit and give it the opposite command, RECEIVE or SEND..sp.ti -0.2i\(bu When the transfer is complete, give a CONNECT command. Now you aretalking to Kermit on the remote computer again. Type EXIT to get back to thecommand prompt on the remote computer. When you are finished using the remotecomputer, log out and then (if necessary) escape back to Kermit on your localcomputer. Then you can make another connection or EXIT from the local Kermitprogram..ll +0.5i.in -0.5i.fi.PPNote that other methods can be used to simplify the file-transfer process:.IR "client/server operation" ,in which all commands are given to the client andpassed on automatically to the server, and.IR autodownload(and upload), in which the remote Kermit initiates file transfersautomatically through your terminal emulator..PPThe file transfer protocol defaults in C-Kermit 7.0, unlike those for earlierreleases, favor speed over robustness, on the assumption that connections inthese times are usually reliable (over TCP/IP and/or error-correcting modemswith hardware flow control). If you experience file transfer failures, usethe CAUTIOUS or ROBUST commands to choose more conservative (and thereforeslower) protocol settings. For fine tuning of performance, you can choosespecific packet lengths, window sizes, and control-character prefixingstrategies as explained in Chapter 12 of the manual,.IR "Using C-Kermit"..PPIf you are accessing a remote host where C-Kermit resides via Telnet or otherconnection that is guaranteed reliable from end to end, and both Kermitssupport it (C-Kermit 7.0 does), a new "streaming" form of the Kermit protocolis used automatically to give ftp-like speeds (the limiting factor being theoverhead from the remote Telnet or Rlogin server and/or PTY driver)..SH OTHER FEATURESC-Kermit includes features too numerous to be explained in a man page. Forfurther information about connection establishment, modem dialing, networks,terminal connection, key mapping, logging, file transfer options and features,troubleshooting, client/server operation, character-set translation duringterminal connection and file transfer, "raw" up- and downloading of files,macro construction, script programming, sending numberic and alphanumericpages, convenience features, and shortcuts, plus numerous tables, examples,and illustrations, please consult the manual and the C-Kermit 7.0 releasenotes..SH "GETTING HELP".PPC-Kermit has extensive built-in help. You can find out what commands exist bytyping ? at the C-Kermit> prompt. You can type HELP at the C-Kermit> promptfor a "getting-started" message, or HELP followed by the nameof a particular command for information about that command, for example:.nf.sp help send.sp.fior:.nf.sp help set file.sp.fiYou can type ? anywhere within a command to get brief help about thecurrent command field. You can also type the INTRO command to get a briefintroduction to C-Kermit, and the MANUAL command to access this (or another)man page. Finally, you can use the SUPPORT command for instructions onobtaining technical support..sp.SH "ENTERING COMMANDS".spYou can use upper or lower case for interactive-mode commands, but rememberthat UNIX filenames are case-sensitive. You can abbreviate command words(but not filenames) as long as the abbreviation matches only one possibility.While typing a command, you can use the following editing characters:.nf.sp Delete, Backspace, or Rubout erases the rightmost character. Ctrl-W erases the rightmost "word". Ctrl-U erases the current command line. Ctrl-R redisplays the current command. Ctrl-P recalls a previous command (scrolls back in command buffer). Ctrl-N scrolls forward in a scrolled-back command buffer. Ctrl-C cancels the current command. Tab, Esc, or Ctrl-I tries to complete the current keyword or filename. ? gives help about the current field..sp.fiTo enter the command and make it execute, press the Return or Enter key..sp.SH BACKSLASH NOTATIONWithin an interactive command, the "\\" character (backslash) is a prefix usedto enter special quantities, including ordinary characters that wouldotherwise be illegal or misinterpreted. Other than that, the characterfollowing the \\ identifies what the special quantity is:.nf.sp % 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) s (or S) compact substring notation, macronames, like \\s(foo[3:12]) : compact substring notation, all variables, like \\:(\%a[3:12]) 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) n (or n) a NUL (0) character (OUTPUT only) a decimal digit (a 1-, 2-, or 3-digit decimal number) such as \\27 {} used for grouping, e.g. \\{27}123 anything else: following character taken literally..sp.fiNote that numbers turn into the character with that binary code (0-255), soyou can use \\7 for a bell, \\13 for carriage return, \\10 for linefeed.For example, to have C-Kermit send a BELL to your screen, type:.nf.sp echo \\7.sp.fi.SH "COMMAND LIST".PPThe commands most commonly used, and important for beginners toknow, are marked with "*":.nf.in 0.ll 80.ta 16.spProgram Management: BACK Return to previous directory. BROWSE Invoke Web browser.* CD Change Directory.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -