Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Apr 2015 02:04:20 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: Output to stderr, but everything worked as planned
Message-ID:  <20150409000420.GA54379@ivaldir.etoilebsd.net>
In-Reply-To: <5525422B.4000900@digiware.nl>
References:  <5525422B.4000900@digiware.nl>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Apr 08, 2015 at 04:58:51PM +0200, Willem Jan Withagen wrote:
> Hoi,
> 
> I'm using this script (cronic) that uses the return-result of a program
> and possible output on stderr to decide wether a command has failed or
> not. If it has failed it sends the reporting on.
> 
> For pkg audit -F I get:
> ----
> Cronic detected failure or error output for the command:
> /usr/sbin/pkg audit -F
> 
> RESULT CODE: 0
> 
> ERROR OUTPUT:
> pkg: vulnxml file up-to-date
> 
> STANDARD OUTPUT:
> 0 problem(s) in the installed packages found.
> 
> ----
> 
> Which is sort of weird, since everything was oke.
> Is there any particular design behind writting these informationals to
> stderr??
> And/or would it not be better to write this to stdout?

You are right I'll fix that

Best regards,
Bapt

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlUlwgQACgkQ8kTtMUmk6ExS5wCfY4MY29nUoE0Zulvi8xSdxsoF
I2sAoKluySxoLZ1Lk4rvb0nfpZsfHM51
=tZNk
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150409000420.GA54379>