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