[文章作者:张宴 本文版本:v1.0 最后修改:2008.12.12 转载请注明原文链接:http://blog.zyan.cc/post/387/]

  借用了兄弟部门在全国N台服务器的空间放一些视频文件,由于只给我开放FTP帐号,于是找了一款Linux命令行下的FTP客户端软件──ncftp,用来作整个目录批量上传。ncftpput是它的一个附带程序,在shell脚本中调用ncftpput上传文件到FTP服务器,非常方便。

  详细内容见其官方网站:http://www.ncftp.com/

  编译安装:
wget ftp://ftp.ncftp.com/ncftp/ncftp-3.2.2-src.tar.gz
tar zxvf ncftp-3.2.2-src.tar.gz
cd ncftp-3.2.2/
./configure --prefix=/usr/local/ncftp
make && make install


  示例:将本地/data0/htdocs/videofile/flv/games/目录内的所有文件和目录,上传到FTP服务器的flv/games/目录内(如果不存在flv/games/目录则自动创建)。
/usr/local/ncftp/bin/ncftpput -u FTP帐号 -p FTP密码 -P FTP端口 -m -R 192.168.1.2  flv/games/ /data0/htdocs/videofile/flv/games/*



Tags: ,



技术大类 » 其他Unix技术 | 评论(49) | 引用(1) | 阅读(66644)
pikachu88 Email
2019-1-7 10:33
Thank you for providing information about this software, I hope to get more interesting information. slither io
Lopoir Email
2020-12-18 05:08
https://url4.org/eqvljhttps://url4.org/auwbohttps://url4.org/gqhcuhttps://url4.org/fvvzahttps://url4.org/zyxsn
shz Email
2022-7-21 17:16
It is extremely nice to see the greatest details presented in an easy and understanding manner.  Scam Risk
shz Email
2022-7-21 18:08
I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!  Scam Risk
shz Email
2022-7-21 18:32
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.  Scam Risk
shz Email
2022-7-21 18:36
I really enjoyed reading this post, big fan. Keep up the good work andplease tell me when can you publish more articles or where can I read more on the subject?  Scam Risk
shz Email
2022-7-21 18:39
I liked your article and I hope you will have many entries or more  Scam Risk
shz Email
2022-7-21 18:43
This is also a very good post which I really enjoy reading. It is not everyday that I have the possibility to see something like this.  Scam Risk
shz Email
2022-7-21 18:46
I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.  Scam Risk
shz Email
2022-7-21 18:57
I adore your websites way of raising the awareness on your readers.  Scam Risk
分页: 3/3 第一页 上页 1 2 3 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]