Home
Main website
Loading Sidebar...
Hide Ads
Recent Changes
View Source:
ncftpls(1)
Edit
PageHistory
Diff
Info
LikePages
ncftpls !!!ncftpls NAME SYNOPSIS OPTIONS DESCRIPTION DIAGNOSTICS AUTHOR SEE ALSO ---- !!NAME ncftpls - Internet file transfer program for scripts !!SYNOPSIS __ncftpls__ [[''options''] ''ftp://url.style/host/path/name/'' !!OPTIONS __Command line flags:__ __-1__ Most basic format, one item per line. __-l__ Long list format. __-x -__''XX'' Additional ''ls'' flags to pass on to the server. __-u__ ''XX'' Use username ''XX'' instead of anonymous. __-p__ ''XX'' Use password ''XX'' with the username. __-P__ ''XX'' Use port number ''XX'' instead of the default FTP service port (21). __-d__ ''XX'' Use the file ''XX'' for debug logging. __-t__ ''XX'' Timeout after ''XX'' seconds. __-E__ Use regular (PORT) data connections. __-F__ Use passive (PASV) data connections. The default is to use passive, but to fallback to regular if the passive connection fails or times out. __-r__ ''XX'' Redial a maximum of ''XX'' times until connected to the remote FTP server. __-W__ ''XX'' Send raw FTP command ''XX'' after logging in. __-X__ ''XX'' Send raw FTP command ''XX'' after each file transferred. __-Y__ ''XX'' Send raw FTP command ''XX'' before logging out. The __-W__, __-X__, and __-Y__ options are useful for advanced users who need to tweak behavior on some servers. For example, users accessing mainframes might need to send some special SITE commands to set blocksize and record format information. For these options, you can use them multiple times each if you need to send multiple commands. For the __-X__ option, you can use the cookie __%s__ to expand into the name of the file that was transferred. !!DESCRIPTION The purpose of ''ncftpls'' is to do remote directory listings using the File Transfer Protocol without entering an interactive shell. This lets you write shell scripts or other unattended processes that can do FTP. The default behavior is to print the directory listing in columnized format (i.e. ls -CF), but that is not very useful for scripting. This example uses the __-1__ flag, to print one file per line: $ ncftpls -1 ftp://ftp.ncftp.com/pub/ncftp/ You can also do a remote -x__ flag. For example, if you wanted to do a remote __ $ ncftpls -x By default the program tries to open the remote host and login anonymously, but you can specify a username and password information like you can with ''ncftpget'' or ''ncftpput''. !!DIAGNOSTICS ''ncftpls'' returns the following exit values: 0 Success. 1 Could not connect to remote host. 2 Could not connect to remote host - timed out. 3 Transfer failed. 4 Transfer failed - timed out. 5 Directory change failed. 6 Directory change failed - timed out. 7 Malformed URL. 8 Usage error. 9 Error in login configuration file. 10 Library initialization failed. 11 Session initialization failed. !!AUTHOR Mike Gleason, NcFTP Software (mgleason@ncftp.com). !!SEE ALSO ncftpput(1), ''ncftpget(1), ncftp''(1), ftp(1), rcp(1), tftp(1). ''LibNcFTP'' (http://www.ncftp.com/libncftp/). ----
One page links to
ncftpls(1)
:
Man1n
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.