wget怎么用?

由 longdas 在 03-27-2003 16:25 发表:

wget怎么用?

希望把 http://www.vrv.com.cn/update/vrvclient.exe 下载到/home/vrv/update 目录中。

每七天做一次 ,覆盖下载文件。

这个怎么写???


redhat 7.3/8.0/9/0

HP lh 6000 server

Dell 2650 Server


由 longdas 在 03-27-2003 17:09 发表:


up


redhat 7.3/8.0/9/0

HP lh 6000 server

Dell 2650 Server


由 dsj 在 03-27-2003 22:05 发表:


crontab -e

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

意思是调出vi编辑建立任务每星期天执行


闲聊空间:

http://www.wonyen.net/bbs/mboard.asp


由 longdas 在 03-28-2003 09:31 发表:


感觉不对。

-o 是表示logfile,还没把vrvclient.exe下载到指定位置。


redhat 7.3/8.0/9/0

HP lh 6000 server

Dell 2650 Server


由 Nio 在 03-28-2003 22:57 发表:


应该是这样:

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

代替


由 dsj 在 03-28-2003 23:10 发表:


-o是把信息输出到记录文件里,如果指定文件存在则覆盖它=--output-file

-O是设置存放输出信息的文件名称=--output-document=


闲聊空间:

http://www.wonyen.net/bbs/mboard.asp


由 kpjmlql 在 05-17-2003 17:07 发表:


版主,能把wget使用命令和参数全部列出来让我这些菜鸟学习吗???最好其中举一两个例子,这样就直观多啦,易懂嘛。谢谢!


用爱心温暖地球,用双手创造人生!

Red Hat Linux 9.0


由 hothot 在 06-24-2003 16:11 发表:


需要wget教程!支持


喜欢自由的操作系统,喜欢自由的软件!


由 dbl2 在 06-24-2003 16:42 发表:


突然感觉这小东西蛮有用的。


由 dsj 在 06-25-2003 23:18 发表:


man wget


闲聊空间:

http://www.wonyen.net/bbs/mboard.asp


由 chinadragon007 在 04-24-2004 10:08 发表:

re

GNU Wget 1.8.2, a non-interactive network retriever.

Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:

-V, --version display the version of Wget and exit.

-h, --help print this help.

-b, --background go to background after startup.

-e, --execute=COMMAND execute a `.wgetrc'-style command.

Logging and input file:

-o, --output-file=FILE log messages to FILE.

-a, --append-output=FILE append messages to FILE.

-d, --debug print debug output.

-q, --quiet quiet (no output).

-v, --verbose be verbose (this is the default).

-nv, --non-verbose turn off verboseness, without being quiet.

-i, --input-file=FILE download URLs found in FILE.

-F, --force-html treat input file as HTML.

-B, --base=URL prepends URL to relative links in -F -i file.

--sslcertfile=FILE optional client certificate.

--sslcertkey=KEYFILE optional keyfile for this certificate.

--egd-file=FILE file name of the EGD socket.

Download:

--bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host.

-t, --tries=NUMBER set number of retries to NUMBER (0 unlimits).

-O --output-document=FILE write documents to FILE.

-nc, --no-clobber don't clobber existing files or use .# suffixes.

-c, --continue resume getting a partially-downloaded file.

--progress=TYPE select progress gauge type.

-N, --timestamping don't re-retrieve files unless newer than local.

-S, --server-response print server response.

--spider don't download anything.

-T, --timeout=SECONDS set the read timeout to SECONDS.

-w, --wait=SECONDS wait SECONDS between retrievals.

--waitretry=SECONDS wait 1...SECONDS between retries of a retrieval.

--random-wait wait from 0...2*WAIT secs between retrievals.

-Y, --proxy=on/off turn proxy on or off.

-Q, --quota=NUMBER set retrieval quota to NUMBER.

--limit-rate=RATE limit download rate to RATE.

Directories:

-nd --no-directories don't create directories.

-x, --force-directories force creation of directories.

-nH, --no-host-directories don't create host directories.

-P, --directory-prefix=PREFIX save files to PREFIX/...

--cut-dirs=NUMBER ignore NUMBER remote directory components.

HTTP options:

--http-user=USER set http user to USER.

--http-passwd=PASS set http password to PASS.

-C, --cache=on/off (dis)allow server-cached data (normally allowed).

-E, --html-extension save all text/html documents with .html extension.

--ignore-length ignore `Content-Length' header field.

--header=STRING insert STRING among the headers.

--proxy-user=USER set USER as proxy username.

--proxy-passwd=PASS set PASS as proxy password.

--referer=URL include `Referer: URL' header in HTTP request.

-s, --save-headers save the HTTP headers to file.

-U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.

--no-http-keep-alive disable HTTP keep-alive (persistent connections).

--cookies=off don't use cookies.

--load-cookies=FILE load cookies from FILE before session.

--save-cookies=FILE save cookies to FILE after session.

FTP options:

-nr, --dont-remove-listing don't remove `.listing' files.

-g, --glob=on/off turn file name globbing on or off.

--passive-ftp use the "passive" transfer mode (default).

--active-ftp use the "active" transfer mode.

--retr-symlinks when recursing, get linked-to files (

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus