bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] to retrieve information from a log-file


From: Micah Cowan
Subject: Re: [Bug-wget] to retrieve information from a log-file
Date: Tue, 31 Mar 2009 09:51:41 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

address@hidden wrote:
> Greetings,
> 
> I miss a simple (=convenient) method to analyze the log-files that wget 
> produces. grep -L " saved " wget-log* is not sure enough, since in 
> localized vesions of wget the word "saved" changes.

Sure; though for automating purposes it's simple enough to force the C
or POSIX locale when invoking wget.

> Additionally 
> somebody could make a file my_file saved anywhere.txt .

They can't without explicitly using -O, and even if they do, it'll still
be quoted with ` and '.

LC_ALL=C wget micah.cowan.name -O 'my_file saved anywhere.txt'
2009-03-31 09:47:25 (145 KB/s) - `my_file saved anywhere.txt' saved [67255]

LC_ALL=C wget micah.cowan.name -O \`my_file\ saved\ anywhere.txt\'
2009-03-31 09:47:57 (160 KB/s) - ``my_file saved anywhere.txt\'' saved
[67255]

I agree that improvements could be made to parse-ability, but realize
too that people already rely on the existing format for parsing, so
changing it (by default) will and has caused problems.

There are eventual plans to provide more useful session information; see
http://wget.addictivecode.org/FeatureSpecifications/SessionInfoDataBase

- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknSSh0ACgkQ7M8hyUobTrH2GACfd1hFiBXrQYk8daTG7eKBcx0z
zlYAn1grZAIrOTvPaT6cH2NbXVKAmTsI
=AcMy
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]