知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
sudo apt-get install ncftp ncftp ftp://neo@127.0.0.1
batch ftp command
neo@netkiller:~$ cat upload #!/bin/bash ncftp ftp://netkiller:******@netkiller.hikz.com/www/book/linux <<END_SCRIPT put /home/neo/workspace/Development/public_html/book/linux/*.html
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*'