From owner-freebsd-questions@freebsd.org Mon Sep 21 11:27:05 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 487AD3EE6FB for ; Mon, 21 Sep 2020 11:27:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bw2GJ0vpRz47J9 for ; Mon, 21 Sep 2020 11:27:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.34.202]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MRmsE-1jsMjk0n6o-00TDSt; Mon, 21 Sep 2020 13:27:02 +0200 Date: Mon, 21 Sep 2020 13:27:01 +0200 From: Polytropon To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org Subject: Re: Error message output Message-Id: <20200921132701.61bf9883.freebsd@edvax.de> In-Reply-To: <20200921090937.fc1fbed5bdcd9615d77ea8f4@sohara.org> References: <20200920191108.22864e5c.freebsd@edvax.de> <528b2c90-18c4-9e95-a150-67344154c66c@holgerdanske.com> <20200921090937.fc1fbed5bdcd9615d77ea8f4@sohara.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Tm78BRYQFrrfva5WKGIGuxq3PbDruRzQL6SERxGcafzg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lu8Z9idr54O15o98EM+b2OPHqTgi+6LUzbW7tlyicF3ukUL X-Rspamd-Queue-Id: 4Bw2GJ0vpRz47J9 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [0.75 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-0.15)[-0.154]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[178.12.34.202:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.543]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.951]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.126.130:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.126.130:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 11:27:05 -0000 On Mon, 21 Sep 2020 09:09:37 +0100, Steve O'Hara-Smith wrote: > On Sun, 20 Sep 2020 22:12:24 -0700 > David Christensen wrote: > > > I have been migrating my programming style towards a data flow paradigm, > > which includes "command-line filters". So, an "ideal" command-line > > program or script would: > > > > * Use stdin for the input data. > > > > * Use stdout for the output data. > > > > * Use configuration files, command-line options and arguments, received > > signals and direct tty reads for out-of-band/ non-data input. > > This is where the standard set of unix devices is lacking, I have > long thought that there should be a stdctl then stdin/stdout are data flow > and stdtctl/stderr are control flow. At least that is something known in "mainframe land": While the file SYSPRINT is intended for program messages, i. e., things the program has to say about what it does, a different file is used for program output, for example SYSUT2 (but it doesn't have to be that one). But not everything is that clear: SYSIN can be used to control the program, but PARM= can also serve this purpose, while STDIN can instead contain input data for the program to process. And don't get me started about DCL... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...