2
I have a bash script that launches a series of wget commands and log the output. I use the following options:
wget --no-verbose --page-requisites --adjust-extension --convert-links --backup-converted --timestamping --wait=1 --random-wait --append-output="$logfile" --recursive --level=2 http://example.com
The logs should end with:
Terminé — 2014-10-09 18:06:40 —
Temps total effectif : 1m 7s
Téléchargés : 11 fichiers, 79K en 0,06s (1,22 MB/s)
But sometimes there is no such summary, all I see are the errors that happened:
http://example.com/robots.txt:
2014-10-09 18:06:41 erreur 404 : Ce fichier n'existe pas (404).
http://example.com/index.html:
2014-10-09 18:08:27 erreur 404 : Ce fichier n'existe pas (404).
http://example.com/folder1/folder2/default.asp.html:
2014-10-09 18:08:31 erreur 404 : Ce fichier n'existe pas (404).
http://example.com/folder1/index.html:
2014-10-09 18:08:56 erreur 404 : Ce fichier n'existe pas (404).
http://example.com/folder1/folder2/folder3/"../images/bullet.gif":
2014-10-09 18:09:28 erreur 403 : Action interdite.
Why doesn't wget show a summary? Is it because no new files have been downloaded, or because there have been to many server errors (404, 403)?
If all you see are errors that happened, then I guess that means WGET wasn't able to fetch anything. And if doesn't download anything, you won't see the statistics at the end. – Vinayak – 2014-11-21T09:42:14.910