?? ckututor.txt
字號:
INTRODUCTION Requests a brief introduction to C-Kermit. LICENSE Displays the C-Kermit software copyright and license. VERSION Displays C-Kermit's version number. EXIT [ number ] Exits from Kermit with the given status code. Synonyms: QUIT, E, Q. TAKE filename [ parameters... ] Executes commands from the given file. LOG item [ filename ] Keeps a log of the given item in the given file. [ DO ] macro [ parameters... ] Executes commands from the given macro. SET parameter value Sets the given parameter to the given value. SHOW category Shows settings in a given category. STATUS Tells whether previous command succeeded or failed. DATE [ date-and/or-time ] Shows current date-time or interprets given date-time. RUN [ extern-command [ parameters... ] Runs the given external command. Synonym: !. EXEC [ extern-command [ params... ] Kermit overlays itself with the given command. SUSPEND Stops Kermit and puts it in the background. Synonym: Z. Local File Management TYPE [ options ] filename Displays the contents of the given file. MORE [ options ] filename Equivalent to TYPE /PAGE (pause after each screenful). CAT [ options ] filename Equivalent to TYPE /NOPAGE. HEAD [ options ] filename Displays the first few lines of a given file. TAIL [ options ] filename Displays the last few lines of a given file. GREP [ options ] pattern filespec Displays lines from files that match the pattern. Synonym: FIND. DIRECTORY [ options ] [ filespec ] Lists files (built-in, many options). LS [ options ] [ filespec ] Lists files (runs external "ls" command). DELETE [ options ] [ filespec ] Deletes files. Synonym: RM. PURGE [ options ] [ filespec ] Removes backup (*.~n~) files. COPY [ options ] [ filespecs... ] Copies files. Synonym: CP. RENAME [ options ] [ filespecs... ] Renames files. Synonym: MV. CHMOD [ options ] [ filespecs... ] Changes permissions of files. TRANSLATE filename charsets filename ] Converts file's character set. Synonym: XLATE. CD Changes your working directory to your home directory. CD directory Changes your working directory to the one given. CDUP Changes your working directory one level up. PWD Displays your working directory. BACK Returns to your previous working directory. MKDIR [ directory ] Creates a directory. RMDIR [ directory ] Removes a directory. Making Connections SET LINE [ options ] devicename Opens the named serial port. Synonym: SET PORT. OPEN LINE [ options ] devicename Same as SET LINE. Synonym: OPEN PORT. SET MODEM TYPE [ name ] Tells Kermit what kind of modem is on the port. DIAL [ number ] Tells Kermit to dial the given phone number with the modem. REDIAL Redials the most recently dialed phone number. ANSWER Waits for and answers an incoming call on the modem. AUTHENTICATE [ parameters... ] Performs secure authentication on a TCP/IP connection. SET NETWORK TYPE { TCP/IP, X.25, ... } Selects network type for subsequent SET HOST commands. SET HOST [ options ] host [ port ] Opens a network connection to the given host and port. SET HOST [ options ] * port Waits for an incoming TCP/IP connection on the given port. TELNET [ options ] host Opens a Telnet connection to the host and enters Connect state. RLOGIN [ options ] host Opens an Rlogin connection to the host and enters Connect state. IKSD [ options ] host Opens a connection to an Internet Kermit Service. SSH [ options ] host Opens an SSH connection to the host and enters Connect state. FTP OPEN host [ options ] Opens an FTP connection to the host. HTTP [ options ] OPEN host Opens an HTTP connection to the host. PTY external-command Runs the command on a pseudoterminal as if it were a connection. PIPE external-command Runs the command through a pipe as if it were a connection. Using Connections CONNECT [ options ] Enters Connect (terminal) state. Synonym: C. REDIRECT command Redirects the given external command over the connection. TELOPT command Sends a Telnet protocol command (Telnet connections only). Ctrl-\C "Escapes back" from Connect state to Command state. Ctrl-\B (In Connect state) Sends a BREAK signal (serial or Telnet). Ctrl-\! (In Connect state) Enters inferior shell; "exit" to return. Ctrl-\? (In Connect state) Shows a menu of other escape-level options. Ctrl-\Ctrl-\ (In Connect state) Type two Ctrl-Backslashes to send one of them. SET ESCAPE [ character ] Changes Kermit's Connect-state escape character. Closing Connections HANGUP Hangs up the currently open serial-port or network connection. CLOSE Closes the currently open serial-port or network connection. SET LINE (with no devicename) Closes the currently open serial-port or network connection. SET HOST (with no hostname) Closes the currently open serial-port or network connection. FTP CLOSE Closes the currently open FTP connection. HTTP CLOSE Closes the currently open HTTP connection. EXIT Also closes all connections. Synonym: QUIT. SET EXIT WARNING OFF Suppresses warning about open connections on exit or close. File Transfer SEND [ options ] filename [ as-name ] Sends the given file. Synonym: S. SEND [ options ] filespec Sends all files that match. RESEND [ options ] filespec Resumes an interupted SEND from the point of failure. RECEIVE [ options ] [ as-name ] Waits passively for files to arrive. Synonym: R. LOG TRANSACTIONS [ filename ] Keeps a record of file transfers. FAST Use fast file-transfer settings (default). CAUTIOUS Use cautious and less fast file-transfer settings. ROBUST Use ultra-conservative and slow file-transfer settings. STATISTICS [ options ] Gives statistics about the most recent file transfer. WHERE After transfer: "Where did my files go?". TRANSMIT [ options ] [ filename ] Sends file without protocol. Synonym: XMIT. LOG SESSION [ filename ] Captures remote text or files without protocol. SET PROTOCOL [ name... ] Tells Kermit to use an external file-transfer protocol. FTP { PUT, MPUT, GET, MGET, ... } FTP client commands. HTTP { PUT, GET, HEAD, POST, ... } HTTP client commands. Kermit Server ENABLE, DISABLE Controls which features can be used by clients. SET SERVER Sets parameters prior to entering Server state. SERVER Enters Server state. Client of Kermit or FTP Server [ REMOTE ] LOGIN [ user password ] Logs in to a Kermit server or IKSD that requires it. [ REMOTE ] LOGOUT Logs out from a Kermit server or IKSD. SEND [ options ] filename [ as-name ] Sends the given file to the server. Synonyms: S, PUT. SEND [ options ] filespec Sends all files that match. RESEND [ options ] filespec Resumes an interupted SEND from the point of failure. GET [ options ] remote-filespec Asks the server to send the given files. Synonym: G. REGET [ options ] remote-filespec Resumes an interrupted GET from the point of failure. REMOTE CD [ directory ] Asks server to change its working directory. Synonym: RCD. REMOTE PWD [ directory ] Asks server to display its working directory. Synonym: RPWD. REMOTE DIRECTORY [ filespec... ] Asks server to send a directory listing. Synonym: RDIR. REMOTE DELETE [ filespec... ] Asks server to delete files. Synonym: RDEL. REMOTE [ command... ] (Many other commands: "remote ?" for a list). MAIL [ options ] filespec Sends file(s) to be delivered as e-mail (Kermit only). FINISH Asks the server to exit server state (Kermit only). BYE Asks the server to log out and close the connection. Script Programming DEFINE, DECLARE, UNDEFINE, UNDECLARE, ASSIGN, EVALUATE, SEXPRESSION, ARRAY, SORT, INPUT, OUTPUT, IF, FOR, WHILE, SWITCH, GOTO, ECHO, ASK, GETC, GETOK, ASSERT, WAIT, SLEEP, FOPEN, FREAD, FWRITE, FCLOSE, STOP, END, RETURN, LEARN, SHIFT, TRACE, VOID, INCREMENT, DECREMENT, ... For these and many more you'll need to consult the [68]manual and supplements, and/or visit the [69]Kermit Script Library, which also includes a brief tutorial. Hint: HELP LEARN to find out how to get Kermit to write simple scripts for you. Many of Kermit's commands have synonyms, variants, relatives, and so on. For example, MSEND is a version of SEND that accepts a list of file specifications to be sent, rather than just one file specification, and MPUT is a synonym of MSEND. MOVE means to SEND and then DELETE the source file if successful. MMOVE is like MOVE, but accepts a list of filespecs, and so on. These are described in the [70]full documentation. Use question mark to feel your way through an unfamiliar command, as in this example (the part you type is underlined): C-Kermit> remote ? One of the following: assign delete help login print rename space cd directory host logout pwd rmdir type copy exit kermit mkdir query set who C-Kermit> remote set ? One of the following: attributes file retry transfer block-check receive server window C-Kermit> remote set file ? One of the following: character-set incomplete record-length collision names type C-Kermit> remote set file names ? One of the following: converted literal C-Kermit> remote set file names literal C-Kermit> This is called menu on demand: you get a menu when you want one, but menus are not forced on you even when know what you're doing. Note that you can also abbreviate most keywords, and you can complete them with the Tab or Esc key. Also note that ? works for filenames too, and that you can use it in the middle of a keyword or filename, not just at the beginning. For example, "send x?" lists all the files in the current directory whose names start with 'x'. [ [71]Kermit Home ] [ [72]C-Kermit Home ] [ [73]C-Kermit FAQ ] ________________________________________________________________________ INITIALIZATION FILE [ [74]Top ] [ [75]Contents ] [ [76]Next ] [ [77]Previous ] In its default configuration, C-Kermit executes commands from a file called .kermrc in your home directory when it starts, unless it is given the -Y or -y command-line option. Custom configurations might substitute a shared system-wide initialization file. The SHOW FILE command tells what initialization file, if any, was used. The standard initialization file "chains" to an individual customization file, .mykermc, in the home directory, in which each user can establish her/his own preferences, define macros, and so on. Since execution of the initialization file (at least the standard one) makes C-Kermit take longer to start, it might be better not to have an initialization file, especially now that Kermit's default startup configuration is well attuned to modern computing and networking -- in other words, you no longer have do anything special to make Kermit transfers go fast. So instead of having an initialization file that is executed every time Kermit starts, you might consider making one or more kerbang scripts (with names other that .kermrc) that do NOT include an "exit" command, and invoke those when you need the settings, macro definitions, and/or scripted actions they contain, and invoke C-Kermit directly when you don't. To put it another way... We still distribute the standard initialization file since it's featured in the manual and backwards compatibility is important to us. But there's no harm in not using it if you don't need the stuff that's in it (services directory, dialing directory, network directory, and associated macro definitions). On the other hand, if there are settings or macros you want in effect EVERY time you use Kermit, the initialization file (or the customization file it chains to) is the place to put them, because that's the only place Kermit looks for them automatically each time you start it. [ [78]Kermit Home ] [ [79]C-Kermit Home ] [ [80]C-Kermit FAQ ] ________________________________________________________________________ MODES OF OPERATION [ [81]Top ] [ [82]Contents ] [ [83]Next ] [ [84]Previous ] Kermit is said to be in Local mode if it has made a connection to another computer, e.g. by dialing it or establishing a Telnet connection to it. The other computer is remote, so if you start another copy of Kermit on the remote computer, it is said to be in Remote mode (as long as it has not made any connections of its own). The local Kermit communicates over the communications device or network connection, acting as a conduit between the the remote computer and your keyboard and screen. The remote Kermit is the
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -