Process -- Simplified asynchronous pipeline handling


package require Process

Process name | %AUTO% -command cmd ?options...?

name configure optname value ?...?

name cget ?option?

name getPids


This class makes the creation and monitoring of an asynchronous command pipeline simple in the case when you want the output and, potentially the stderr of the pipeline to go to the scripts stdout.



Provides the pipeline command. Note that this must be provided at construction time and may not be modified once supplied.

See the documentation of the tcl exec command for some of the special strings this command string may have.


provides a script that is called when an end file condition is detected on the pipeline's stdout. This often means the pipeline has exited however, it is possible that the pipeline simply closed stdout.


The getPIDS method retrieves a list of the process ids that make up the pipeline.