Discussion:
[Opendnssec-user] supresss key list completed in 0 seconds.
Bas van den Dikkenberg
2017-07-11 16:20:35 UTC
Permalink
Hello ,

When i run :

/usr/sbin/ods-enforcer key list | egrep completed -v | grep KSK

I would expect that the "key list completed in 0 seconds" would be suppressed but that's not the case.

So I had the idea maybe they changed the output to standerd but that was not the case.
I tried using the option -parsable this didn't solved the issue

How can I suppress this message?


With kind regards,

Bas


-----BEGIN PGP MESSAGE-----
Version: GnuPG v2

owFdkbFrFEEUxveihnPhIPcfPEQEJfHSpDmQI6kSDm2uUBvJ7M5zd7i9mWXebM5L
ohxCwEJQFOEEYxMsRUhA0oU0aQIpxCKpAkfqpEgTchCd3b1EsJmZ9817v/ce3/vS
NadYHvR/fHVvP5wp7G6PeM5Tfr41i1GkYLzkQsl9HKIEATqRUM2ESkK6Qp6QFcVp
AuVzpX3U0MQORIIMLAMGGmPwVSuO0CCHiQUrZlq9UYcMMgdtlUQc8EWMvgEwITP2
QOh3v1yR/hGEhEkg9JXk1O+uDos9BEriWCORzQEvMRmn3/1MIFXO8xnh/bxnQ8Ec
hIxnuuDIoMU6lmHDDvghkwHmfyoxccpSQIZJjppfsaHN/mOnuxgtbGlCQgY5IDZC
SbvLx5hpYl6UNhEEXHBppzNAKloYNhNECeYDzqq2ZUo75eVaeVnLvliAtSwptUSY
EJpCctAYMM0pd2qGkb3fPLvulIvO6I2R1EnHvTl26e/+A+dP5+Di0/fpxt3jjcU7
r0ZfV39GDdw7W6uu/XrSc6d+vyw4PZw+fldfYYUP66fFW4dHmyu1tye9e0uPBqvz
O81v9Bc=
=fFom
-----END PGP MESSAGE-----
Yuri Schaeffer
2017-07-11 18:32:24 UTC
Permalink
Hi Bas,
Post by Bas van den Dikkenberg
/usr/sbin/ods-enforcer key list | egrep completed -v | grep KSK
I would expect that the “key list completed in 0 seconds” would be
suppressed but that’s not the case.
It is send to stderr (as not to interfere with scripts). Try something
like this:

/usr/sbin/ods-enforcer key list 2>/dev/null | grep KSK

Also, Since 2.1 these messages are no longer printed. I recommend to
upgrade!

Regards,
//Yuri
Bas van den Dikkenberg
2017-07-11 19:00:44 UTC
Permalink
Hi yuri,

I would like to update but opendnssec is not yet in the ppa ?
When wil the update to 2.1 added tot he ppa ?

The sollution you provided works, only thing is when there is another error we won't catch it

Bas
-----Oorspronkelijk bericht-----
Van: Opendnssec-user [mailto:opendnssec-user-***@lists.opendnssec.org] Namens Yuri Schaeffer
Verzonden: dinsdag 11 juli 2017 20:32
Aan: opendnssec-***@lists.opendnssec.org
Onderwerp: Re: [Opendnssec-user] supresss key list completed in 0 seconds.

Hi Bas,
Post by Bas van den Dikkenberg
/usr/sbin/ods-enforcer key list | egrep completed -v | grep KSK
I would expect that the "key list completed in 0 seconds" would be
suppressed but that's not the case.
It is send to stderr (as not to interfere with scripts). Try something like this:

/usr/sbin/ods-enforcer key list 2>/dev/null | grep KSK

Also, Since 2.1 these messages are no longer printed. I recommend to upgrade!

Regards,
//Yuri
Yuri Schaeffer
2017-07-12 08:14:29 UTC
Permalink
[Sending failed last night. Retry]
Post by Bas van den Dikkenberg
I would like to update but opendnssec is not yet in the ppa ?
When wil the update to 2.1 added tot he ppa ?
Can't help you there. We do not maintain packages for any Linux
distributions.
Post by Bas van den Dikkenberg
The sollution you provided works, only thing is when there is another
error we won't catch it
Okay, fair enough. What about redirecting stderr to stdout first?

/usr/sbin/ods-enforcer key list 2>&1 | egrep completed -v | grep KSK

//Yuri

Loading...