|
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
|
- Re: calling an external program whitin a servlet Andrea
- Re: calling an external program whitin a serv... [Mariano Pollio]
- Re: calling an external program whitin a serv... Baker, Robert E
- Re: calling an external program whitin a serv... Galbreath, Mark
- Re: calling an external program whitin a serv... Christopher K. St. John
- Re: calling an external program whitin a ... Andrea
- lang translation - Re: calling an externa... Robert Koberg
- Re: calling an external program whitin a serv... Varley, Roger
