Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Apr 2015 16:58:51 +0200
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        freebsd-pkg@freebsd.org
Subject:   Output to stderr, but everything worked as planned
Message-ID:  <5525422B.4000900@digiware.nl>

next in thread | raw e-mail | index | archive | help
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?

Regards,
--WjW



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