Hi,
This is priyatham, I am facing issue while calling python script from
java code using process.
python script writing data into the four files(logging.txt, text1.txt, text2.txt, text3.txt) each one is 2mb.
It keeps writing logs into the loggin.txt. And python keeps data into the variables while processing the script and write into the corresponding files after completion of logging.
problem: it's stop writing data into the logging file after 60Kb though process is running.
everything is working fine, if the file size is small.
It's working fine if i run the same using command line.
Here is my java code.
Process p = Runtime.getRuntime().exec("python test.py arg1 arg2 arg3 arg4"); // i replaced the
string with "nohup python test.py arg1 arg2 arg3 arg4"
if(p.waitFor() == 0){
System.out.println("process completed.");
}
Thanks in advance for helping me to resolve this problem.