I have a tcl script.
The problem is that I have to call a script that can write something in stderr (this is not a critical failure).
I would like to write stderr and stdout separately in tk / tcl.
if { [catch {exec "./script.sh" << $data } result] } {
puts "$::errorInfo"
}
This code will return my result, but also contains stderr.
I would also like to get the result for a variable.
Thanks in advance...
source
share