|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『楼 主』:
【解决】怎样用批处理实现自动下载如下网页上的xdb文件
使用 LLM 解释/回答一下
非常感谢vkill朋友,他的批处理解决了我的问题,谢谢他,真的很佩服vkill朋友的批处理能力,唉,我等菜鸟只有看的份呀,感谢vkill
symantec的网页,
http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html
我想要弄一个批处理放到服务器上,让批处理每天自动下载这个网页上的最新的这个xdb病毒库文件,
批处理的主要任务就是:
自动从该网页或者从 ftp://ftp.symantec.com/AVDEFS/norton_antivirus/xdb/中下载最新的那个病毒库文件,然后拷贝到c:\program files\sav目录下。
请问各位,这个批处理该如何写,主要的问题是这个病毒库每天的名字都不一样。要怎么样才能取得最新的文件名呢?
我主要是想下载它网页上的病毒库文件,但是苦于批处理实在是太差,所以请各位高手指教
请问各位高手,这个批处理该怎么样作呢?
Last edited by chinaren12 on 2007-1-14 at 06:40 AM ]
Thanks vkill very much. His batch processing solved my problem. Thank you, I really admire vkill's batch processing ability. Oh, we noobs can only watch. Thanks vkill
Symantec's web page,
http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html
I want to make a batch processing and put it on the server, let the batch processing automatically download the latest xdb virus database file on this web page every day.
The main task of the batch processing is:
Automatically download the latest virus database file from this web page or from ftp://ftp.symantec.com/AVDEFS/norton_antivirus/xdb/, and then copy it to the c:\program files\sav directory.
May I ask you all, how should this batch processing be written? The main problem is that the name of this virus database is different every day. How can I get the latest file name?
I mainly want to download the virus database file on its web page, but I am not good at batch processing, so please ask all the experts for advice
May I ask all the experts, how should this batch processing be done?
Last edited by chinaren12 on 2007-1-14 at 06:40 AM ]
|
|
2007-1-11 09:47 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
在windows 2003中的ftp命令下,哪个命令能列表ftp特定目录下的所有文件到本地硬盘上??
In the FTP command in Windows 2003, which command can list all files in a specific FTP directory to the local hard disk?
|
|
2007-1-11 10:19 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
唉,没人愿意教我呀???
Hey, no one is willing to teach me???
|
|
2007-1-11 14:06 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
|
2007-1-12 03:25 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
自己顶,顶出答案来
Bump yourself up, hoping to get the answer out
|
|
2007-1-12 08:16 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
搜索下以前的帖子,有个和这个一样的帖子
Search for previous posts, there is a post that is the same as this one
|
|
2007-1-13 06:10 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
随便写的,没有测试
wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"
sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" CS-SAVCE.html|wget -i "-"
Last edited by vkill on 2007-4-18 at 02:44 AM ]
Randomly written, no testing
wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"
sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" CS-SAVCE.html|wget -i "-"
Last edited by vkill on 2007-4-18 at 02:44 AM ]
|
|
2007-1-13 06:17 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by vkill at 2007-1-13 06:17 AM:
随便写的,没有测试
wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"
sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" ...
大哥,能不能麻烦你把那个帖子的地址给我贴一下呀
我万分感谢呀,
还有例子中的 wget是一个另外的软件吗?如果是的话,麻烦你给个地址,谢谢
Originally posted by vkill at 2007-1-13 06:17 AM:
Randomly written, not tested
wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"
sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" ...
Dude, can you please post the address of that post for me?
I'm extremely grateful,
Also, is wget in the example another software? If so, please give an address, thank you
|
|
2007-1-14 05:42 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
非常无限的感谢vkill,
你的这个批处理非常成功,非常感谢,高手,佩服,伟大,感谢,感谢!!!!!!!!!!!!!!!!!!!!!
太感谢了!!!!!
Very grateful to vkill,
Your batch processing is very successful, thank you very much, expert, admire, great, thank you, thank you!!!!!!!!!!!!!!!
Thanks a lot!!!!!!!!!
|
|
2007-1-14 06:33 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
如果vkill朋友能够解释一下这几个语句的作用就太好了!!!!!!
It would be great if friend vkill could explain the functions of these several statements!!!!!
|
|
2007-1-14 06:35 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by chinaren12 at 2007-1-14 06:35:
如果vkill朋友能够解释一下这几个语句的作用就太好了!!!!!!
下载网页源码,sed 提取到http地址,在wget下载
Originally posted by chinaren12 at 2007-1-14 06:35:
It would be great if friend vkill could explain the functions of these several statements!!!!!
|
|
2007-1-14 06:42 |
|
|
chinaren12
中级用户
  
积分 312
发帖 77
注册 2004-2-9
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
wget我知道,
sed这个命令就不知道了,能详细说说吗?
尤其是通过通配符取http地址的用法,能再多举几个例子吗?
I know wget, but I don't know the sed command. Can you tell me in detail? Especially the usage of getting http addresses through wildcards, and can you give more examples?
|
|
2007-1-14 06:51 |
|