Can I find the exit status of a process using the PID : 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 (, 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 (, March 28, 2001.

Moderation questions? read the FAQ