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

📄 ftp.1c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1C
📖 第 1 页 / 共 2 页
字号:
.IR outchars .If the character's position in.I incharsis longer than the length of.IR outchars ,the character is deleted from the file name..RE.TP 10\fBopen\fP \fIhost\fP [ \fIport\fP ].NXR "open command (ftp)"Establishes a connection to the specifiedhost.PN ftpserver.  If an optional port number is supplied,.PN ftpattempts to contact an .PN ftpserver at that port.If the .I auto-loginoption is on (the default), .PN ftpautomatically attempts to log the user in tothe.PN ftpserver (see the description of the \f(CW.netrc\fR file)..TP.B prompt.NXR "prompt command (ftp)"Toggles interactive prompting.  Interactive promptingoccurs during multiple file transfers to allow theuser to retrieve or store files selectively.  Ifprompting is turned off (the default), any.B mgetor.B mputtransfers all files..TP\fBproxy\fP \fIftp-command\fP.NXR "proxy command (ftp)"Executes an .PN ftpcommand on a secondary control connection.This command allows simultaneous connection to two remote .PN ftpservers for transferring files between the two servers.The first.B proxycommand should be an.BR open ,to establish the secondary control connection.Type the command.PN proxy\0? to see other .PN ftpcommands executable on thesecondary connection.The following commands behave differently when prefaced by.BR proxy :.IP.B opendoes not define new macros during the auto-login process..IP.B closedoes not erase existing macro definitions..IP.B getand.B mgettransfer files from the host on the primary control connectionto the host on the secondary control connection..IP.BR put ,.BR mput ,and.B appendtransfer files from the host on the secondary control connectionto the host on the primary control connection.Third-party file transfers depend upon support of the FTPPASV command by the server on the secondary control connection..TP\fBput\fP \fIlocal-file\fP [ \fIremote-file\fP ].NXR "put command (ftp)"Copies a local file to the remote machine.  If you do notspecify a.IR remote-file ,the local file name is usedto name the remote file.  File transfer uses thecurrent settings for.IR type ,.IR format ,.IR mode ,and.IR structure ..TP.B pwd.NXR "pwd command (ftp)"Prints the name of the current working directory on the remotemachine..TP.B quit.NXR "quit command (ftp)"A synonym for .BR bye ..TP.BI quote " arg1 arg2 ...".NXR "quote command (ftp)"Sends the arguments that are specified, verbatim, to the remote.PN ftpserver.  A single FTP reply code is expected in return..TP\fBrecv\fP \fIremote-file\fP [ \fIlocal-file\fP ].NXR "recv command (ftp)"A synonym for .BR get ..TP\fBremotehelp\fP [ \fIcommand-name\fP ].NXR "remotehelp command (ftp)"Requests help from the remote.PN ftpserver.  If a command nameis specified, it is supplied to the server as well..TP\fBrename\fP [ \fIfrom\fP ] [ \fIto\fP ].NXR "rename command (ftp)"Renames the file.I fromon the remote machine to the file.IR to ..TP.B reset.NXR "reset command (ftp)"Clears the reply queue.This command resynchronizes command/reply sequencing with the remote.PN ftpserver.  If the remote server violates FTP,resynchronization may be necessary..TP.BI rmdir " directory-name".NXR "rmdir command (ftp)"Deletes a directory on the remote machine..TP.B runique.NXR "runique command (ftp)"Toggles storing of files on the local system with unique filenames.If a file already exists with a name equal to the targetlocal file name for a.B getor.B mgetcommand, a .1 is appended to the name.If the resulting name matches another existing file,a .2 is appended to the original name.If this process continues up to .99, an errormessage is printed, and the transfer does not take place.The generated unique file name will be reported.Note that.B runiquewill not affect local files generated from a shell command(see below).The default value is off..TP\fBsend\fP \fIlocal-file\fP [ \fIremote-file\fP ].NXR "send command (ftp)"A synonym for .BR put ..TP.B sendport.NXR "sendport command (ftp)"Toggles the use of PORT commands.  By default, .PN ftpattempts to use a PORT command when establishinga connection for each data transfer.  If the PORTcommand fails, .PN ftpuses the default data port.  When the use of PORTcommands is disabled, no attempt is made to usePORT commands for each data transfer.  This is usefulfor certain FTP implementations that do ignore PORTcommands but, incorrectly, indicate that the commandshave been accepted..TP.B status.NXR "status command (ftp)"Shows the current status of.PN ftp ..TP\fBstruct\fP [ \fIstruct-name\fP ].NXR "struct command (ftp)"Sets the file transfer structure to.IR struct-name .By default the file structure is used..TP.B sunique.NXR "sunique command (ftp)"Toggles storing of files on a remote machine under unique file names.The remote .PN ftpserver must support the FTP STOU command forsuccessful completion of this command.The remote server reports the unique name.The default value is off..TP.B tenexSets the file transfer type to that needed totalk to TENEX machines..TP.B trace.NXR "trace command (ftp)"Toggles packet tracing..TP\fBtype\fP [ \fItype-name\fP ].NXR "type command (ftp)"Sets the file transfer.I typeto.IR type-name .If no type is specified, the current typeis printed.  The default type is network ASCII..TP\fBuser\fP \fIuser-name\fP [ \fIpassword\fP ] [ \fIaccount\fP ].NXR "user command (ftp)"Identifies you to the remote.PN ftpserver.  If thepassword is not specified and the server requires it,.PN ftpdisables the local echo and then prompts you for it.If an account field is not specified, and the.PN ftpserverrequires it, you are prompted for it also.  Unless.PN ftpis invoked with auto-login disabled, thisprocess is done automatically on initial connection tothe.PN ftpserver..TP.B verbose.NXR "verbose command (ftp)"Toggles the verbose mode.  In verbose mode, all responses fromthe.PN ftpserver are displayed.  In addition,if verbose is on, statisticsregarding the efficiency of a file transfer are reported whenthe transfer is complete.  By default,verbose is on..SS Aborting a File TransferTo abort a file transfer, use the terminal interrupt key(usually CTRL/C).Sending transfers are halted immediately.Receiving transfers are halted by sending an FTP ABORcommand to the remote server, and discarding any further data received.The speed at which this is accomplished depends on the remoteserver's support for ABOR processing.If the remote server does not support the ABOR command, an .PN ftp>prompt appears when the remote server has completedsending the requested file..PPThe terminal interrupt key sequence is ignored when.PN ftphas completed any local processing and is awaiting a replyfrom the remote server.A long delay in this mode may result from ABOR processing,or from unexpected behavior by the remote server, includingviolations of the FTP.If the delay results from unexpected remote server behavior, the local.PN ftpprogram must be killed by hand..SS File-Naming Conventions.NXR "ftp program" "file-naming conventions"Files specified as arguments to.PN ftpcommands are processed according to the following rules:.TP 41)Standard input is used for readingand standard output is used for writingwhen the file name is specified as a minus sign (\-)..TP2)If the first character of the file name is a vertical bar(|), theremainder of the argument is interpreted as a shell command.The.PN ftpcommandthen forks a shell, using.MS popen 3with the argument supplied, and reads or writes from standardoutputor standard input respectively.  If the shell command includes spaces, the argumentmust be quoted, as in \f(CW"|ls -lt"\fR.A particularlyuseful example of this mechanism is: \f(CW"dir\0|more"\fR..TP3)If globbing is enabled, local file names are expandedaccording to the rules used in the .MS csh 1   (compare to the.PN globcommand).If the.PN ftpcommand expects a single local file, such as .BR put ,only the first file name generated by the globbing operation is used..TP4)For.B mgetcommands and.B getcommands with unspecified local file names, the local file name isthe remote file name and can be altered by a.BR case ,.BR ntrans ,or.B nmapsetting.The resulting file name may then be altered if.B runiqueis on..TP5)For.B mputcommands and.B putcommands with unspecified remote file names, the remote file name isthe local file name and can be altered by a.B ntransor.B nmapsetting.The resulting file name can then be altered by the remote server if.B suniqueis on..SS File Transfer Parameters.NXR "ftp program" "parameters supported"Many parameters can affect a file transfer.  The .I typecan be .BR ascii , .B image(binary),.BR ebcdic ,or local byte size.The.PN ftpcommand supports the.B ascii and.B imagetypes of file transfer and local byte size 8 for tenex mode transfers..PPThe.PN ftpcommand supports only the default values for the remainingfile transfer parameters: .IR mode ,.IR form ,and.IR struct ..SS The \&.netrc FileThe \f(CW.netrc\fRfile contains login and initialization informationused by the .PN ftpauto-login process.It resides in your home directory.See.MS netrc 5for a description and example of a \f(CW.netrc\fRfile.The following tokens in the \f(CW.netrc\fRfile are recognized; they can be separated by spaces,tabs, or new-lines:.TP 10\fBmachine\fP \fIname\fPIdentifies a remote machine name.The auto-login process searches the \f(CW.netrc\fR file for a.B machinetoken that matches the remote machine specified on the.PN ftpcommand line or as an.B opencommand argument.Once a match .ne 2is made, the subsequent \f(CW.netrc\fR tokens are processed,stopping when the end of file is reached or another.I machinetoken is encountered..TP\fBlogin\fP \fIname\fPIdentifies a user on the remote machine.If this token is present, the auto-login process initiatesa login using the specified name..TP\fBpassword\fP \fIstring\fPSupplies a password.If this token is present, the auto-login process supplies thespecified string if the remote server requires a password as partof the login process.Note that if this token is present in the \f(CW.netrc\fR file,and if the \f(CW.netrc\fR is readable byanyone other than the user,.PN ftpaborts the auto-login process..TP\fBaccount\fP \fIstring\fPSupplies an additional account password.When this token is present, the auto-login process supplies thethe remote server with an additional account password if the remote server requires it.If it does not, the auto-login process initiates anACCT command..TP\fBmacdef\fP \fIname\fPDefines a macro.This token functions like the.PN ftp.B macdefcommand.A macro is defined with a specified name; its contents begin with thenext \f(CW.netrc\fR line and continue until a null line (consecutive new-linecharacters) is encountered.If a macro named.I initis defined, it is automatically executed as the last step in theauto-login process..SH Restrictions.NXR "ftp program" "restricted"Correct execution of many commands depends on proper behavior by the remote server..PPThe .PN ftpdserver prevents the unauthorized users listed in the .PN /etc/ftpusersfile from transferring files..PPAn error in the treatment of carriage returns in the 4.2BSD UNIX .BR ascii typetransfer code has been corrected.  This correction may result inincorrect transfers of binary files to and from 4.2BSD servers using the .B asciitype.  Avoid this problem by using the.B binaryimage type..SH Files.TP 20.PN /etc/ftpusersContains the list of unauthorized users .SH See Alsonetrc(5), services(5), ftpd(8c), inetd(8c), syslog(8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -