From: Stephen Samuel <samuel@bcgreen.com>
To: Christoph Pleger <Christoph.Pleger@uni-dortmund.de>
Cc: linux-admin@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Redirection of STDERR
Date: Tue, 09 Mar 2004 08:04:13 -0800 [thread overview]
Message-ID: <404DEAFD.8090802@bcgreen.com> (raw)
In-Reply-To: <20040308111349.030feea6.Christoph.Pleger@uni-dortmund.de>
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.
next prev parent reply other threads:[~2004-03-09 16:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 10:13 Redirection of STDERR Christoph Pleger
2004-03-09 16:04 ` Stephen Samuel [this message]
2004-03-09 17:18 ` Andreas Schwab
2004-03-09 17:18 ` Andreas Schwab
2004-03-10 7:50 ` Christoph Pleger
2004-03-10 8:21 ` vda
2004-03-10 9:31 ` Andreas Schwab
2004-03-10 16:39 ` Stephen Samuel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=404DEAFD.8090802@bcgreen.com \
--to=samuel@bcgreen.com \
--cc=Christoph.Pleger@uni-dortmund.de \
--cc=linux-admin@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.