Re: Has this file changed?
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Wed, 18 Apr 2007 19:44:38 -0400
On 2007-04-18, -G- wrote:
Rikishi 42 wrote:
Then download it. Redirect the output to your file.
wget -r -N http://yoursite > file.txt
... should do the trick.
That sounds great, but the "file.txt" is a zero byte file, regardless of
whether the file is downloaded or not.
Perhaps wget does not allow redirection?
It does if you send the data to stdout:
wget -O - -N http://yoursite/file.html > file.txt
Or you can send it to /dev/null:
wget -O /dev/null -N http://yoursite/file.html
Or you can count the output:
wget -O - -N http://yoursite/file.html | wc
Etc..
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
========= Do not reply to the From: address; use Reply-To: ========
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.
- Follow-Ups:
- Re: Has this file changed?
- From: Chris Davies
- Re: Has this file changed?
- References:
- Has this file changed?
- From: -G-
- Re: Has this file changed?
- From: Bruce Stephens
- Re: Has this file changed?
- From: -G-
- Re: Has this file changed?
- From: Rikishi 42
- Re: Has this file changed?
- From: -G-
- Has this file changed?
- Prev by Date: Re: Graphics in FPC
- Next by Date: Re: Disk partitioning - Suse 10.2
- Previous by thread: Re: Has this file changed?
- Next by thread: Re: Has this file changed?
- Index(es):
Relevant Pages
|