Go up one levelGo to Previous Go to Next

Batch(n)

NAME

 
 Batch - Class to evaluate Tcl commands in a separate process.

NAMESPACE

 
 util

PARENT CLASS

 
 util::FrameWidget

SYNOPSIS

 
 Batch <path> ?options?

DESCRIPTION

 
 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. .


WIDGET OPTIONS

 
 -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.

PUBLIC METHODS

 
 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 .

PROTECTED METHODS

 
 read_pipe {rfd wfd}
        Read the pipe from the child process.

PROTECTED VARIABLES

 
 bg_pid_
        Process id of background process.

COMMON CLASS VARIABLES

 
 count_
        Count used for filename generation.

SEE ALSO

 
 FrameWidget(n)

 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory