You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jeremy Leader <jl...@alumni.caltech.edu> on 2001/06/27 21:18:03 UTC
stderr and Windows (was Re: Question about Turbine Schema and
TDK)
Redirecting stderr is a problem under Windows (and before that,
under DOS). The standard command.com shells that come with
various versions of MS Windows don't support redirection of
stderr. You have a few choices:
1. Use a different shell. The MKS Toolkit has a pretty nice
Korn shell for Windows. I'm currently using Cygwin (open
source, free), which provides the bash shell. I think the
4Dos shell from years ago may still be floating around
somewhere. These shells (and I'm sure there are others) all
have various syntax (syntaces?) for redirecting stderr.
2. Write a program which will take a command line, run the
command, and captures stderr to a file. Years ago, the
Microsoft C/C++ compiler came with one called rederr, but I
haven't seen it in years. You could probably whip up your
own in C or Perl or even Java (using System.setErr).
3. Get the ant sources and change some or all of the references
to System.err to use System.out instead.
Jeremy
At 05:28 PM 6/23/01 , A Yang wrote:
>ASIDE: in WINDOWS, does anyone know how to capture ant
>output - specifically the JDBC errors? It's an stderr
>vs stdout thing I would imagine.....
>
>Regards,
>Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org