Weird, I reinstalled Tomcat 3.1beta (changed to jdk1.2 also)
and suddenly one of my servlets crashes:
Runtime.exec crashes:
if(type.compareTo("Diff Run")==0){
out.println("Diff Run");
try {
cmdarray[0]="/usr/local/www/cgi-bin/Diffrun";
cmdarray[1]=Proband;
cmdarray[2]=Referenz;
cmdarray[3]=Mandant;
cmdarray[4]=Testrechner;
cmdarray[5]=null;
out.println("try executing..." + cmdarray[0] + "\n");
try {
int b;
Process p=runner.exec(cmdarray);
InputStream i=p.getInputStream();
while((b=i.read()) >= 0) {
out.write(b);out.flush();
}
} catch(Exception e) {
out.println("some exception occured ["+ e + "]");
^^^^^^^^^^^^^ This happens ^^^^^^^^^^
Any clues?
--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]