Passing data from Java process to a python script
问题 I call a external Python script as Java process and want to send data to this. I create a process and try to send a string. Later the python script should wait for a new input from Java, work with this data and wait again(while true loop). Python Code (test.py): input = input("") print("Data: " + input) Java Code: Process p = Runtime.getRuntime().exec("py ./scripts/test.py"); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream())); BufferedReader stdInput = new