pid(n) Tcl Built-In Commands pid(n) NAME pid - Retrieve process id(s) SYNOPSIS pid ?fileId? DESCRIPTION If the fileId argument is given then it should normally refer to a process pipeline created with the open(2,3,n) command. In this case the pid command will return a list whose elements are the process identifiers of all the processes in(1,8) the pipeline, in(1,8) order. The list will be empty if(3,n) fileId refers to an open(2,3,n) file(1,n) that isn't a process pipeline. If no fileId argument is given then pid returns the process identifier of the current process. All process identifiers are returned as decimal strings. SEE ALSO exec(3,n,1 builtins)(n), open(2,3,n)(n) KEYWORDS file(1,n), pipeline, process identifier Tcl 7.0 pid(n)