Ciao Andrea,

Il problema seganalato da te' e' perche' stai cerando di attivare una sessione Oracle
su un sistema che il web non conosce i path di esecuzione.
Dovresti eseguire una procedura in cui ci sono tutti i path relativi alla tua 
richiesta.

Ciao.


-------------------------------------------------------------------------------------------------------------------------
--------------

From: Andrea <[EMAIL PROTECTED]>
Subject: calling an external program whitin a servlet
Date: Thu, 4 Apr 2002 14:05:05 +0200
To: [EMAIL PROTECTED]


Hi all



I'm new to servlet and this is my problem:



i must call an external program from a servlet so I use thise code:

-------------------------------------------------------------------------------------------

private int Instradamento() {
   Process p ;
   String parametri;



   try {


         parametri=pathInstr+" "+par.Username +"/"+par.Password+"@"+par.Host+" 
"+progetto+" "+codtask+" 1 "+" S
"+tipocirc+" "+servizio+" "+cliente+" "+sedeo+"
"+seded+" "+ncirc;


         p= Runtime.getRuntime().exec(parametri);
         p.waitFor();
         p.destroy();
         context.log("return code: " + p.exitValue());



         return p.exitValue();






      }



 catch (Exception e) {
          context.log(e.toString());
            return 1000;
       }


}

-------------------------------------------------------------------------------------------



I try it on Windows NT and all is good but when I try on Unix I get an exit value of 9 
and the process don't start also
if

the permission on the file is good (chmod 777)



someone can help me?



Thanks



Andrea



--- End of Original Message

-------------------------------------------------------------------------------------------------------------------------
--------------



--------------------------------------------------------
Name      : Pollio
E-mail    : [EMAIL PROTECTED]
Date      : 04/04/02
Time      : 15:03:31
--------------------------------------------------------

___________________________________________________________________________
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