参考リンク
ncftpのコマンド試した履歴
-------------------------------------------------
ncFTP
http://www.ncftp.com/ncftp/
http://peryaudo.hatenablog.com/entry/20100601/1275402835
http://lovepeers.org/2012/09/21/ftp-upload-recursively/
http://linux.math.tifr.res.in/manuals/man/ncftp.html
http://www.ncftp.com/ncftp/doc/ncftp.html
BusyBox
http://www.busybox.net/downloads/BusyBox.html
-------------------------------------------------
Option:
connect-timeout
- Previous versions of the program used a single timeout value for everything. You can now have different values for different operations. However, you probably do not need to change these from the defaults unless you have special requirements.
- The connect-timeout variable controls how long to wait, in seconds, for a connection establishment to complete before considering it hopeless. You can choose to not use a timeout at all by setting this to -1.
- control-timeout
- This is the timer used when ncftp sends an FTP command over the control connection to the remote server. If the server hasn't replied in that many seconds, it considers the session lost.
xfer-timeout
- This timer controls how long to wait for data blocks to complete. Don't set this too low or else your transfers will timeout without completing.
NcFTPGet 3.1.7
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] ftp://url.style.host/path/name > stdout (mode 5)
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.
-A Append to local files, instead of overwriting them.
-z/-Z Do (do not) 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.
-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
start 11:20:10, first 11:20:40, second 11:20:50
start 11:24:20, first 11:20:50, second, 12:25:20, last 12:25:50
90秒後終了。3回トライしている模様。
~ # ncftpget -V -g 1 -u anonymous -p x -t 900,30,60 -B 8192 10.215.250.81 . config-1
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
以下は2回トライしているか。
~ # cftpget -V -g 1 -u anonymous -p x -t 120 -B 8192 10.215.250.81. config-1
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
start 11:37:00, second 11:39:00, 11:42:00 (retry once)
Comments
Post a Comment