9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rx - wot no stderr?
Date: Wed, 24 Jan 2007 21:03:46 +0000	[thread overview]
Message-ID: <fa7a4b6b13ac14c679353173ee0332f8@vitanuova.com> (raw)
In-Reply-To: <df3ead9fb0547531720b87f46821951f@quintile.net>

> I would like to be able to do:
>
> 	rx -l steve host program > prog.out >[2] prog.err
>
> and I cannot.

you can do:

	echo hello | cpu -h host -c 'wc < /mnt/term/fd/10 > /mnt/term/fd/11 >[2] /mnt/term/fd/12' <[10=0] >[11=1] >[12=2] | tr '0-9' x

you'll get the 9p ping-pong penalty, but at least it can be done.

you could run the operative part up as a script if you felt like it.
unfortunately cpu doesn't do proper argument quoting, so you run
the risk of getting unexpected results if you try to get clever.



  parent reply	other threads:[~2007-01-24 21:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 17:14 Steve Simon
2007-01-19 12:32 ` Gorka guardiola
2007-01-19 13:07   ` erik quanstrom
2007-01-19 14:35     ` Steve Simon
2007-01-19 22:17       ` erik quanstrom
2007-01-20  1:15         ` Steve Simon
2007-01-20  1:34           ` erik quanstrom
2007-01-24 21:03           ` rog [this message]
2007-01-21  7:06   ` ron minnich

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=fa7a4b6b13ac14c679353173ee0332f8@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).