How to read the data from standard output in jatcl by running tcl script in java
问题 I have two questions basically. I am using JACL interpreter to run TCL script in JAVA. My questions are: How to get the data from standard output after running tcl file? How to pass arguments for tcl script when executing using jatcl? E.G: sample.tcl: `puts "Hi this is from tcl" ` When ran using java as follows: `Interp i = new Interp(); i.eval("source sample.tcl");` then the output will be written to stdout console of JAVA. I want to read that output to some variable like x[] = i.eval(