写了个断网自动重连的小脚本
升级到了Ubuntu 8.04

lftp 的书签

Tiger Soldier posted @ 2008年4月06日 19:56 in linux with tags lftp , 3117 阅读

在默认情况下,lftp添加书签时,只会记录用户名与站点的URL,不会记录密码与其他选项。但是我们可以通过编辑它的Bookmark来修改它。

在启动了lftp后,输入

bookmark edit

就会自动调用vi来编辑它的bookmark文件。在有站点的时候,一般是这样的:

site1     ftp://username1@sitename1.xxx/
site2     ftp://username2@sitename2.xxx/

每一行代表一个书签,第一列是书签名,后面是书签内容。

其实lftp对书签的处理就是把书签换成lftp的启动参数。因此,lftp site1就相当于

lftp ftp://username1@sitename1.xxx/

因此我们完全可以把书签的内容换成lftp启动参数所兼容的内容。例如,如果要让lftp打开site1时自动输入密码,只需要把site1改为

site1     ftp://username1:password1@sitename1.xxx/

如果要在打开站点时顺便执行一些命令,比方说,设定字符集与代理,那么可以用-e参数。

具体来说,让site1的代理是http://someproxy:8080,且字符集是GBK,只需要这样:

site1     -e "set ftp:charset GBK;set ftp:proxy http://someproxy:8080" ftp://username1:password1@sitename1.xxx/

按照这个思路,其实可以把书签变成一个批处理文件,如果一个书签太长,那么拆分成几个,相互调用就可以了。

  • 无匹配
boardmodelpaper.com 说:
Jan 20, 2024 03:06:57 PM

The Board model paper" typically refers to a sample or model question paper that is designed by educational boards or institutions for various exams. These papers serve as practice material for students preparing for exams, providing them with an idea of the question format, difficulty level, and the type of content that may be covered in the actual examination. boardmodelpaper.com Model papers are usually created for specific subjects or courses. They cover a range of topics and chapters that students are expected to have studied during the academic term. Students often use these educational board model papers as an integral part of their exam preparation strategy, helping them familiarize themselves with the exam pattern and refine their understanding of the subject matter.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter