强大的ftp客户端——ncftp

2007-10-26  |  分类:外贸网站建设  |  标签:  |  1,056 views

ncftp与传统的ftp相比,主要有以下改进或变化:
1、子目录下载,采用递归的方法,下载整个目录及其子目录。
2、支持断点续传。一次传输没有完成,下次可以接着传输未完成的文件。
3、匿名ftp自动登录。目前大部分ftp站点都可以匿名登录,ncftp可以自动登录(默认方式)。
4、支持通过防火墙传输和代理服务器。
5、支持书签功能,可以将某个位置存在书签中方便以后直接跳转。
6、可以显示下载进度。
7、显示传输速率。
8、文件列表自动满页暂停。当ls文件列表超过一屏,ncftp会自动暂停,等待任意键继续。
9、默认是以binary方式传输数据。
10、支持文件名自动完成。例如服务器上有文件download.list,您只要输入get down,系统可以自动填充文件名为download.list。
11、自动记忆站点的离开时的目录,下次登录会自动进入那个目录。
 

NcFTPGet 3.2.0

Usages:
  ncftpget [flags] remote-host local-dir remote-path-names…      (mode 1)
  ncftpget -f login.cfg [flags] local-dir remote-path-names…     (mode 2)
  ncftpget [flags] ftp://url.style.host/path/name                  (mode 3)
  ncftpget -c [flags] remote-host remote-path-name > stdout        (mode 4)
  ncftpget -C [flags] remote-host remote-path-name local-path-name (mode 5)
  ncftpget -c [flags] ftp://url.style.host/path/name > stdout      (mode 6)

Flags:
  -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.
  -a     Use ASCII transfer type instead of binary.
  -t XX  Timeout after XX seconds.
  -v/-V  Do (do not) use progress meters.
  -f XX  Read the file XX for host, user, and password information.
  -h XX  Connect to host XX.  Useful for overriding host in -f config.file.
  -c     Read from remote host and write locally to stdout.
  -C     Read from remote host and write locally to specified file.
  -A     Append to local files, instead of overwriting them.
  -z/-Z  Do (do not) try to resume downloads (default: -z).
  -E     Use regular (PORT) data connections.
  -F     Use passive (PASV) data connections (default).
  -DD    Delete remote file after successfully downloading it.
  -b     Run in background (submit job to “ncftpbatch” and run).
  -bb    Same as “-b” but queue only (do not run “ncftpbatch”).
  -B XX  Try setting the SO_RCVBUF size to XX.
  -r XX  Redial XX times until connected.
  -o XX  Specify miscellaneous options (see documentation).
  -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.
  -R     Recursive mode; copy whole directory trees.
  -T     Do not try to use TAR mode with Recursive mode.

Examples:
  ncftpget ftp.freebsd.org . /pub/FreeBSD/README.TXT /pub/FreeBSD/index.html
  ncftpget ftp.gnu.org /tmp ‘/pub/gnu/README.*’
  ncftpget ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT
  ncftpget -R ftp.ncftp.com /tmp /ncftp  (ncftp is a directory)
  ncftpget -u gleason -p my.password Bozo.probe.net . ‘/home/mjg/.*rc’
  ncftpget -u gleason Bozo.probe.net . /home/mjg/foo.txt  (prompt for password)
  ncftpget -f Bozo.cfg ‘/home/mjg/.*rc’
  ncftpget -c ftp.freebsd.org /pub/FreeBSD/README.TXT | /usr/bin/more
  ncftpget -c ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT | /usr/bin/more
  ncftpget -a -d /tmp/debug.log -t 60 ftp.wustl.edu . ‘/pub/README*’

Library version: LibNcFTP 3.2.0 (August 5, 2006).

