Output to stderr, but everything worked as planned
Willem Jan Withagen
wjw at digiware.nl
Wed Apr 8 14:59:11 UTC 2015
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
More information about the freebsd-pkg
mailing list