📄 ckuker.cpp
字号:
program..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.* PWD Print Working Directory. CHECK See if the given feature is configured. CLOSE Close the connection or a log or other local file. COMMENT Introduce a full-line comment. COPYRIGHT Display copyright notice. DATE Display date & time.* EXIT Leave the program, return to UNIX.* HELP Display a help message for a given command.* INTRO Print a brief introduction to C-Kermit. KERMIT Give command-line options at the prompt. LOG Open a log file -- debugging, packet, session, transaction. PUSH Invoke local system's interactive command interpreter. QUIT Synonym for EXIT. REDO Re-execute a previous command. RUN Run a program or system command. SET COMMAND Command-related parameters: bytesize, recall buffer size. SET PROMPT The C-Kermit program's interactive command prompt. SET EXIT Items related to C-Kermit's action upon exit or SET LINE/HOST. SHOW EXIT Display SET EXIT parameters. SHOW FEATURES Show features that C-Kermit was built with. SHOW VERSIONS Show version numbers of each source module. SUPPORT Find out how to get tech support. SUSPEND Suspend Kermit (use only if shell supports job control!).* SHOW Display values of SET parameters.* TAKE Execute commands from a file. VERSION Display the C-Kermit program version number. Z Synonym for SUSPEND.* Ctrl-C Interrupt a C-Kermit command in progress. Ctrl-Z Synonym for SUSPEND. ; or # Introduce a full-line or trailing comment. ! or @ Synonym for RUN. < Synonym for REDIRECT..spConnection Establishment and Release:* DIAL Dial a telephone number. PDIAL Partially dial a telephone number.* LOOKUP Lookup a phone number, test dialing rules. ANSWER Wait for a phone call and answer it when it comes.* HANGUP Hang up the phone or network connection. EIGHTBIT Shortcut to set all i/o to 8 bits. PAD Command for X.25 PAD (SunOS / Solaris / VOS only). PING Check status of remote TCP/IP host. REDIAL The the most recently DIALed number again. LOG CONNECTIONS Keep a record of each connection. REDIRECT Redirect standard i/o of command to communication connection. PIPE Make a connection through an external command or program. SET CARRIER Treatment of carrier on terminal connections.* SET DIAL Parameters related to modem dialing.* SET FLOW Communication line flow control: AUTO, RTS/CTS, XON/XOFF, etc.* SET HOST Open connection to network host name or address.#ifdef HPUX10* SET LINE Open serial communication device, like /dev/cul0p0.#else* SET LINE Open serial communication device, like /dev/cua0.#endif SET PORT Synonym for SET LINE.* SET MODEM TYPE Specify type of modem on SET LINE device, like USR.* SET NETWORK Network type, X.25 (SunOS / Solaris / VOS only) or TCP/IP. SET TCP Specify TCP protocol options (advanced). SET TELNET Specify TELNET protocol options. SET X.25 Specify X.25 connection parameters (SunOS/Solaris/VOS only). SET PAD Specify X.25 X.3 PAD parameters (SunOS/Solaris/VOS only).* SET PARITY Character parity (none, even, etc) for communications.* SET SPEED Serial communication device speed, e.g. 2400, 9600, 57600. SET SERIAL Set serial communications data size, parity, stop bits. SET STOP-BITS Set serial communications stop bits. SHOW COMM Display communications settings. SHOW CONN Display info about current connection. SHOW DIAL Display SET DIAL values. SHOW MODEM Display modem type, signals, etc. SHOW NETWORK Display network-related items.* TELNET = SET NETWORK TCP/IP, SET HOST ..., CONNECT. RLOGIN Makes an RLOGIN connection (requires privilege). TELOPT Send a TELNET option negotiation (advanced). CLOSE Close the current connection..spTerminal Connection:* C Special abbreviation for CONNECT.* CONNECT Establish a terminal connection to a remote computer. LOG SESSION Record terminal session. SET COMMAND Bytesize between C-Kermit and your keyboard and screen.* SET DUPLEX Specify which side echoes during CONNECT. SET ESCAPE Prefix for "escape commands" during CONNECT. SET KEY Key redefinitions in CONNECT mode. SET TERMINAL Terminal connection items: bytesize, character-set, echo, etc. SHOW ESCAPE Display current CONNECT-mode escape character. SHOW KEY Display keycode and assigned value or macro. SHOW TERMINAL Display SET TERMINAL items.* Ctrl-\\ CONNECT-mode escape character, follow by another character: C to return to C-Kermit> prompt. B to send BREAK signal. ? to see other options..spFile Transfer: ADD SEND-LIST Add a file specification to the SEND-LIST ADD BINARY-PATTERNS Add a pattern to the binary file pattern list ADD TEXT-PATTERNS Add a pattern to the text file pattern list ASSOCIATE A file character-set with a transfer character-set LOG SESSION Download a file with no error checking* SEND Send a file or files. MSEND Multiple SEND - accepts a list of files, separated by spaces. MOVE SEND and then delete source file(s) if successful. MMOVE Multiple MOVE - accepts a list of files, separated by spaces. MAIL SEND a file to other Kermit, to be delivered as e-mail. RESEND Continue a incomplete SEND. PSEND Send part of a file.* RECEIVE Passively wait for files to arrive from other Kermit.* R Special abbreviation for RECEIVE.* S Special abbreviation for SEND. GET Ask server to send the specified file(s). MGET Like GET but accepts a list of files. REGET Continue a incomplete download from a server. G Special abbreviation for GET. FAST Shortcut for fast file-transfer settings. CAUTIOUS Shortcut for medium file-transfer settings. ROBUST Shortcut for conservative file-transfer settings. SET ATTRIB Control transmission of file attributes.* SET BLOCK Choose error-checking level, 1, 2, or 3. SET BUFFERS Size of send and receive packet buffers. SET PREFIX Which control characters to "unprefix" during file transfer. SET DELAY How long to wait before sending first packet. SET DESTINATION DISK, PRINTER, or SCREEN for incoming files.* SET FILE Transfer mode (type), character-set, collision action, etc.* SET RECEIVE Parameters for inbound packets: packet-length, etc. SET REPEAT Repeat-count compression parameters. SET RETRY Packet retransmission limit. SET SEND Parameters for outbound packets: length, etc. SET HANDSHAKE Communication line half-duplex packet turnaround character. SET LANGUAGE Enable language-specific character-set translations. SET PATTERNS Turn off filename-pattern-based text/binary mode switching. SET SESSION-LOG File type for session log, text or binary. SET TRANSFER File transfer parameters: character-set, display, etc. SET TRANSMIT Control aspects of TRANSMIT command execution. SET UNKNOWN Specify handling of unknown character sets.* SET WINDOW File transfer packet window size, 1-31. SHOW ATTRIB Display SET ATTRIBUTE values. SHOW CONTROL Display control-character prefixing map.* SHOW FILE Display file-related settings. SHOW PROTOCOL Display protocol-related settings. SHOW LANGUAGE Display language-related settings. SHOW TRANSMIT Display SET TRANSMIT values.* STATISTICS Display statistics about most recent file transfer. TRANSMIT Send a file with no error checking. XMIT Synonym for TRANSMIT..spSEND Command switches: /AS-NAME: Name to send file under /AFTER: Send files modified after date-time /BEFORE: Send files modified before date-time /BINARY Send in binary mode /COMMAND Send from standard output of a command /DELETE Delete file after successfully sending /EXCEPT: Don't send files whose names match given pattern(s) /FILTER: Pass file contents through given filter program /FILENAMES: Specify how to send filenames /LARGER-THAN: Send files larger than given size /LIST: Send files whose names are listed in given file /MAIL: Send file(s) as e-mail to given address /MOVE-TO: Move source file to given directory after successfully sending
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -