📄 ckuus2.c
字号:
" Performs this transfer in binary mode without affecting the global"," transfer mode."," ","/COMMAND"," Receives the file into the standard input of a command, rather than saving"," it on disk. The /AS-NAME or the second \"filename\" on the GET command"," line is interpreted as the name of a command."," ","/DELETE"," Asks the other Kermit to delete the file (or each file in the group)"," after it has been transferred successfully."," ","/EXCEPT:pattern"," Specifies that any files whose names match the pattern, which can be a"," regular filename, or may contain \"*\" and/or \"?\" metacharacters,"," are to be refused. To specify multiple patterns (up to 8), use outer"," braces around the group, and inner braces around each pattern:"," "," /EXCEPT:{{pattern1}{pattern2}...}"," ","/FILENAMES:{CONVERTED,LITERAL}"," Overrides the global SET FILE NAMES setting for this transfer only."," ","/FILTER:command"," Causes the incoming file to passed through the given command (standard"," input/output filter) before being written to disk."," ",#ifdef VMS"/IMAGE"," Transfer in image mode."," ",#endif /* VMS */#ifdef CK_LABELED"/LABELED"," VMS and OS/2 only: Specifies labeled transfer mode."," ",#endif /* CK_LABELED */"/MOVE-TO:directory-name"," Specifies that each file that arrives should be moved to the specified"," directory after, and only if, it has been received successfully."," ","/PATHNAMES:{OFF,ABSOLUTE,RELATIVE,AUTO}"," Overrides the global SET RECEIVE PATHNAMES setting for this transfer."," ","/QUIET"," When sending in local mode, this suppresses the file-transfer display."," ","/RECOVER"," Used to recover from a previously interrupted transfer; GET /RECOVER"," is equivalent REGET. Works only in binary mode."," ","/RECURSIVE"," Tells the server to descend through the directory tree when locating"," the files to be sent."," ","/RENAME-TO:string"," Specifies that each file that arrives should be renamed as specified"," after, and only if, it has been received successfully. The string should"," normally contain variables like \\v(filename) or \\v(filenum)."," ","/TEXT"," Performs this transfer in text mode without affecting the global"," transfer mode."," ","Also see HELP MGET, HELP SEND, HELP RECEIVE, HELP SERVER, HELP REMOTE.",""};static char *hmxxlg[] = {"Syntax: LOG (or L) filename [ { NEW, APPEND } ]"," ","Record information in a log file:"," ",#ifdef CKLOGDIAL"CX"," Connections made with SET LINE, SET PORT, SET HOST, DIAL, TELNET, etc."," The default filename is CX.LOG in your home directory and APPEND is the"," default mode for opening."," ",#endif /* CKLOGDIAL */#ifdef DEBUG"DEBUG"," Debugging information, to help track down bugs in the C-Kermit program."," The default log name is debug.log in current directory."," ",#endif /* DEBUG */"PACKETS"," Kermit packets, to help with protocol problems. The default filename is"," packet.log in current directory."," ",#ifndef NOLOCAL"SESSION"," Records your CONNECT session (default: session.log in current directory)."," ",#endif /* NOLOCAL */#ifdef TLOG"TRANSACTIONS"," Names and statistics about files transferred (default: transact.log in"," current directory; see HELP SET TRANSACTION-LOG for transaction-log format"," options.)"," ",#endif /* TLOG */"If you include the APPEND keyword after the filename, the existing log file,","if any, is appended to; otherwise a new file is created (except APPEND is","the default for the connection log). Use CLOSE <keyword> to stop logging.",#ifdef OS2ORUNIX" ","Note: The filename can also be a pipe, e.g.:"," "," log transactions |lpr"," log debug {| grep \"^TELNET\" > debug.log}"," ","Braces are required if the pipeline or filename contains spaces.",#endif /* OS2ORUNIX */"" };#ifndef NOSCRIPTstatic char *hmxxlogi[] = { "\Syntax: SCRIPT text"," A limited and cryptic \"login assistant\", carried over from old C-Kermit"," releases for comptability, but not recommended for use. Instead, please"," use the full script programming language described in chapters 17-19 of"," \"Using C-Kermit\"."," "," Login to a remote system using the text provided. The login script"," is intended to operate similarly to UNIX uucp \"L.sys\" entries."," A login script is a sequence of the form:"," "," expect send [expect send] . . ."," "," where 'expect' is a prompt or message to be issued by the remote site, and"," 'send' is the names, numbers, etc, to return. The send may also be the"," keyword EOT to send Control-D, or BREAK (or \\\\b) to send a break signal."," Letters in send may be prefixed by ~ to send special characters:"," "," ~b backspace, ~s space, ~q '?', ~n linefeed, ~r return, ~c don\'t"," append a return, and ~o[o[o]] for octal of a character. As with some"," UUCP systems, sent strings are followed by ~r unless they end with ~c."," "," Only the last 7 characters in each expect are matched. A null expect,"," e.g. ~0 or two adjacent dashes, causes a short delay. If you expect"," that a sequence might not arrive, as with uucp, conditional sequences"," may be expressed in the form:"," "," -send-expect[-send-expect[...]]"," "," where dashed sequences are followed as long as previous expects fail.","" };#endif /* NOSCRIPT */#ifndef NOFRILLSstatic char * hmxxtyp[] = {"Syntax: TYPE [ switches... ] file"," Displays a file on the screen. Pauses automatically at end of each"," screenful if COMMAND MORE-PROMPTING is ON. Optional switches:"," "," /PAGE"," Pause at the end of each screenful even if COMMAND MORE-PROMPTING OFF."," Synonym: /MORE"," /NOPAGE"," Don't pause at the end of each screen even if COMMAND MORE-PROMPTING ON."," /HEAD:n"," Only type the first 'n' lines of the file."," /TAIL:n"," Only type the last 'n' lines of the file."," /MATCH:pattern"," Only type lines that match the given pattern. HELP WILDCARDS for info"," info about patterns. /HEAD and /TAIL apply after /MATCH."," /PREFIX:string"," Print the given string at the beginning of each line."," /WIDTH:number"," Truncate each line at the given column number before printing."," /COUNT"," Count lines (and matches) and print the count(s) but not the lines."," ","You can use SET OPTIONS TYPE to set the defaults for /PAGE or /NOPAGE and","/WIDTH. Use SHOW OPTIONS to see current TYPE options.",""};static char * hmxxcle[] = {"Syntax: CLEAR [ item-name ]"," ","Clears the named item. If no item is named, DEVICE-AND-INPUT is assumed."," "," ALARM Clears any pending alarm (see SET ALARM).",#ifdef CK_APC" APC-STATUS Clears Application Program Command status.",#endif /* CK_APC */#ifdef PATTERNS" BINARY-PATTERNS Clears the file binary-patterns list.",#endif /* PATTERNS */#ifdef OS2" COMMAND-SCREEN Clears the current command screen.",#endif /* OS2 */" DEVICE Clears the current port or network input buffer."," DEVICE-AND-INPUT Clears both the device and the INPUT buffer."," DIAL-STATUS Clears the \\v(dialstatus) variable."," \INPUT Clears the INPUT command buffer and the \\v(input) variable.",#ifdef OS2" \SCROLLBACK empties the scrollback buffer including the current screen.",#endif /* OS2 */" SEND-LIST Clears the current SEND list (see ADD).",#ifdef OS2" \TERMINAL-SCREEN Clears the current screen a places it into the scrollback."," buffer.",#endif /* OS2 */#ifdef PATTERNS" TEXT-PATTERNS Clears the file text-patterns list.",#endif /* PATTERNS */""};#endif /* NOFRILLS */static char * hmxxdate[] = {"Syntax: DATE [ date-time ]"," Prints the current date and time in standard format: yyyymmdd_hh:mm:ss."," If a date-time is given, converts it to standard format. Various date-time"," formats are acceptable. The rules for the date-time are:"," "," . The date, if given, must precede the time."," . The year must be four digits."," . If the year comes first, the second field is the month."," . The day, month, and year may be separated by spaces, /, -, or underscore."," . The date and time may be separated by spaces or underscore."," . The month may be numeric (1 = January) or spelled out or abbreviated in"," English."," . The time may be in 24-hour format or 12-hour format."," . If the hour is 12 or less, AM is assumed unless AM or PM is included."," . If the date is omitted but a time is given, the current date is assumed."," . If the time is given but date omitted, 00:00:00 is assumed."," . If both the date and time are omitted, the current date and time are"," assumed."," "," The following shortcuts can also be used:"," "," TODAY"," Today's date, optionally followed by a time; 00:00:00 if no time given."," "," YESTERDAY"," Yesterday's date, optionally followed by a time (default 00:00:00)."," "," TOMORROW"," Tomorrows's date, optionally followed by a time (default 00:00:00)."," "," + <number> <timeunits>"," A date in the future relative to the current date; <timeunits> may be DAYS"," WEEKS, MONTHS, or YEARS. Optionally followed by a time (default 00:00:00)."," Examples: +3days, +7weeks."," "," - <number> <timeunits>"," A date in the past relative to the current date, optionally followed by a"," time (default 00:00:00). Examples: -1year, -37months."," ","All the formats shown above are acceptable as arguments to date-time switches","such as /AFTER: or /BEFORE, and to functions such as \\fcvtdate() that take","date-time strings as arguments.",""};#ifndef NOXFERstatic char * hmxxsen[] = {"Syntax: SEND (or S) [ switches...] [ filespec [ as-name ] ]"," Sends the file or files specified by filespec. If the filespec is omitted"," the SEND-LIST is used (HELP ADD for more info). The filespec may contain"," wildcard characters. An 'as-name' may be given to specify the name(s)"," the files(s) are sent under; if the as-name is omitted, each file is"," sent under its own name. Also see HELP MSEND, HELP WILDCARD."," Optional switches include:"," ",#ifndef NOSPL"/ARRAY:<arrayname>"," Specifies that the data to be sent comes from the given array, such as"," \\&a[]. A range may be specified, e.g. SEND /ARRAY:&a[100:199]. Leave"," the brackets empty or omit them altogether to send the whole 1-based array."," Include /TEXT to have Kermit supply a line terminator at the end of each"," array element (and translate character sets if character-set translations"," are set up), or /BINARY to treat the array as one long string of characters"," to be sent as-is. If an as-name is not specified, the array is sent with"," the name _ARRAY_X_, where \"X\" is replaced by actual array letter."," ",#endif /* NOSPL */"/AS-NAME:<text>"," Specifies <text> as the name to send the file under instead of its real"," name. This is equivalent to giving an as-name after the filespec."," ","/BINARY"," Performs this transfer in binary mode without affecting the global"," transfer mode."," ","/TEXT"," Performs this transfer in text mode without affecting the global"," transfer mode."," ","/NOBACKUP"," Skip (don't send) Kermit or EMACS backup files (files with names that"," end with .~n~, where n is a number)."," ",#ifdef UNIXOROSK"/DOTFILES"," Include (send) files whose names begin with \".\"."," ","/NODOTFILES"," Don't send files whose names begin with \".\"."," ",#endif /* UNIXOROSK */#ifdef VMS"/IMAGE"," Performs this transfer in image mode without affecting the global"," transfer mode."," ",#endif /* VMS */#ifdef CK_LABELED"/LABELED"," Performs this transfer in labeled mode without affecting the global"," transfer mode."," ",#endif /* CK_LABELED */"/COMMAND"," Sends the output from a command, rather than the contents of a file."," The first \"filename\" on the SEND command line is interpreted as the name"," of a command; the second (if any) is the as-name."," ","/FILENAMES:{CONVERTED,LITERAL}"," Overrides the global SET FILE NAMES setting for this transfer only."," ","/PATHNAMES:{OFF,ABSOLUTE,RELATIVE}"," Overrides the global SET SEND PATHNAMES setting for this transfer."," ","/FILTER:command"," Specifies a command \(standard input/output filter) to pass the file through"," before sending it."," ","/DELETE"," Deletes the file (or each file in the group) after it has been sent"," successfully (applies only to real files)."," ","/QUIET"," When sending in local mode, this suppresses the file-transfer display."," ","/RECOVER"," Used to recover from a previously interrupted transfer; SEND /RECOVER"," is equivalent RESEND (use in binary mode only)."," ","/RECURSIVE"," Tells C-Kermit to look not only in the given or current directory for"," files that match the filespec, but also in all its subdirectories, and"," all their subdirectories, etc."," ","/RENAME-TO:name"," Tells C-Kermit to rename each source file that is sent successfully to"," the given name (usually you should include \\v(filename) in the new name,"," which is replaced by the original filename."," ","/MOVE-TO:directory"," Tells C-K
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -