[comp.sys.amiga.misc] Flushing pipe:

hammond@cs.albany.edu (William F Hammond) (01/25/91)

Question:
  If I have in a shell

     type < PIPE:aa > speak:

and in *another* shell

     myprogram > PIPE:aa

are there any "control" codes that "myprogram" can send to the named
pipe to force immediate output to "speak:" *without* breaking the connection?

Is PIPE: documented anywhere other than in the 1.3 Enhancer Manual?

Please reply by email to:  hammond@leah.albany.edu .  I do not always
have the time to read here.  Thanks.
----------------------------------------------------------------------
William F. Hammond                   Dept. of Mathematics & Statistics
518-442-4625                         SUNYA, Albany, NY 12222
hammond@leah.albany.edu              wfh58@albnyvms.bitnet
----------------------------------------------------------------------

rsbx@cbmvax.commodore.com (Raymond S. Brand) (01/26/91)

In article <292@karp.albany.edu>, hammond@cs.albany.edu (William F Hammond) writes:
> Question:
>   If I have in a shell
> 
>      type < PIPE:aa > speak:
> 
> and in *another* shell
> 
>      myprogram > PIPE:aa
> 
> are there any "control" codes that "myprogram" can send to the named
> pipe to force immediate output to "speak:" *without* breaking the connection?

Make sure that "myprogram" flushes its output to the pipe. The PIPE: device
responds to each read packet by returning whatever is currently "in the pipe"
(or less for small reads).

						rsbx

> William F. Hammond                   Dept. of Mathematics & Statistics
> 518-442-4625                         SUNYA, Albany, NY 12222
> hammond@leah.albany.edu              wfh58@albnyvms.bitnet

------------------------------------------------------------------------
  Raymond S. Brand			rsbx@cbmvax.commodore.com
  Commodore-Amiga Engineering		...!uunet!cbmvax!rsbx
  1200 Wilson Drive			(215)-431-9100
  West Chester PA 19380			"Looking"
------------------------------------------------------------------------