linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Stephen Samuel <samuel@bcgreen.com>
Cc: Christoph Pleger <Christoph.Pleger@uni-dortmund.de>,
	linux-admin@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Redirection of STDERR
Date: Tue, 09 Mar 2004 18:18:38 +0100	[thread overview]
Message-ID: <jehdwylz0x.fsf@sykes.suse.de> (raw)
In-Reply-To: <404DEAFD.8090802@bcgreen.com> (Stephen Samuel's message of "Tue, 09 Mar 2004 08:04:13 -0800")

Stephen Samuel <samuel@bcgreen.com> 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 want
to get an fd connected to a pipe.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 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

  reply	other threads:[~2004-03-09 17:18 UTC|newest]

Thread overview: 4+ 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
2004-03-09 17:18   ` Andreas Schwab [this message]
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=jehdwylz0x.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=Christoph.Pleger@uni-dortmund.de \
    --cc=linux-admin@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=samuel@bcgreen.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).