📄 ckuus2.c
字号:
" /VERBOSE + Also list date and size.",#endif /* CK_PERMS */" /FILES Show files but not directories."," /DIRECTORIES Show directories but not files."," /ALL + Show both files and directories."," /ARRAY:&a Store file list in specified array (e.g. \\%a[])."," /PAGE Pause after each screenful."," /NOPAGE Don't pause after each screenful.",#ifdef UNIXOROSK" /DOTFILES Include files whose names start with dot (period)."," /NODOTFILES + Don't include files whose names start with dot."," /BACKUP + Include backup files (names end with .~n~)."," /NOBACKUP Don't include backup files.",#endif /* UNIXOROSK */" /HEADING Include heading and summary."," /NOHEADING + Don't include heading or summary."," /XFERMODE Show pattern-based transfer mode (T=Text, B=Binary)."," /MESSAGE:text Add brief message to each listing line."," /NOMESSAGE + Don't add message to each listing line."," /NOXFERMODE + Don't show pattern-based transfer mode"," /ISODATE + In verbose listings, show date in ISO 8061 format."," /ENGLISHDATE In verbose listings, show date in \"English\" format.",#ifdef RECURSIVE" /RECURSIVE Descend through subdirectories."," /NORECURSIVE + Don't descend through subdirectories.",#endif /* RECURSIVE */" /SORT:key Sort by key, NAME, DATE, or SIZE; default key is NAME."," /NOSORT + Don't sort."," /ASCENDING + If sorting, sort in ascending order."," /REVERSE If sorting, sort in reverse order."," ","Factory defaults are marked with +. Default for paging depends on SET","COMMAND MORE-PROMPTING. Use SET OPTIONS DIRECTORY [ switches ] to change","defaults; use SHOW OPTIONS to display customized defaults.",#else"Syntax: DIRECTORY [ filespec ]"," Lists the specified file or files. If no filespec is given, all files"," in the current directory are listed.",#endif /* DOMYDIR */""};static char *hmxxdel[] = {"Syntax: DELETE [ switches... ] filespec"," Deletes a file or files on the computer where C-Kermit is running."," The filespec may denote a single file or can include wildcard characters"," to match multiple files. RM is a synonym for DELETE. Switches include:"," ","/AFTER:date-time",#ifdef VMS" Specifies that only those files created after the given date-time are",#else" Specifies that only those files modified after the given date-time are",#endif /* VMS */" to be deleted. HELP DATE for info about date-time formats."," ","/BEFORE:date-time",#ifdef VMS" Specifies that only those files modified before the given date-time",#else" Specifies that only those files modified before the given date-time",#endif /* VMS */" are to be deleted."," ","/NOT-AFTER:date-time",#ifdef VMS" Specifies that only those files modified at or before the given date-time",#else" Specifies that only those files modified at or before the given date-time",#endif /* VMS */" are to be deleted."," ","/NOT-BEFORE:date-time",#ifdef VMS" Specifies that only those files modified at or after the given date-time",#else" Specifies that only those files modified at or after the given date-time",#endif /* VMS */" are to be deleted."," ","/LARGER-THAN:number"," Specifies that only those files longer than the given number of bytes are"," to be deleted."," ","/SMALLER-THAN:number"," Specifies that only those files smaller than the given number of bytes are"," to be sent."," ","/EXCEPT:pattern"," Specifies that any files whose names match the pattern, which can be a"," regular filename or may contain wildcards, are not to be deleted. To"," specify multiple patterns (up to 8), use outer braces around the group"," and inner braces around each pattern:"," "," /EXCEPT:{{pattern1}{pattern2}...}"," ",#ifdef UNIXOROSK"/DOTFILES"," Include (delete) files whose names begin with \".\"."," ","/NODOTFILES"," Skip (don't delete) files whose names begin with \".\"."," ",#endif /* UNIXOROSK */"/LIST"," List each file and tell whether it was deleted. Synonyms: /LOG, /VERBOSE."," ","/NOLIST"," Don't list files while deleting. Synonyms: /NOLOG, /QUIET."," ","/HEADING"," Print heading and summary information."," ","/NOHEADING"," Don't print heading and summary information."," ","/PAGE"," If listing, pause after each screenful."," ","/NOPAGE"," Don't pause after each screenful."," ","/ASK"," Interactively ask permission to delete each file."," ","/NOASK"," Delete files without asking permission."," ","/SIMULATE"," Preview files selected for deletion without actually deleting them."," Implies /LIST."," ","Use SET OPTIONS DELETE to make selected switches effective for every DELETE","command \unless you override them; use SHOW OPTIONS to see selections currently","in effect. Also see HELP PURGE, HELP WILDCARD.",""};#ifndef NOHTTPstatic char *hmxxhttp[] = {"Syntax:","HTTP [ <switches> ] GET <remote-filename> [ <local-filename> ]"," Retrieves the named file. If a <local-filename> is given, the file is"," stored locally under that name; otherwise it is stored with its own name."," ","HTTP [ <switches> ] HEAD <remote-filename> <local-filename>"," Like GET except without actually getting the file; instead it gets only"," the headers, storing them into the given file, whose name must be given,"," one line per header item, as shown in the /ARRAY: switch description."," ","HTTP [ <switches> ] INDEX <remote-directory> [ <local-filename> ]"," Retrieves the file listing for the given server directory."," NOTE: This command is not supported by most Web servers."," ","HTTP [ <switches> ] POST [ /MIME-TYPE:<type> ] <local-file> <remote-file>"," Used to send a response as if it were sent from a form. The data to be"," posted must be read from a file."," ","HTTP [ <switches> ] PUT [ /MIME-TYPE:<type> ] <local-file> <remote-file>"," Uploads a local file to a server file."," ","HTTP [ <switches> ] DELETE <remote-filename>"," Instructs the server to delete the specified filename."," ","where <switches> are:","/AGENT:<user-agent>"," Identifies the client to the server; \"C-Kermit\" or \"Kermit-95\""," by default."," ","/HEADER:<header-line>"," Used for specifying any optional headers. A list of headers is provided"," using braces for grouping:"," "," /HEADER:{{<tag>:<value>}{<tag>:<value>}...}"," "," For a listing of valid <tag> value and <value> formats see RFC 1945:"," \"Hypertext Transfer Protocol -- HTTP/1.0\". A maximum of eight headers"," may be specified."," ","/USER:<name>"," In case a page requires a username for access."," ","/PASSWORD:<password>"," In case a page requires a password for access."," ","/ARRAY:<arrayname>"," Tells Kermit to store the response headers in the given array, one line"," per element. The array need not be declared in advance. Example:"," "," http /array:c get kermit/index.html"," show array c"," Dimension = 9"," 1. Date: Fri, 26 Nov 1999 23:12:22 GMT"," 2. Server: Apache/1.3.4 (Unix)"," 3. Last-Modified: Mon, 06 Sep 1999 22:35:58 GMT"," 4. ETag: \"bc049-f72-37d441ce\""," 5. Accept-Ranges: bytes"," 6. Content-Length: 3954"," 7. Connection: close "," 8. Content-Type: text/html"," ","As you can see, the header lines are like MIME e-mail header lines:","identifier, colon, value. The /ARRAY switch is the only method available","to a script to process the server responses for a POST or PUT command."," ","The HTTP commands are only applicable when a connection has already been","established to a host using the SET HOST command."," ",#ifdef CK_SSL"HTTP over SSLv3 or TLSv1 made be performed by using the /SSL or /TLS","protocol switches when establishing the connection with SET HOST."," ",#endif /* CK_SSL */""};#endif /* NOHTTP */#ifdef CK_KERBEROSstatic char *hmxxauth[] = {"Syntax:","AUTHENTICATE { KERBEROS4, KERBEROS5 [ switches ] } <action> [ switches ]"," Obtains or destroys Kerberos tickets and lists information about them."," Actions are INITIALIZE, DESTROY, and LIST-CREDENTIALS. KERBEROS4 can be"," abbreviated K4 or KRB4; KERBEROS5 can be abbreviated K5 or KRB5. Use ? to"," see which keywords, switches, or other quantities are valid at each point"," in the command."," "," The actions are INITIALIZE, DESTROY, and LIST-CREDENTIALS:"," "," AUTH { K4, K5 } { INITIALIZE [switches], DESTROY,"," LIST-CREDENTIALS [switches] }"," "," The INITIALIZE action is the most complex, and its format is different"," for Kerberos 4 and Kerberos 5. The format for Kerberos 4 is:"," "," AUTH K4 INITIALIZE [ /INSTANCE:<name> /LIFETIME:<minutes> -"," /PASSWORD:<password> /PREAUTH /REALM:<name> <principal> ]"," "," All switches are optional. Kerberos 4 INITIALIZE switches are:"," "," /INSTANCE:<name>"," Allows an Instance (such as a hostname) to be specified."," "," /LIFETIME:<number>"," Specifies the requested lifetime in minutes for the ticket. If no"," lifetime is specified, 600 minutes is used. If the lifetime is greater"," than the maximum supported by the ticket granting service, the resulting"," lifetime is shortened accordingly."," "," /NOT-PREAUTH"," Instructs Kermit to send a ticket getting ticket (TGT) request to the"," KDC without any preauthentication data."," "," /PASSWORD:<string>"," Allows a password to be included on the command line or in a script"," file. If no /PASSWORD switch is included, you are prompted on a separate"," line. The password switch is provided on a use-at-your-own-risk basis"," for use in automated scripts. WARNING: Passwords should not be stored in"," files."," "," /PREAUTH"," Instructs Kermit to send a preauthenticated Ticket-Getting Ticket (TGT)"," request to the KDC instead of a plaintext request. The default when"," supported by the Kerberos libraries."," "," /REALM:<name>"," Allows a realm to be specified (overriding the default realm)."," "," <principal>"," Your identity in the given or default Kerberos realm, of the form:"," userid[.instance[.instance]]@[realm] "," Can be omitted if it is the same as your username or SET LOGIN USERID"," value on the client system."," "," The format for Kerberos 5 is as follows:"," "," AUTH K5 [ /CACHE:<filename> ] { INITIALIZE [ switches ], DESTROY,"," LIST-CREDENTIALS ...}"," ","The INITIALIZE command for Kerberos 5 can include a number of switches;","all are optional:"," ","AUTH K5 [ /CACHE:<filename> ] INITITIALIZE [ /ADDRESSES:<addr-list>"," /FORWARDABLE /KERBEROS4 /LIFETIME:<minutes> /PASSWORD:<password>"," /POSTDATE:<date-time> /PROXIABLE /REALM:<name> /RENEW /RENEWABLE:<minutes>"," /SERVICE:<name> /VALIDATE <principal> ]"," "," All Kerberos 5 INITIALIZE switches are optional:"," "," /ADDRESSES:{list of ip-addresses}"," Specifies a list of IP addresses that should be placed in the Ticket"," Getting Ticket in addition to the local machine addresses."," "," /FORWARDABLE"," Requests forwardable tickets."," "," /INSTANCE:<name>"," Allows an Instance (such as a hostname) to be specified."," "," /KERBEROS4"," Instructs Kermit to get Kerberos 4 tickets in addition to Kerberos 5"," tickets. If Kerberos 5 tickets are not supported by the server, a"," mild warning is printed and Kerberos 4 tickets are requested."," "," /LIFETIME:<number>"," Specifies the requested lifetime in minutes for the ticket. If no"," lifetime is specified, 600 minutes is used. If the lifetime is greater"," than the maximum supported by the ticket granting service, the resulting"," lifetime is shortened."," "," /NO-KERBEROS4"," Instructs Kermit to not attempt to retrieve Kerberos 4 credentials."," "," /NOT-FORWARDABLE"," Requests non-forwardable tickets."," "," /NOT-PROXIABLE"," Requests non-proxiable tickets."," "," /PASSWORD:<string>"," Allows a password to be included on the command line or in a script"," file. If no /PASSWORD switch is included, you are prompted on a separate"," line. The password switch is provided on a use-at-your-own-risk basis"," for use in automated scripts. WARNING: Passwords should not be stored in"," files."," "," /POSTDATE:<date-time>"," Requests a postdated ticket, valid starting at <date-time>. Postdated"," tickets are issued with the invalid flag set, and need to be fed back to"," the KDC before use with the /VALIDATE switch. Type HELP DATE for info"," on date-time formats."," "," /PROXIABLE"," Requests proxiable tickets."," "," /REALM:<string>"," Allows an alternative realm to be specified."," "," /RENEW"," Requests renewal of a renewable Ticket-Granting Ticket. Note that "," an expired ticket cannot be renewed even if it is within its renewable "," lifetime."," "," /RENEWABLE:<number>"," Requests renewable tickets, with a total lifetime of <number> minutes."," "," /SERVICE:<string>"," Allows a service other than the ticket granting service to be specified."," "," /VALIDATE"," Requests that the Ticket Granting Ticket in the cache (with the invalid"," flag set) be passed to the KDC for validation. If the ticket is within"," its requested time range, the cache is replaced with the validated"," ticket."," "," <principal>"," Your identity in the given or default Kerberos realm, of the form:"," userid[/instance][@realm] "," Can be omitted if it is the same as your username or SET LOGIN USERID"," value on the client system."," "," Note: Kerberos 5 always attempts to retrieve a Ticket-Getting Ticket (TGT)"," using the preauthenticated TGT request."," "," AUTHORIZE K5 LIST-CREDENTIALS [ /ADDRESSES /FLAGS /ENCRYPTION ]",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -