[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] --no-check-cert does not avoid cert warning
From: |
Tim Rühsen |
Subject: |
Re: [Bug-wget] --no-check-cert does not avoid cert warning |
Date: |
Tue, 01 Dec 2015 22:33:19 +0100 |
User-agent: |
KMail/4.14.10 (Linux/4.2.0-1-amd64; KDE/4.14.13; x86_64; ; ) |
Am Dienstag, 1. Dezember 2015, 21:48:52 schrieb Ander Juaristi:
> On 12/01/2015 09:31 AM, Tim Ruehsen wrote:
> > Are you working on *nix ?
> >
> > Try wget ... |& grep -v "WARNING: cannot verify"
> >
> > To filter out the warnings you don't want to see. You could use egrep to
> > filter different lines at once.
>
> That's a good idea but IMO it's a bit hackish. What's more, I think `|&'
> it's not a *nix feature, but rather a Bash feature.
>
> It's basically `2>&1 |' behind the scenes, but worth pointing it out, anyway
> [1].
>
> [1] http://www.gnu.org/software/bash/manual/bashref.html#Pipelines
You are right, it's a bashism. Doesn't work with dash.
But what works also with dash is
#!/bin/dash
{ wget -d xxx 2>&1 1>&3 | grep -v Saving 1>&2; } 3>&1
Found it here:
http://unix.stackexchange.com/questions/3514/how-to-grep-standard-error-stream-stderr
Tim
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Tim Ruehsen, 2015/12/01
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Ander Juaristi, 2015/12/01
- Re: [Bug-wget] --no-check-cert does not avoid cert warning,
Tim Rühsen <=
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Ángel González, 2015/12/09
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Giuseppe Scrivano, 2015/12/10
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Ángel González, 2015/12/10
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Giuseppe Scrivano, 2015/12/10
- Re: [Bug-wget] --no-check-cert does not avoid cert warning, Ángel González, 2015/12/10