[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Cons output on NT
From: |
Kolarik, Tony |
Subject: |
RE: Cons output on NT |
Date: |
Mon, 2 Oct 2000 17:23:49 -0400 |
I typically use cygwin's tee.exe. It needs one dll (cygwin1.dll) at least
with the version I have.
If you are calling it from a batch file you can use all the > tricks...
here's something I used before, I think it worked ok although looking at it
now I wouldn't be surprised if it needs a little fine tuning :-O
if "%CONS_OUT%"=="YES" perl.exe %TOOLSDIR%\cons.pl %CUR_ARG%
"BLD_ROOT=%BLD_ROOT%" %1 %2 %3 %4 %5 %6 %7 %8 %9 >>%LOGFILE% 2>>&1 1>>&2
if not "%CONS_OUT%"=="YES" perl.exe %TOOLSDIR%\cons.pl %CUR_ARG%
"BLD_ROOT=%BLD_ROOT%" %1 %2 %3 %4 %5 %6 %7 %8 %9 >>%LOGFILE% 2>>&1
if errorlevel 1 goto error
-- Tony K.
> -----Original Message-----
> From: Zachary Deretsky [mailto:address@hidden
> Sent: Monday, October 02, 2000 4:43 PM
> To: address@hidden
> Subject: Cons output on NT
>
>
> How to capture cons output into a log file on NT?
>
> cons -- -debug
> is my regular run which outputs to the DOS window.
>
> I tried
>
> cons.pl -- -debug > cons.log
> cons.pl -- -debug | tee cons.log
>
> tee here is mks tee.
>
> Nothing works, I can only see the output in the DOS window.
>
> It would be very useful to have an option in cons to print
> into a log file,
> with or without STDOUT and STDERR.
>
> Thanks, Zach.
>
> _______________________________________________
> address@hidden
> http://mail.gnu.org/mailman/listinfo/cons-discuss
> Cons URL: http://www.dsmit.com/cons/
>