comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Capturing output from SPAWN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Capturing output from SPAWN [message #11565] Fri, 17 April 1998 00:00 Go to previous message
Dan Peduzzi is currently offline  Dan Peduzzi
Messages: 3
Registered: June 1997
Junior Member
I would like to capture the output from a data-intensive
program invoked via SPAWN, but (here's the catch) I would
also like to have the program echo its output to the screen.

I've tried using something like this:

spawn,my_binary + ' | tee '+tempfile
spawn,'cat '+tempfile,output

But the problem here, I think, is that the pipe buffers
the output to the screen, and I don't see the output
at the same time it's produced by the binary.

Does anybody know of a way to capture the output AND
see it printed, unbuffered, to the screen?

============================================================ ====
Daniel C. Peduzzi

(work) (personal)
MIT Lincoln Laboratory peduzzi@ma.ultranet.com
peduzzi@ll.mit.edu http://www.ultranet.com/~peduzzi
============================================================ ====
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Program Code area full" error message
Next Topic: Re: axis is too thin? - test.ps (0/1)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:40:31 PDT 2025

Total time taken to generate the page: 1.44185 seconds