[tcljava-user] exec question
Brought to you by:
mdejong
From: Tam H. <th...@su...> - 2001-06-23 23:46:12
|
How do i go about getting the return value from executing the exec command in jacl? I have try the following in the tclsh which work but doesn't work in my java program.. shell: catch {exec tclsh83 script.tcl} s puts $s java: Interp interp = new Interp(); String testing = "set res [exec tclsh83 D:/Tcl83/bin/scripts/script.tcl]"; interp.eval(testing); interp.eval("puts $res"); |