This class is used to evaluate a set of Tcl commands in a separate process, so that it can be interrupted. No exec is done, so the process is just a copy of the current one and has a copy of the memory and open files. .
-command Command to evaluate when process is done. Called with 2 args: status and result (or error message). -debug Flag: if true run commands in the foreground for better debugging. -tmpfile Temp file for results.
bg_eval {cmd} Evaluate the given tcl commands in the background, so that they can be interrupted. The option $command is evaluated when the results when done. fg_eval {cmd} Evaluate the given command in the foreground (useful for debugging) The option $command is evaluated when the results when done. interrupt {} Interrupt the current search .
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory