📄 xnsftp.n
字号:
conjunction with \fIarchive\fP...TP.BI rmdir " directory-name"Delete a directory on the remote machine..TP\fBsend\fP \fIlocal-file\fP [ \fIremote-file\fP ]A synonym for put..TP.B statusShow the current status of.IR xnsftp ..TP.B traceToggle packet tracing..TP\fBtype\fP [ \fItype-name\fP ]Set the file transfer.I typeto.IR type-name .If no type is specified, the current typeis printed. The default type is \*(lq\fIguess\fP\*(rq, where xnsftp willattempt to determine the type from the file being transferred..I "Type-name"may specify one of the following file types.IR ascii , .IR binary , .IR guess ,.IR viewpoint "(Viewpoint document),".IR interpress ,.IR vpcanvas "(res),".IR vpdictionary ,.IR vpmailnote , .IR vpreference , .IR serialized (tSerialized)or.IR value ,a decimal number which is the numeric value for the type of the file (i.e., 7 for tAsciiText). [\fINote\fP: the Viewpoint file types.IR viewpoint , .IR vpdictionary ,.I vpmailnoteand .I vpreference will only set the type attributeof the file. Their use does not guarantee interoperability with Viewpoint atthis time since essential file attributes are not maintained when the file istransferred to a Unix system.].TP\fBunify\fP \fIdirectory\fPUnify the access lists for \fIdirectory\fP and all descendants..TP\fBuser\fP \fIuser-name\fP [ \fIpassword\fP ]Identify yourself to the remote Filing server. If thepassword is not specified,.I xnsftpwill prompt the user for it (after disabling local echo).Unless.I xnsftpis invoked with \*(lqauto-login\*(rq disabled, thisprocess is done automatically on initial connection tothe Filing server.The user name should be a standard XNS Clearinghouse name or alias, e.g.\*(lqj.q.\ johnson:computer\ science:cornell-univ\*(rq; if the domainand organization components of the name are not specified, they defaultto the local domain and organization..PPIf \*(lqauto-login\*(rq is used, credentials are determined either fromthe environment variables XNSNAME and XNSPASSWD or, if not defined, byprompting the user..TP.B verboseToggle verbose mode. In verbose mode, all responses fromthe Filing server are displayed to the user. In addition,if verbose is on, when a file transfer completes, statisticsregarding the efficiency of the transfer are reported. By default,verbose is on..TP\fBwhatis\fP \fIlocal-file\fPMake an educated guess as to the type of the file identified by \fIlocal-file\fP by examining the contents of the file. This is the determined type which would be used if the.I guesstype is in effect when transferring the file to the file service. If the userwishes to transfer the file as a different type, the appropriate.IR ascii ,.I binaryor.I typecommand should be used prior to transferring the file. .TP\fB?\fP [ \fIcommand\fP ]A synonym for help..PPCommand arguments which have embedded spaces may be quoted withquote (") marks..PP.SH "FILE NAMING CONVENTIONS"Files specified as arguments to.I xnsftpcommands are processed according to the following rules..TP1)If the file name \*(lq\-\*(rq is specified, the.B stdin(for reading) or.B stdout(for writing) is used..TP2)If the first character of the file name is \*(lq|\*(rq, theremainder of the argument is interpreted as a shell command..I Xnsftpthen forks a shell, using .IR popen (3)with the argument supplied, and reads (writes) from the stdout(stdin). If the shell command includes spaces, the argumentmust be quoted; e.g. \*(lq"| ls -lt"\*(rq. A particularlyuseful example of this mechanism is: \*(lqdir |more\*(rq..TP3)Failing the above checks, if ``globbing'' is enabled, local file names are expandedaccording to the rules used in the .IR csh (1);c.f. the .I globcommand. .TP4)Remote file names whose first character is \*(lq/\*(rq (slash) are interpretedas absolute pathnames. Other remote file names are interpreted as pathnamesrelative to the current connected directory..SH "FILE TRANSFER PARAMETERS"A \fItype\fP attribute is maintained by the service once a file is stored andmay be determined by listing the file via the \fIdir\fP command..I Xnsftpallows the type of file being transferred to be determined from the contentof the file (\fIput\fP), from the file service (\fIget\fP) or explicitlyoverridden by the user (\fIascii\fP, \fIbinary\fP or \fItype\fP)..PPBy default, .I xnsftpwill attempt the discern the type of the local file when storing a fileon a remote service. Currently, the types.IR ascii ,.IR binary ,.I interpress and.IR vpcanvas "(res)"can be determined by examining the contents of the file. A user can override this \*(lqguessed\*(rq type or set a type explicitly through the use of the.IR ascii ,.I binary or.I typecommands. The.I typecommand allows specification of several common Filing and Viewpoint definedfile types (\fIascii\fP(tText),.IR binary "(tUnspecified),".IR serialized "(tSerialized),".IR viewpoint "(Viewpoint document),".IR interpress ,.IR vpcanvas "(res),".IR vpdictionary ,.IR vpmailnote or.IR vpreference )as well as specification of a decimal value for file types not included in this list..PPWhen retrieving files from a remote service, the file type is not retainedlocally. However,.I xnsftpmay query the service for the file type, since it may affect the actualfile transfer. Once again, the user may override the type with one of theabove type-setting commands..PPFor some file types it is appropriate to convert the file between\*(lqnetwork format\*(rq and Unix standard format; therefore the \fItype\fP of a file being transferred may directly affect the transfer ofthe contents of that file to or from a remote service.In particular, it is generally appropriate to usethe following translation when transferring files of type \fIascii\fP or\fIvpmailnote\fP: Unix EOL characters(\\n) are translated to and from Xerox EOL characters (\\r), Xerox leftarrow characters are translated to underscore, etc. All other values for.I typeimply no translation will take place during file transfer. For files of thetypes supported by.I xnsftp, the default transfer type of \fIguess\fP will perform thecorrect translation. Specification of a parameter other than \fIguess\fP onthe \fItype\fP command can be used to force or inhibit a translation asnecessary..PPAlthough several Viewpoint related types are indeed allowed on the \fItype\fPcommand, use of these files within Viewpoint is not guaranteed since essentialattributes expected by Viewpoint are not maintained when a file is transferredto a Unix system with.IR xnsftp ..SH OPTIONSOptions may be specified at the command line, or to the command interpreter..PPThe.B \-v(verbose on) option forces.I xnsftpto show all responses from the remote server, as wellas report on data transfer statistics..PPThe.B \-noption restrains .I xnsftpfrom attempting \*(lqauto-login\*(rq upon initial connection..PPThe.B \-ioption turns off interactive prompting duringmutliple file transfers..PPThe.B \-doption enables debugging..PPThe.B \-goption disables file name globbing..PPThe.B \-coption allows a list of commands to be passed directly to \fIxnsftp\fP. The list is a sequence of commands separated by semi-colons (;). If a semi-colonfollows the last command in the list, \fIxnsftp\fP will enter prompt modefollowing the execution of the command sequence. This provides a simplecommand-line interface to \fIxnsftp\fP for use by other programs. For example,to list all files in the directory \*(lqpublic\*(rq on FS1, the following command could be used:.nf xnsftp -c "dir /public/*" FS1.fi.PPThe.B \-Foption allows the Filing Protocol to be used instead of the FilingSubset Protocol. This allows .I xnsftpto be used with existing Xerox file services and enables use of the.IR copy ,.I moveand.I renamecommands..SH NOTES.I Xnsftpwill attempt to use the FilingSubset Protocol when establishing a session with a remote file service. To assure compatibility with Xerox file serverswhich are currently running Filing Protocol (version 4),.I xnsftp will attempt to use Filing when the intended service rejects the FilingSubsetconnection. If the connection is established under this request, the use ofFiling will be identical to that of the FilingSubset and therefore transparentto the user (with the exception of the.IR copy ,.I move and.I renamecommands which are not available in a FilingSubset session)..PPThe.B \-F switch may be used to override the use of the FilingSubset Protocol and attempt the connection with Filing directly..SH BUGSAppend is not yet implemented..PPMany interesting features of the Filing protocol, e.g.remote searches using the Find RPC, are not supported.Also, only version 4 of Filing is supported..PPSerialization and deserialization is supported to the extent that the streamis read from or written to a single local file. At this time, there is noconvenient way to recreate the structure of a serialized stream locally orto serialize a local directory for transfer to a remote service..PPThere may be pathological cases where.I xnsftpmay not determine the correct type of the file when the \fIguess\fP type is in effect. In addition, most but not all files of type tUnspecified should betransferred in binary mode when retrieved from a service. In these cases,the \fItype\fP command may need to be used to guaranteethe correct file transfer mode..PPAborting a filetransfer does not work right; if one attempts this the connection tothe remote server will likely have to be reopened..PPThe Filing defined type of tAsciiText format is not implemented yet.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -