Path: utzoo!attcan!uunet!jarthur!elroy.jpl.nasa.gov!ames!sun-barr!newstop!sun!ronin.Eng.Sun.COM!ronin From: ronin@ronin.Eng.Sun.COM (Brian Raymor) Newsgroups: comp.windows.news Subject: Re: OW 2 and %pipe Message-ID: <138026@sun.Eng.Sun.COM> Date: 28 Jun 90 17:03:02 GMT References: <1990Jun28.090832.22020@canon.co.uk> Sender: news@sun.Eng.Sun.COM Lines: 32 In article <1990Jun28.090832.22020@canon.co.uk>, rjf@canon.co.uk (Robin Faichney) writes: > > It looks like %pipe doesn't work anymore. Is this a bug, or > has %pipe been dropped; in either case, what is the alternative? > -- There is a new pipe extension. Here is a description from the NeWS 2.1 Programmer's Guide (Revision 50, of 23 February 1990) : command pipe => rfile wfile Executes the utility whose name is command. The input for command can be provided with writes on the wfile object. The output from command can be read from the rfile object. The wfile object is normally removed from the stack if command does not expect input. Popping either object is sufficient to close that portion of the connection. If a two-way, read-write connection is established, it is good practice to close the wfile before consuming command's output via rfile to overcome potential buffering problems. Your example would be rewritten as : (echo hello) pipe % rfile wfile pop % rfile 20 string readline { print } if Brian Raymor NeWS Technology Group