2011-05-16 51 views

回答

2

找到了解决方案: 我们可以使用lftp实用程序,然后从ruby调用它。

lftp -f file_with_command 

其中 'file_with_command' 文件中,我们规定:

lftp -u %s,%s %s 
get '%s' 
exit 

其中%s将用户名,密码,主机名,文件替换获得相应。