LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1477|回复: 11

wget怎么用?

[复制链接]
发表于 2003-3-27 16:25:35 | 显示全部楼层 |阅读模式
希望把http://www.vrv.com.cn/update/vrvclient.exe 下载到/home/vrv/update 目录中。
每七天做一次 ,覆盖下载文件。
这个怎么写???
 楼主| 发表于 2003-3-27 17:09:17 | 显示全部楼层
up
发表于 2003-3-27 22:05:20 | 显示全部楼层
crontab -e

00 12 * * 07 wget -o /home/vrv/update http://www.vrv.com.cn/update/vrvclient.exe

意思是调出vi编辑建立任务每星期天执行
 楼主| 发表于 2003-3-28 09:31:34 | 显示全部楼层
感觉不对。
-o  是表示logfile,还没把vrvclient.exe下载到指定位置。
发表于 2003-3-28 22:57:11 | 显示全部楼层
应该是这样:

crontab -e

00 12 * * 07 wget -O /home/vrv/update/vrvclient.exe http://www.vrv.com.cn/update/vrvclient.exe

那个参数 -O 是大写的,Output-document 之意,也可使用:
--output-document=/home/vrv/update/vrvclient.exe
代替
发表于 2003-3-28 23:10:30 | 显示全部楼层
-o是把信息输出到记录文件里,如果指定文件存在则覆盖它=--output-file
-O是设置存放输出信息的文件名称=--output-document=
发表于 2003-5-17 17:07:00 | 显示全部楼层
版主,能把wget使用命令和参数全部列出来让我这些菜鸟学习吗???最好其中举一两个例子,这样就直观多啦,易懂嘛。谢谢!
发表于 2003-6-24 16:11:31 | 显示全部楼层
需要wget教程!支持
发表于 2003-6-24 16:42:23 | 显示全部楼层
突然感觉这小东西蛮有用的。
发表于 2003-6-25 23:18:41 | 显示全部楼层
man wget
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表