From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: Redirection of STDERR Date: Tue, 09 Mar 2004 18:18:38 +0100 Sender: linux-admin-owner@vger.kernel.org Message-ID: References: <20040308111349.030feea6.Christoph.Pleger@uni-dortmund.de> <404DEAFD.8090802@bcgreen.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <404DEAFD.8090802@bcgreen.com> (Stephen Samuel's message of "Tue, 09 Mar 2004 08:04:13 -0800") List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Stephen Samuel Cc: Christoph Pleger , linux-admin@vger.kernel.org, linux-kernel@vger.kernel.org Stephen Samuel writes: > Christoph Pleger wrote: >> Hello, >> In my initialization scripts for hotplug (written for bash) the >> following command is used to redirect output which normally goes to >> stderr to the system logger: >> "exec 2> >(logger -t $0[$$])" > I don't remember this syntax as legal. That's the process substitution feature of bash, quite handy when you w= ant to get an fd connected to a pipe. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html