登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

NET START HERE

研究C/C++、网络/通信/协议编程、网络安全、软件安全

 
 
 

日志

 
 

【linux lftp使用】 file already exists and xfer:clobber is unset  

2011-06-27 10:55:08|  分类: linux入门 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
新接触使用linux中的lftp软件时,从ftp server下载文件时总是出现 file already exists and xfer:clobber is unset 错误,即如果本地已存在文件,则无法自动下载并覆盖文件

lftp mycode@192.168.3.12:/> get netchat.c
get: netchat.c: file already exists and xfer:clobber is unset
 
xfer:clobber is the setting in lftp that decides whether or not to allow mget to replace files.
// xfer:clobber 是lftp中用来设置是否允许自动覆盖本地文件的开卷
 
lftp mycode@192.168.3.12:/> set xfer:clobber on
lftp mycode@192.168.3.12:/> get netchat.c
1533 bytes transferred
 
解决办法
使用ftp连接上ftp后,执行命令 set xfer:clobber on 即可,如果想永久使用此设置,则编辑 /etc/lftp.conf 文件,查找 set xfer:max-redirections 10 ,在下面加入一行 set xfer:clobber on即可


 
  评论这张
 
阅读(4812)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018