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
 

Reply via email to