Version 4 of pid

Updated 2012-11-30 20:09:37 by pooryorick

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

This command can be very useful when you have used open to open a pipeline command - you can then get the process id to do a kill, etc.