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

📄 ckuker.nr

📁 linux终端仿真程序
💻 NR
📖 第 1 页 / 共 3 页
字号:
  \\v(sysid)     Kermit attribute code for system ID  \\v(system)    UNIX  \\v(terminal)  Terminal type  \\v(tfsize)    Total size of file group most recently transferred  \\v(time)      Time as 13:45:23 (hh:mm:ss)  \\v(tmpdir)    Temporary directory  \\v(ttyfd)     File descriptor of current communication device  \\v(version)   Numeric version of Kermit, e.g. 501190.  \\v(window)    Current window size (SET WINDOW value).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..nf.sp   \\Fbasename(file)    basename of file   \\Fbreak(s,c)        left substring of s up to 1st occurence of char c   \\Fcapitalize(s)     uppercase first letter of s and lowercase the rest   \\Fcharacter(arg)    convert numeric arg to character   \\Fchecksum(s)       32-bit arithmetic checksum of string s   \\Fcode(char)        numeric code for character   \\Fcontents(v)       return current definition of variable   \\Fcrc16(s)          16-bit CRC of string s   \\Fdate(filename)    return file's modification date/time   \\Fdefinition(m)     return current definition of macro   \\Feval(expr)        evaluate arithmetic expression   \\Fexecute(m,a,b,..) execute macro "m" with arguments "a", "b", etc   \\Ffiles(f)          number of files matching file spec   \\Fhexify(s)         translate s into a hexadecimal string   \\Findex(a1,a2,a3)   position of string a1 in a2, starting at pos a3   \\Fipaddress(s)      returns first IP address from string s   \\Flength(arg)       length of the string "arg"   \\Fliteral(arg)      copy argument literally, no evaluation   \\Flower(arg)        convert to lower case   \\Flpad(text,n,c)    left pad text to length n with char c   \\Fltrim(s)          Trim whitespace from left of s   \\Fmax(a1,a2)        max of two numbers   \\Fmin(a1,a2)        min of two numbers   \\Fmodulus(n1,n2)    modulus n2 of integer n1   \\Fnextfile()        next file name from list in last \\Ffiles()   \\Fpathname(file)    full pathname of file   \\Frepeat(a1,a2)     repeat a1 a2 times   \\Freplace(a1,a2,a3) replace a2 by a3 in a1   \\Freverse(arg)      reverse characters in arg   \\Fright(a1,a2)      rightmost a2 characters of string a1   \\Frindex(a1,a2,a3)  like \\Findex, but searching from right   \\Frpad(text,n,c)    right pad text to length n with char c   \\Fsize(filename)    return file's length in bytes   \\Fspan(a1,a2)       left substring of a1 containing only chars from a2   \\Fsubstr(a1,a2,a3)  substring of a1, starts at a2, length a3   \\Ftod2secs(s)       converts hh:mm:ss to seconds since midnight   \\Ftrim(s)           removes trailing whitespace from s   \\Funhexify(s)       converts a hexacimal string s back to original   \\Fupper(s)          converts s to upper case   \\Fverify(a1,a2,n)   returns index of 1st char in a2 that is not in a1                        starting at position n of a2..sp.fi\\Feval() allows the following operators in the expression.  The expressioncan contain variables.  Only integer arithmetic is supported.Precedences are shown as numbers, 1 is highestprecedence, 6 is lowest..in +.2i.nf.ta \w'n @ n  'u +\w'5   'u.sp( )	1	parenthesesn !	2	factorial~ n	3	logical NOT- n	4	negativen ^ n	4	powern * n	5	multiplicationn / n	5	divisionn % n	5	modulusn & n	5	logical ANDn + n	6	plusn - n	6	minusn | n	6	logical ORn # n	6	exclusive ORn @ n	6	greatest common divisor.sp.fi.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  -f	finish remote server  -g files	get remote files from server (quote wildcards)  -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  -8	8-bit clean  -i	transfer files in binary mode  -T	transfer files in text mode  -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  -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.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.spRemote-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 /dev/tty01 -b 19200 -c -r -n.sp.fimakes a 19200-bps direct connection out through /dev/tty01, CONNECTs (-c) so youcan log in and, presumably start a remote Kermit program and tell it to send afile, then it RECEIVEs the file (-r), then it CONNECTs back (-n) so you canfinish 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 /dev/cua -b 2400 -c -r -n.ll.in.fi.SH FILES.nf.ta 16$HOME/.kermrc	Standard C-Kermit initialization commands.$HOME/.mykermrc	Your personal C-Kermit customization file.$HOME/.kdd	Your personal dialing directory.$HOME/.ksd	Your personal services directory..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.spckaaaa.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.ckermit.upd	Supplement to "Using C-Kermit".ckcker.bwr	C-Kermit "beware" file - hints & tips.ckuker.bwr	UNIX-specific beware file.ckedemo.ini     Demonstration macros from "Using C-Kermit".ckevt.ini       Ditto.ckepager.ksc    Alpha pager script..fi.PPIf 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 modifythis file..spTo make.IR "personalized customizations" ,copy the fileckermod.inifile 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 inckermit.kdd.Your 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 inckermit.ksd.Your 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, 225 Wildwood Street,Woburn, MA 01801, 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 the files ckcker.bwr and ckuker.bwr, for a list of bugs, hints, tips. etc.  Reportbugs via e-mail to kermit-support@columbia.edu..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 + -