📄 ckuker.cpp
字号:
\\v(window) Current window size (SET WINDOW value) \\v(xferstatus)Status of most recent file transfer \\v(xfermsg) Error message, if any, terminating most recent transfer \\v(xfer_xxx) Various statistics from last file transfer. \\v(xprogram) C-Kermit \\v(xversion) Same as \\v(version).fi.SH "BUILT-IN FUNCTIONS"Builtin functions are invoked as \\Fname(args), can be used in any command,and are usually used in script programs. Type SHOW FUNCTIONS for a currentlist. Type "help function <name>" for a description of the arguments andreturn value, e.g. "help function basename"..SH "COMMAND LINE OPTIONS".PPC-Kermit accepts commands (or "options") on the command line, in thetime-honored UNIX style. Alphabetic case is significant. All optionsare optional. If one or more action options are included, Kermit exitsimmediately after executing the command-line options, otherwise it entersinteractive command mode..nf.ll 80.sp kermit [filename] [-x arg [-x arg]...[-yyy]..]].spwhere:.sp filename is the name of a command file to execute, -x is an option requiring an argument, -y an option with no argument..ta 15.spActions: -s files send files -s - send files from stdin -r receive files -k receive files to stdout -x enter server mode -O like -x but exits after one transaction -f finish remote server -g files get remote files from server (quote wildcards) -G files like -g but sends file to standard output -a name alternate file name, used with -s, -r, -g -c connect (before file transfer), used with -l or -j -n connect (after file transfer), used with -l or -j.spSettings: -l line communication line device (to make a serial connection) -l n open file descriptor of communication device -j host TCP/IP network host name (to make a network connection) -J host Connect like TELNET, exit when connection closes -l n open file descriptor of TCP/IP connection (n = number) -X X.25 network address -Z open file descriptor of X.25 connection -o n X.25 closed user group call info -u X.25 reverse-charge call -q quiet during file transfer -I connection is reliable (e.g. TCP or X.25) -8 connection is 8-bit clean -0 100% transparency in CONNECT mode (and no escaping back) -i transfer files in binary mode -T transfer files in text mode -P send/accept literal path (file) names -V = SET FILE PATTERNS OFF and SET XFER MODE MANUAL -b bps serial line speed, e.g. 1200 -m name modem type, e.g. hayes -p x parity, x = e,o,m,s, or n -t half duplex, xon handshake -e n receive packet-length -v n window size -L used with -s to select recursive directory transfer -Q Quick file-transfer settings -w write over files of same name, don't backup old file -D n delay n seconds before sending a file -V "manual mode" = SET FILE PATTERNS OFF, SET TRANSFER MODE MANUAL..spOther: -y name alternate init file name -Y Skip init file -R Advise C-Kermit it will be used only in remote mode -d log debug info to file debug.log -S Stay, don't exit, after action command -C "cmds" Interactive-mode commands, comma-separated -z Force foreground operation -B Force background (batch) operation -h print command-line option help screen = Ignore all text that follows but assign them to \\%1..\\%9 -- Same as =.sp.fi.SH "COMMAND LINE EXAMPLES".PPRemote-mode example (C-Kermit is on the far end):.nf.sp kermit -v 4 -i -s oofa.bin.sp.fisends file oofa.bin in binary mode (-i) using a window size of 4 (-v 4)..spLocal-mode example (C-Kermit makes the connection):.nf.sp kermit -l HARDWIRE -b 19200 -c -r -n.sp.fimakes a 19200-bps direct connection out through HARDWIRE, CONNECTs (-c)so you can log in and, presumably start a remote Kermit program and tell it tosend a file, then it RECEIVEs the file (-r), then it CONNECTs back (-n) so youcan finish up and log out..spFor dialing out, you must specify a modem type, and you might have to use adifferent device name:.nf.sp kermit -m hayes -l DIALOUT -b 2400 -c -r -n.ll.in.fi.SH FILES.nf.ta 16#ifndef HPUX10$HOME/.kermrc Standard C-Kermit initialization commands.#endif /* HPUX10 */$HOME/.mykermrc Your personal C-Kermit customization file.$HOME/.kdd Your personal dialing directory.$HOME/.ksd Your personal services directory.#ifdef HPUX10.sp/usr/share/lib/kermit/READ.ME Overview of HP-UX C-Kermit, please read/usr/share/lib/kermit/COPYING.TXT Copyright, permissions, disclaimer/usr/share/lib/kermit/ckermit.ini System-wide initialization file/usr/share/lib/kermit/ckermod.ini Sample customization file/usr/share/lib/kermit/ckermit.kdd Sample dialing directory/usr/share/lib/kermit/ckermit.ksd Sample services directory/usr/share/lib/kermit/ckermit2.txt Updates to "Using C-Kermit" 2nd Ed/usr/share/lib/kermit/ckcbwr.txt C-Kermit "beware" file - hints & tips/usr/share/lib/kermit/ckubwr.txt UNIX-specific beware file/usr/share/lib/kermit/ck*.txt Other plain-text documentation/usr/share/lib/kermit/ckedemo.ksc Macros from "Using C-Kermit"/usr/share/lib/kermit/ckevt.ksc Ditto/usr/share/lib/kermit/ckepage.ksc Alpha pager script/var/spool/locks/LCK..* UUCP lockfiles#else.fi.PPThe following should be in a publicly accessible plain-text documentation area,such as usr/local/lib/kermit, /usr/local/doc, or /usr/share/lib/kermit, oravailable via an information server such as gopher, or by ftp from Columbia:.nf.ta 16.spCOPYING.TXT Copyright, permissions, disclaimer.ckaaaa.hlp Explanation of C-Kermit files.ckermit.ini Standard initialization file.ckermod.ini Sample C-Kermit customization file.ckermit.kdd Sample dialing directory.ckermit.ksd Sample services directory.ckermit2.txt Supplement to "Using C-Kermit" 2nd Ed.ckcbwr.txt C-Kermit "beware" file - hints & tips.ckubwr.txt UNIX-specific beware file.ck*.txt Other plain-text documentation.ckedemo.ksc Demonstration macros from "Using C-Kermit".ckevt.ksc Ditto.ckepage.ksc Alpha pager script.#endif.fi.PP#ifndef HPUX10If C-Kermit has not been installed on your system with the system-wideinitialization file feature, then the ckermit.ini file should be copied toyour home (login) directory and renamed to.IR ".kermrc" .You should not modify this file..sp#endifTo make.IR "personalized customizations" ,copy the file#ifdef HPUX10/usr/share/lib/kermit/ckermod.ini#elseckermod.ini#endiffile to your home directory, make any desired changes, and rename it to.IR ".mykermrc" ..spYou may also create a personalized.IR "dialing directory"like the sample one in#ifdef HPUX10/usr/share/lib/kermit/ckermit.kdd.#elseckermit.kdd.#endifYour personalized dialing directoryshould be stored in your home directory as.IR ".kdd"and your personal network directory as.IR ".knd" .See Chapters 5 and 6 of.IR "Using C-Kermit"for details..spAnd you may also create a personalized.IR "services directory"like the sample one in#ifdef HPUX10/usr/share/lib/kermit/ckermit.ksd.#elseckermit.ksd.#endifYour personalized services directory should be stored in your home directory as.IR ".ksd" .See Chapter 7 of.I "Using C-Kermit"for instructions..spThe demonstration files illustrate C-Kermit's script programming constructs;they are discussed in chapters 17-19 of the book. You can run them by typingthe appropriate TAKE command at the C-Kermit> prompt, for example:"take /usr/share/lib/kermit/ckedemo.ini"..PD.SH AUTHORSFrank da Cruz, Columbia University, with contributions from hundreds ofother volunteer programmers all over the world. See Acknowledgements in.IR "Using C-Kermit"..SH REFERENCES.TPFrank da Cruz and Christine M. Gianone,.IR "Using C-Kermit",Second Edition, 1997, 622 pages,Digital Press / Butterworth-Heinemann, 313 Washington Street,Newton, MA 02158-1626, USA.ISBN 1-55558-164-1. (In the USA, call +1 800 366-2665 to order Digital Pressbooks.) Also available in a German edition from Verlag Heinze Heise,Hannover..sp.TPFrank da Cruz,.IR "Kermit, A File Transfer Protocol",Digital Press / Butterworth-Heinemann, Woburn, MA, USA (1987).ISBN 0-932376-88-6. The Kermit file transfer protocol specification..TPChristine M. Gianone,.IR "Using MS-DOS Kermit",Digital Press / Butterworth-Heinemann, Woburn, MA, USA (1992).ISBN 1-5558-082-3. Also available in a German edition from Heise, and aFrench edition from Heinz Schiefer & Cie, Versailles..TP.IR "Kermit News",Issues 4 (1990) and 5 (1993), Columbia University,for detailed discussions of Kermit file transfer performance..SH DIAGNOSTICSThe diagnostics produced by.I C-Kermititself are intended to be self-explanatory. In addition, every commandreturns a SUCCESS or FAILURE status that can be tested by IF FAILURE orIF SUCCESS. In addition, the program itself returns an exit status code of0 upon successful operation or nonzero if any of various operations failed..SH BUGSSee the comp.protocols.kermit.* newsgroups on Usenet for discussion, or thefiles ckcbwr.txt and ckubwr.txt, for a list of bugs, hints, tips. etc. Reportbugs via e-mail to kermit-support@columbia.edu. Visithttp://www.columbia.edu/kermit/support.html for details about tech support..SH CONTACTSFor more information about Kermit software and documentation, visit theKermit Web site:.nf.sp http://www.columbia.edu/kermit/.sp.fiOr write to:.nf.sp The Kermit Project Columbia University 612 West 115th Street New York NY 10025-7799 USA.sp.fiOr send e-mail to kermit@columbia.edu.Or call +1 212 854-3703. Or fax +1 212 663-8202..br
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -