http://www.purl.org/tcl/home/man/tcl8.4/TclCmd/pid.htm : '''pid''' ?''channel''? Returns the process ID of the current process, or the process IDs of the programs running in the pipeline (created by [open]) that ''channel'' “names”. When you have used [open] to open a pipeline command - you can then get the process id to do a kill, etc. <> Tcl syntax | Arts and crafts of Tcl-Tk programming | Command | Channel | Interprocess Communication