This code catch  Exception:

String htxPath = "d:\\orant\\test\\htmlpub\\htx\\";
String cmd = "cmd /c fc  "+ htxPath + "pippo.txt " + htxPath + "pippo2.txt " +  " > " 
+ htxPath + "pippo3.txt";

Runtime runtime = Runtime.getRuntime();
    Process process = null;
    try {
          process = runtime.exec(cmd);
         int i = process.exitValue();
        out.println("Executes:<br>"+cmd);
   }
      catch(IllegalThreadStateException  ex) {
        ex.printStackTrace(out);


JavaTM Platform 1.2 API Specification:
"...The Runtime.exec methods may not work well for special processes on certain native 
platforms, such as native windowing processes, daemon processes, Win16/DOS processes 
on Win32, or shell scripts. The created subprocess does not have its own terminal or 
console...."

Do you think "fc" command  (file compare) is the problem?
Do you have suggestions about compare ascii files and binay files with servlets?

Thanks in advance.

Bye


---------------------------------------------------------------
Paolo Gallo
SOFTWARE DEVELOPER
ITS S.p.a .Torre del Greco (NA) Italy
mobile: 0347-7775668
uff.:0818477213  -   0818477224
mailto: [EMAIL PROTECTED]
http://www.its.na.it/
---------------------------------------------------------------
" if you always know what are you doing, you are not learning
anything..."

___________________________________________________________________________
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

Reply via email to