2014-10-23 19:18 GMT+02:00 Raphael Cohn <[email protected]>:

>
> 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
_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help

Reply via email to