Eu tenho um script php que gera comandos bash para arquivos wget. Eu estou tentando logar atividade wget usando isso:
--directory-prefix='xxx' --append-output='xxx.txt' -c -t0 -S"
Mas o log é muito grande devido a isso:
0K .......... .......... .......... .......... .......... 0% 110K 14m5s
50K .......... .......... .......... .......... .......... 0% 230K 10m24s
100K .......... .......... .......... .......... .......... 0% 272K 8m49s
150K .......... .......... .......... .......... .......... 0% 41.7K 15m53s
200K .......... .......... .......... .......... .......... 0% 173M 12m42s
.
.
.
92800K .......... .......... .......... .......... .......... 99% 156K 0s
92850K .......... .......... ... 100% 139K=7m56s
Posso remover a saída acima e deixar o wget para obter apenas isso:
Warning: wildcards not supported in HTTP.
--2015-03-14 20:10:22-- xxxx
Resolving xxxx... xxxx
Connecting to xxxx|xxxx|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 401 Unauthorized
Server: nginx/1.4.4
Date: Sat, 14 Mar 2015 12:09:58 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
WWW-Authenticate: Basic realm="xxxx"
Reusing existing connection to xxxx:80.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: nginx/1.4.4
Date: Sat, 14 Mar 2015 12:09:58 GMT
Content-Type: application/octet-stream
Content-Length: 95102657
Last-Modified: Sun, 02 Mar 2014 04:54:04 GMT
Connection: keep-alive
ETag: "5312b96c-5ab26c1"
Accept-Ranges: bytes
Length: 95102657 (91M) [application/octet-stream]
Saving to: 'xxxx.mkv'
Warning: wildcards not supported in HTTP.
--2015-03-14 20:10:22-- xxxx
Resolving xxxx... xxxx
Connecting to xxxx|xxxx|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 401 Unauthorized
Server: nginx/1.4.4
Date: Sat, 14 Mar 2015 12:09:58 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
WWW-Authenticate: Basic realm="xxxx"
Reusing existing connection to xxxx:80.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: nginx/1.4.4
Date: Sat, 14 Mar 2015 12:09:58 GMT
Content-Type: application/octet-stream
Content-Length: 95102657
Last-Modified: Sun, 02 Mar 2014 04:54:04 GMT
Connection: keep-alive
ETag: "5312b96c-5ab26c1"
Accept-Ranges: bytes
Length: 95102657 (91M) [application/octet-stream]
Saving to: 'xxxx.mkv'
2015-03-14 20:18:19 (195 KB/s) - 'xxxx.mkv' saved [95102657/95102657]
Estou consumindo muito espaço apenas por causa deste log se estou interessado apenas nos detalhes reais, espero que alguém possa ajudar, obrigado!