9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: Re: [9fans] rc output redirection
Date: Thu,  2 Apr 2009 19:28:14 +0200	[thread overview]
Message-ID: <753ca234fb5a31b787f9784841302714@proxima.alt.za> (raw)
In-Reply-To: <138575260904020956l6cee2941mb542ece7ba46a8b6@mail.gmail.com>

> If this
> is the case, how can I redirect cmd1's stderr to cmd3's stdin instead
> of cmd2's? or both?

It's a pipe_line_, not a directed graph.  You could write a wrapper to
do what you want quite easily, but expecting a simple, generic shell
notation to do it is asking a bit much.  At least, I don't think I'd
try to wrap my brain around this, I'd write a ten line C program for
the specific requirement.

++L




  reply	other threads:[~2009-04-02 17:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 16:56 hugo rivera
2009-04-02 17:28 ` lucio [this message]
2009-04-03  5:13 ` Russ Cox
2009-04-03  8:51   ` hugo rivera

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=753ca234fb5a31b787f9784841302714@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@9fans.net \
    /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).