From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Samuel Subject: Re: Redirection of STDERR Date: Tue, 09 Mar 2004 08:04:13 -0800 Sender: linux-admin-owner@vger.kernel.org Message-ID: <404DEAFD.8090802@bcgreen.com> References: <20040308111349.030feea6.Christoph.Pleger@uni-dortmund.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040308111349.030feea6.Christoph.Pleger@uni-dortmund.de> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Christoph Pleger Cc: linux-admin@vger.kernel.org, linux-kernel@vger.kernel.org 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. what I'd use would be: exec some_command 2>&1 | logger -t "$0[$$]" On the other hand, this could replace the script you're running with something that may never exit.. (sepending on what the command does) > > With kernel 2.4 this command works fine, but with kernel version 2.6.3 > it leads to a system hang. -- Stephen Samuel +1(604)876-0426 samuel@bcgreen.com http://www.bcgreen.com/~samuel/ Powerful committed communication. Transformation touching the jewel within each person and bringing it to light.