[Dart] compile output
Bill Hoffman
bill.hoffman at kitware.com
Tue, 22 Jan 2002 10:44:13 -0500
Cat is not standard on windows and can not be used.
-Bill
At 10:38 AM 1/22/2002 -0500, Amitha Perera wrote:
>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.)