[gnutls-help] Quietening gnutls-cli

Sascha Ziemann ceving at gmail.com
Sat Oct 25 09:19:26 CEST 2014


2014-10-23 19:18 GMT+02:00 Raphael Cohn <raphael.cohn at stormmq.com>:

>
> I'm trying to automate gnutls-cli. I'm running it as a background job from
> bash, with stdin and stderr redirected to a pair of FIFOs.
>
> However, I can't find a way to stop gnutls-cli from outputing connection
> status information on stdout rather than stderr - things like "Processed
> 242 CA certificate(s).".
>


Untestet:

while read LINE; do
  if [ "$LINE" = "Processed 242 CA certificate(s)." ]; then
    echo "$LINE" >&2
  else
    echo "$LINE"
  fi
done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20141025/a9b800d5/attachment.html>


More information about the Gnutls-help mailing list