Can I find the exit status of a process using the PIDgreenspun.com : LUSENET : Tool Command Language (Tcl) : One Thread
I am forking and running a separate tcl script in the background, so that I can kill it if it hangs. I need to know the exit status of the process, can I do this using the PID that it returns?
-- Tyler Gore (email@example.com), March 23, 2001
The status of the child process is encoded in $::errorCode. See
for a complete description of how to decode $::errorCode after an [exec].
-- Larry W. Virden (firstname.lastname@example.org), March 28, 2001.