I want to launch a process is the background and monitor it in a polling routine. The process is variable in length and may or may not be killed by the user. Is there a way to assign a variable to the stdout? Can I "see" the process ID? Here is what I was thinking. Is this possible?
exec $somescript &
while {!$done} {
#monitor the process of $somescript
#possibley with a vwait statement?
set done 1
}
#process output from $somescript
exec $somescript &
while {!$done} {
#monitor the process of $somescript
#possibley with a vwait statement?
set done 1
}
#process output from $somescript