Tomcat 4.1 System.out

M

Michael Baran

Hi all,

I am upgrading from Tomcat 3.2.4 to 4.1.27.

Many of our servlets make system calls and rely on being able to suck
up the stdout of the programs the java was calling.

It seems in Tomcat 4 stdout is being rerouted somehow.

Does anyone know how to configure Tomcat so stdout can be captured
using something like this:

BufferedReader in = new BufferedReader( new
InputStreamReader(pro.getInputStream()));
StringBuffer output = new StringBuffer();
String line = "";
while ((line=in.readLine()) != null)
{
output.append(line + "\n");
}
Result = output.toString();
System.out.println(Result);
pro.waitFor();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top