----- Original Message -----
From: Sven van 't Veer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 12:55 PM
Subject: Re: getRuntime() java.lang.IllegalThreadStateException: process hasnot exited
>
> > process = runtime.exec(cmd);
> > int i = process.exitValue();
> > out.println("Executes:<br>"+cmd);
> > }
> > catch(IllegalThreadStateException ex) {
> > ex.printStackTrace(out);
>
> >
> before you get process.exitValue(), add a line process.waitFor();
thanks Sven.
I have no more IllegalThreadStateException but the result file pippo3.txt have 0 byte.
String cmd = "cmd /c fc "+ htxPath + "pippo.txt " + htxPath + "pippo2.txt " + " > "
+ htxPath + "pippo3.txt";
Best regards
Paolo
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html