⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckermit2.txt

📁 C-Kermit源码。是使用串口/Modem和网络通讯的程序
💻 TXT
📖 第 1 页 / 共 5 页
字号:
command can be accessed directly as "ls" in C-Kermit.  See Section 4.5.1 fordetails.SEND ? prints a list of switches rather than a list of filenames.  If you wantto see a list of filenames, use a (system-dependent) construction such asSEND ./? (for UNIX, Windows, or OS/2), SEND []? (VMS), etc.  See Sections 1.5and 4.7.1.In UNIX, OS-9, and Kermit 95, the wildcard characters in previous versionswere * and ?.  In C-Kermit 7.0 they are *, ?, [, ], {, and }, with dash usedinside []'s to denote ranges and comma used inside {} to separate listelements.  If you need to include any of these characters literally in afilename, precede each one with backslash (\).  See Section 4.9.SET QUIET { ON, OFF } is now on the command stack, just like SET INPUT CASE,SET COUNT, SET MACRO ERROR, etc, as described on p.458 of "Using C-Kermit",2nd Edition.  This allows any macro or command file to SET QUIET ON or OFFwithout worrying about saving & restoring the global QUIET value.  For example,this lets you write a script that tries SET LINE on lots of devices until itfinds one free without spewing out loads of error messages, and also withoutdisturbing the global QUIET setting, whatever it was.Because of the new "." operator (which introduces assignments), macros whosenames begin with "." can not be invoked "by name".  However, they still canbe invoked with DO.The syntax of the EVALUATE command has changed.  See Section 7.9.2.  Torestore the previous syntax, use SET EVALUATE OLD.The \v(directory) variable now includes the trailing directory separator;in previous releases it did not.  This is to allow constructions such as:  cd \v(dir)tmpto work across platforms that might have different directory notation, suchas UNIX, Windows, and VMS.Prior to C-Kermit 7.0, the FLOW-CONTROL setting was global and sticky.In C-Kermit 7.0, there is an array of default flow-control values for eachkind of connection, that are applied automatically at SET LINE/PORT/HOST time.Thus a SET FLOW command given before SET LINE/PORT/HOST is likely to be undone.Therefore SET FLOW can be guaranteed to have the desired effect only if givenafter the SET LINE/PORT/HOST command.Character-set translation works differently in the TRANSMIT command when (a)the file character-set is not the same as the local end of the terminalcharacter-set, or (b) when the terminal character-set is TRANSPARENT.(1) PROGRAM AND FILE MANAGEMENT AND COMMANDS1.0. Bug FixesThe following patches were issued to correct bugs in C-Kermit 6.0.  These aredescribed in detail in the 6.0 PATCHES file.  All of these fixes have beenincorporated in C-Kermit 6.1 (never released except as K95 1.1.16-17) and 7.0. 0001   All UNIX         C-Kermit mishandles timestamps on files before 1970 0002	Solaris 2.5++    Compilation error on Solaris 2.5 with Pro C 0003	All VMS          CKERMIT.INI Fix for VMS 0004	VMS/VAX/UCX 2.0  C-Kermit 6.0 can't TELNET on VAX/VMS with UCX 2.0 0005	All              C-Kermit Might Send Packets Outside Window 0006	All              MOVE from SEND-LIST does not delete original files 0007	Solaris 2.5++    Higher serial speeds on Solaris 2.5 0008   All              C-Kermit application file name can't contain spaces 0009   AT&T 7300 UNIXPC setuid and hardware flow-control problems 0010   Linux on Alpha   Patch to make ckutio.c compile on Linux/Alpha 0011   OS-9/68000 2.4   Patch to make ck9con.c compile on OS-9/68000 2.4 0012   MW Coherent 4.2  Patches for successful build on Coherent 4.2 0013   SINIX-Y 5.43     "delay" variable conflicts with <sys/clock.h> 0014   VMS/VAX/CMU-IP   Subject: Patches for VAX/VMS 5.x + CMU-IP 0015   All              XECHO doesn't flush its output 0016   VMS              CD and other directory operations might not work 0017   Linux 1.2.x++    Use standard POSIX interface for high serial speeds 0018   UNIX             SET WILDCARD-EXPANSION SHELL dumps core 0019   All              Hayes V.34 modem init string problem 0020   All              READ command does not fail if file not open 0021   All              Problems with long function arguments 0022   All              Certain \function()s can misbehave 0023   All              X MOD 0 crashes program 0024   All              Internal bulletproofing for lower() function 0025   OpenBSD          Real OpenBSD support for C-Kermit 6.0 0026   All              Incorrect checks for macro/command-file nesting depth 0027   All              ANSWER doesn't automatically CONNECT 0028   All              Overzealous EXIT warning 0029   All              OUTPUT doesn't echo when DUPLEX is HALF 0030   All              Minor problems with REMOTE DIRECTORY/DELETE/etc 0031   All              CHECK command broken 0032   All              Problem with SET TRANSMIT ECHO 0033   UNIX, VMS, etc   HELP SET SERVER says too much 0034   All              READ and !READ too picky about line terminators 0035   All              END from inside SWITCH doesn't work 0036   All              Problem telnetting to multihomed hosts 0037   All              Redirection failures in REMOTE xxx > fileREDIRECT was missing in many UNIX C-Kermit implementations; in version 7.0,it should be available in all of them.1.1. Command ContinuationComments that start with ";" or "#" can no longer be continued.  In:  ; this is a comment -  echo blahthe ECHO command will execute, rather than being taken as a continuation ofthe preceding comment line.  This allows easy "commenting out" of commandsfrom macro definitions.However, the text of the COMMENT command can still be continued ontosubsequent lines:  comment this is a comment -  echo blahAs of version 6.0, backslash is no longer a valid continuation character.Only hyphen should be used for command continuation.  This is to make itpossible to issue commands like "cd a:\" on DOS-like systems.As of version 7.0: . You can quote a final dash to prevent it from being a continuation   character:      echo foo\-   This prints "foo-".  The command is not continued. . You can enter commands such as:     echo foo - ; this is a comment   interactively and they will be properly treated as continued commands.   Previously this worked only in command files.1.2. Editor InterfaceSET EDITOR <name> [ <options> ]  Lets you specify a text-editing program.  The <name> can be a fully  specified pathname like /usr/local/bin/emacs19/emacs, or it can be the  name of any program in your PATH, e.g. "set editor emacs".  In VMS, it  must be a DCL command like "edit", "edit/tpu", "emacs", etc.  If an  environment variable EDITOR is defined when Kermit starts, its value is  the default editor.  You can also specify options to be included on the  editor command line.  Returns to Kermit when the editor exits.EDIT [ <filename> ]  If the EDIT command is given without a filename, then if a previous filename  had been given to an EDIT command, it is used; if not, the editor is started  without a file.  If a filename is given, the editor is started on that file,  and the filename is remembered for subsequent EDIT commands.SHOW EDITOR  Displays the full pathname of your text editor, if any, along with any  command line options, and the file most recently edited (and therefore the  default filename for your next EDIT command).Related variables: \v(editor), \v(editopts), \v(editfile).1.3. Web Browser and FTP InterfaceC-Kermit includes an FTP command, which simply runs the FTP program; C-Kermitdoes not include any built-in support for Internet File Transfer Protocol,nor any method for interacting directly with an FTP server.  In version 7.0,however, C-Kermit lets you specify your FTP client:  SET FTP-CLIENT [ <name> [ <options ] ]The name is the name of the FTP executable.  In UNIX, Windows, or OS/2, itcan be the filename of any executable program in your PATH (e.g. "ftp.exe" inWindows, "ftp" in UNIX); elsewhere (or if you do not have a PATH definition),it must be the fully specified pathname of the FTP program.  If the namecontains any spaces, enclose it braces.  Include any options after thefilename; these depend the particular ftp client.The Web browser interface is covered in the following subsections.1.3.1. Invoking your Browser from C-KermitBROWSE [ <url> ]  Starts your preferred Web browser on the URL, if one is given, otherwise  on the most recently given URL, if any.  Returns to Kermit when the browser  exits.SET BROWSER [ <name> [ <options> ] ]  Use this command to specify the name of your Web browser program, for  example: "set browser lynx".  The <name> must be in your PATH, or else  it must be a fully specified filename; in VMS it must be a DCL command.SHOW BROWSER  Displays the current browser, options, and most recent URL.Related variables: \v(browser), \v(browsopts), \v(browsurl).Also see Section 2.15: Contacting Web Servers with the HTTP Command.1.3.2. Invoking C-Kermit from your BrowserThe method for doing this depends, of course, on your browser.  Here aresome examples:Netscape on UNIX (X-based):  In the Options->Applications section, set your Telnet application to:    xterm -e /usr/local/bin/kermit/kermit -J %h %p  (replace "/usr/local/bin/kermit/kermit" by C-Kermit's actual pathname).  -J is C-Kermit's command-line option to "be like Telnet"; %h and %p are  Netscape placeholders for hostname and port.Lynx:  As far as we know, this can be done only at compile time.  Add the  following line to the Lynx userdefs.h file before building the Lynx binary:#define TELNET_COMMAND "/opt/bin/kermit -J"  And then add lines like the following to the Lynx.cfg file:DOWNLOADER:Kermit binary download:/opt/bin/kermit -i -V -s %s -a %s:TRUEDOWNLOADER:Kermit text download:/opt/bin/kermit -s %s -a %s:TRUEUPLOADER:Kermit binary upload:/opt/bin/kermit -i -r -a %s:TRUEUPLOADER:Kermit text upload:/opt/bin/kermit -r -a %s:TRUEUPLOADER:Kermit text get:/opt/bin/kermit -g %s:TRUEUPLOADER:Kermit binary get:/opt/bin/kermit -ig %s:TRUE1.4. Command EditingCtrl-W ("Word delete") was changed in 7.0 to delete back to the previousnon-alphanumeric, rather than all the way back to the previous space.1.5. Command SwitchesAs of 7.0, C-Kermit's command parser supports a new type of field, calleda "switch".  This is an optional command modifier.1.5.1. General Switch SyntaxA switch is a keyword beginning with a slash (/).  If it takes a value, thenthe value is appended to it (with no intervening spaces), separated by a colon(:) or equal sign (=).  Depending on the switch, the value may be a number,a keyword, a filename, a date/time, etc.  Examples:  send oofa.txt                              ; No switches  send /binary oofa.zip                      ; A switch without a value  send /protocol:zmodem oofa.zip             ; A switch with a value (:)  send /protocol=zmodem oofa.zip             ; A switch with a value (=)  send /text /delete /as-name:x.x oofa.txt   ; Several switchesLike other command fields, switches are separated from other fields, and fromeach other, by whitespace, as shown in the examples just above.  You can notput them together like so:  send/text/delete/as-name:x.x oofa.txt(as you might do in VMS or DOS, or as we might once have done in TOPS-10 orTOPS0-20, or PIP).  This is primarily due to ambiguity between "/" as switchintroducer versus "/" as UNIX directory separator; e.g. in:  send /delete/as-name:foo/text oofa.txtDoes "foo/text" mean the filename is "foo" and the transfer is to be intext mode, or does it mean the filename is "foo/text"?  Therefore we requirewhitespace between switches to resolve the ambiguity.  (That's only one ofseveral possible ambiguities -- it is also conceivable that a file called"text" exists in the path "/delete/as-name:foo/").In general, if a switch can take a value, but you omit it, then either areasonable default value is supplied, or an error message is printed:  send /print:-Plaserwriter oofa.txt         ; Value included = print options  send /print oofa.txt                       ; Value omitted, OK  send /mail:kermit@columbia.edu oofa.txt    ; Value included = address  send /mail oofa.txt                        ; Not OK - address required  ?Address requiredContext-sensitive help (?) and completion (Esc or Tab) are available in thenormal manner:  C-Kermit> send /pr? Switch, one of the following:    /print /protocol  C-Kermit> send /pro<ESC>tocol:?  File-transfer protocol,   one of the following:    kermit   xmodem   ymodem   ymodem-g   zmodem  C-Kermit> send /protocol:k<TAB>ermitIf a switch takes a value and you use completion on it, a colon (:) is printedat the end of its name to indicate this.  If it does not take a value, a spaceis printed.Also, if you type ? in a switch field, switches that take values are shownwith a trailing colon; those that don't take values are shown without one.1.5.2. Order and Effect of SwitchesThe order of switches should not matter, except that they are evaluated fromleft to right, so if you give two switches with opposite effects, therightmost one is used:  send /text /binary oofa.zip                ; Sends oofa.zip in binary mode.Like other command fields, switches have no effect whatsoever until thecommand is entered (by pressing the Return or Enter key).  Even then, switchesaffect only the command with which they are included; they do not have globaleffect or side effects.1.5.3. Distinguishing Switches from Other FieldsAll switches are optional.  A command that uses switches lets you give anynumber of them, including none at all.  Example:  send /binary oofa.zip  send /bin /delete oofa.zip

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -