From owner-freebsd-pkg@FreeBSD.ORG Wed Apr 8 14:59:10 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EDB7BEA1 for ; Wed, 8 Apr 2015 14:59:10 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AEDB520F for ; Wed, 8 Apr 2015 14:59:10 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 75FD316A404 for ; Wed, 8 Apr 2015 16:59:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cMgGwp3E78yv; Wed, 8 Apr 2015 16:58:38 +0200 (CEST) Received: from [192.168.101.198] (unknown [192.168.101.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 8411C16A402 for ; Wed, 8 Apr 2015 16:58:38 +0200 (CEST) Message-ID: <5525422B.4000900@digiware.nl> Date: Wed, 08 Apr 2015 16:58:51 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Output to stderr, but everything worked as planned Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2015 14:59:11 -0000 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