HP3000-L Archives

October 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 26 Oct 1999 13:26:38 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
TRACY PIERCE wrote:
>
> Jeff, would you be so kind as to supply an example of using PIPES and
> TEES?  Here's what we'd love to be able to do, or something like it,
> using pseudo-mpe syntax, I hope you get the idea.
>
> REDIRECT would contain something like...
> ;dev=WIDELP
> ;dev=LASERJET;env=lj132dgb.pub.minisoft
>
> :FILE MYOUTPUT;^REDIRECT
> :RUN MYPGM

I don't know that you could get environment files to work as the shell
could only deal with /dev/* files.  It should work for printer ldevs
(which can be defined with mknod) but as far as I know, not classnames
or other non-posix hooks.

tee just copies stdin to stdout but also 'tees' a copy to a file.  If
you wanted to print to three printers:

shell/ix> callci "RUN MYPGM"|tee /dev/lp1|tee /dev/lp2

ATOM RSS1 RSS2