Command line flags:
Most basic format, one item per line.
Long list format.
Additional ls flags to pass on to the server.
Use username XX instead of anonymous.
Use password XX with the username.
Use port number XX instead of the default FTP service port (21).
Use the file XX for debug logging.
Timeout after XX seconds.
Use regular (PORT) data connections.
Use passive (PASV) data connections. The default is to use passive, but to fallback to regular if the passive connection fails or times out.
Redial a maximum of XX times until connected to the remote FTP server.
Send raw FTP command XX after logging in.
Send raw FTP command XX after each file transferred.
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.
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 wanted to do a remote __
$ ncftpls -x
ncftpls returns the following exit values:
Could not connect to remote host.
Could not connect to remote host - timed out.
Transfer failed - timed out.
Directory change failed.
Directory change failed - timed out.
Error in login configuration file.
Library initialization failed.