Considering that the information isn't available until
fork() completes and that all information is then
available through the /proc(assuming SYSV) filesystem
under the pid dir listing, rolling a suitable procedure shouldn't be too difficult.
Tcl can give you the pid of all the processes it launched by [exec ... &].
From the exec page of the Tcl manual:
If the last arg is ``&'' then the pipeline will be executed in background. In this case the exec command will return a list whose elements are the process identifiers for all of the subprocesses in the pipeline. The standard output from the last command in the pipeline will go to the application's standard output if it hasn't been redirected, and error output from all of the commands in the pipeline will go to the application's standard error file unless redirected.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.