9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] newbie rc question
Date: Mon, 15 Oct 2007 16:34:52 -0400	[thread overview]
Message-ID: <7b3782aa3c2451d6c10eb63778ced9bf@quanstro.net> (raw)
In-Reply-To: <b58c099118368526226feab519d01c55@csplan9.rit.edu>

> This doesn't quite allow for the same possibilities as the original
> Unix program seemed to, where you could do:
> watch fig1.pic | pic | troff | page
> instead of being limited to just one command. Can the problem of
> open file descriptors be solved in rc while still giving a nice general
> tool, or is it necessary to go to C?
> 
> 
> John

sure it does.  you could replace the $2 < $1 in the script with

	rc -c $2<$1

then your command would be

watch fig1.pic 'pic|troff|page'

- erik



      reply	other threads:[~2007-10-15 20:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 16:46 john
2007-10-15 17:22 ` erik quanstrom
2007-10-15 20:30   ` john
2007-10-15 20:34     ` erik quanstrom [this message]

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=7b3782aa3c2451d6c10eb63778ced9bf@quanstro.net \
    --to=quanstro@quanstro.net \
    --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).