[Dart] compile output
Amitha Perera
perera at cs.rpi.edu
Tue, 22 Jan 2002 10:38:44 -0500
On Tue, Jan 22, 2002 at 10:10:44AM -0500, Blezek, Daniel J (CRD)
wrote:
> I tried to do this, but Tcl just doesn't support the proper
> mechanisms. While you can fork the process off, there is no way to
> monitor it to see when it's finished. Another approach is to open
> the build process as a pipe, and read from it, but only stdout can
> be read in this way, stderr must go to a file, and we loose the
> interleaving to associate an error with a file.
I think something like the following will work, if you want to capture
both streams:
set f [open "|yourprocess |& cat" "r"]
where cat is the standard Unix process that reads stdin and spits out
to stdout. (At least, it works under Unix.)