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 (firstname.lastname@example.org), 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 (email@example.com), March 28, 2001.