This is a freeware program by Mike Gleason (http://www.ncftp.com).
This was built using LibNcFTP (http://www.ncftp.com/libncftp/).

********************************************************************************************************************************

NcFTPPut 3.2.0

Usages:
  ncftpput [flags] remote-host remote-dir local-files…   (mode 1)
  ncftpput -f login.cfg [flags] remote-dir local-files…  (mode 2)
  ncftpput -c remote-host remote-path-name < stdin         (mode 3)
  ncftpput -C remote-host local-path-name remote-path-name (mode 4)

Flags:
  -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).
  -j XX  Use account XX with the account (deprecated).
  -d XX  Use the file XX for debug logging.
  -e XX  Use the file XX for error logging.
  -U XX  Use value XX for the umask.
  -t XX  Timeout after XX seconds.
  -a     Use ASCII transfer type instead of binary.
  -m     Attempt to mkdir the dstdir before copying.
  -v/-V  Do (do not) use progress meters.
  -f XX  Read the file XX for host, user, and password information.
  -h XX  Connect to host XX.  Useful for overriding host in -f config.file.
  -c     Read locally from stdin and write remotely to specified pathname.
  -C     Similar to -c, except a local pathname is specified.
  -A     Append to remote files instead of overwriting them.
  -z/-Z  Do (do not) try to resume uploads (default: -Z).
  -T XX  Upload into temporary files prefixed by XX.
  -S XX  Upload into temporary files suffixed by XX.
  -DD    Delete local file after successfully uploading it.
  -b     Run in background (submit job to “ncftpbatch” and run).
  -bb    Same as “-b” but queue only (do not run “ncftpbatch”).
  -E     Use regular (PORT) data connections.
  -F     Use passive (PASV) data connections (default).
  -y     Try using “SITE UTIME” to preserve timestamps on remote host.
  -B XX  Try setting the SO_SNDBUF size to XX.
  -r XX  Redial XX times until connected.
  -o XX  Specify miscellaneous options (see documentation).
  -W XX  Send raw FTP command XX after logging in.
  -X XX  Send raw FTP command XX after each file transferred.
  -Y XX&n
bsp; Send raw FTP command XX before logging out.
  -R     Recursive mode; copy whole directory trees.

Examples:
  ncftpput -u gleason -p my.password Elwood.probe.net /home/gleason stuff.txt
  ncftpput -u gleason Elwood.probe.net /home/gleason a.txt (prompt for pass)
  ncftpput -a -u gleason -p my.password -m -U 007 Bozo.probe.net /tmp/tmpdir
xt
  tar cvf - /home | ncftpput -u operator -c Server.probe.net /backups/monday.

Library version: LibNcFTP 3.2.0 (August 5, 2006).

This is a freeware program by Mike Gleason (http://www.ncftp.com).
This was built using LibNcFTP (http://www.ncftp.com/libncftp/).

记录一些自己常用的:

1.公司图片用做分发的。  (本机上传至远程)
ncftpput  -u username  -p  password  hostname   /hotnewnet.com/catalog/images  *.*
将本目录的所有文件上传到hostname主机下的 /hotnewnet.com/catalog/images目录

2.测试单个文件。 (本机上传至远程)
D:\websites\catalog>ncftpput  -u username  -p  password  hostname   /httpdocs  123.txt
将本目录的123.txt文件上传到hostname主机下的 /httpdocs 目录

3.文件下载   (远程下载到本机)
D:\websites\catalog>ncftpget  -u username  -p  password  hostname .  /httpdocs/123.txt
将hostname主机下的/httpdocs/123.txt 下载到本机的当前目录(注意.)

3.文件下载至子目录  (远程下载到本机)
D:\websites\catalog>ncftpget  -u username  -p  password  hostname ./admin  /httpdocs/123.txt
将hostname主机下的/httpdocs/123.txt 下载到本机当前目录的/admin下面(注意./)

◎ 如果喜欢本文,你可以 订阅本站全文,以便获取更多相关的信息。

◎ 转载本站文章请在文中注明「转载自 外贸网站建设 字样,并附上本站链接,敬请合作!

◎ 本文永久链接:http://www.weiblog.com/archives/119
喜欢本文,就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

最新日志

  • No Related Post

发表您的评论

您必须 登录 才能发表评论。