For some reason i need to start a python script from inside a java code. The
main part of the code is something like this
try{
Runtime rt = Runtime.getRunt ime();
System.out.prin tln("start");
Process proc = Runtime.getRunt ime().exec("pyt hon myscript.py");
proc.waitFor();
System.out.prin tln("end");
} catch (Exception e){
e.printStackTra ce();
}
and so worked for months....but since some days ago the same instruction
does not work but execute without any exception, that is print either
"start" and "end"; the strangest thing happen when I call just
Process proc = Runtime.getRunt ime().exec("pyt hon myscript.py");
the execution looks like stalled and does not comes to an end printing just
the "start".
Some suggestion?
My machine is a Linux Mandrake64 10.1
main part of the code is something like this
try{
Runtime rt = Runtime.getRunt ime();
System.out.prin tln("start");
Process proc = Runtime.getRunt ime().exec("pyt hon myscript.py");
proc.waitFor();
System.out.prin tln("end");
} catch (Exception e){
e.printStackTra ce();
}
and so worked for months....but since some days ago the same instruction
does not work but execute without any exception, that is print either
"start" and "end"; the strangest thing happen when I call just
Process proc = Runtime.getRunt ime().exec("pyt hon myscript.py");
the execution looks like stalled and does not comes to an end printing just
the "start".
Some suggestion?
My machine is a Linux Mandrake64 10.1
Comment