1 .TH ncftpls 1 NcFTP Software
3 ncftpls - Internet file transfer program for scripts
8 .I "ftp://url.style/host/path/name/"
16 Most basic format, one item per line.
24 flags to pass on to the server.
39 instead of the default FTP service port (21).
52 Use regular (PORT) data connections.
55 Use passive (PASV) data connections.
56 The default is to use passive, but to fallback to
57 regular if the passive connection fails or times out.
62 times until connected to the remote FTP server.
70 is to do remote directory listings using
71 the File Transfer Protocol without entering an interactive shell.
72 This lets you write shell scripts or other unattended
73 processes that can do FTP.
75 The default behavior is to print the directory listing in columnized
76 format (i.e. ls\ \-CF), but that is not very useful for scripting.
79 flag, to print one file per line:
83 $ ncftpls -1 ftp://ftp.ncftp.com/pub/ncftp/
86 You can also do a remote "ls\ \-l", by using "ncftpls\ \-l".
87 If you want to try other flags, you have to use them with the
90 For example, if you wanted to do a remote "ls\ \-lrt", you could
95 $ ncftpls -x "-lrt" ftp://ftp.ncftp.com/pub/ncftp/
98 By default the program tries to open the remote host
99 and login anonymously, but you can specify a username
100 and password information like you can with
109 returns the following exit values:
115 Could not connect to remote host.
118 Could not connect to remote host - timed out.
124 Transfer failed - timed out.
127 Directory change failed.
130 Directory change failed - timed out.
139 Error in login configuration file.
142 Library initialization failed.
145 Session initialization failed.
150 Mike Gleason, NcFTP Software (mgleason@ncftp.com).
162 .IR "LibNcFTP" " (http://www.ncftp.com/libncftp/)."