[Dart] compile output

Blezek, Daniel J (CRD) blezek at crd.ge.com
Tue, 22 Jan 2002 10:55:52 -0500


Even though "cat" is not standard on windows, it could still be used.  For instance, Jim Miller found
a "kill" command that we use to stop run-away processes under windows.  If we could find something
similar, we might have a go if it.  The "cat" solution is a very good one, but needs to be supported
under windows to be of any value at all.

-dan

> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: Tuesday, January 22, 2002 10:44 AM
> To: Amitha Perera; Blezek, Daniel J (CRD)
> Cc: dart at public.kitware.com
> Subject: Re: [Dart] compile output
> 
> 
> 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.) 
>