I have implemented the JavaService program mentioned in this list on WinNT platform. See www.alexandriasc.com/software/JavaService/. It seems to be a very good and reliable way to manage tomcat on the Windows platform. Can be managed remotely and started automatically on machine startup, and the stdout and stderr are automatically redirected to two files in the tomcat logs directory which is very useful. kind regards Dave Meaker > -----Original Message----- > From: Jeremy Leader [mailto:[EMAIL PROTECTED]] > Sent: 27 June 2001 20:18 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
