basic.%pgetpid C Function/BASIC Program

basic.%pgetpid

Command basic.%pgetpid C Function/BASIC Program
Applicable release versions: AP/Unix
Category BASIC Program (486)
Description returns the Unix Process Id (PID) associated to the Pick process "line".
If "line" is equal to -1, the PID of the current process is returned. If "line" is equal to -2, the PID of the flush process is returned. If the Pick process is not connected, 0 (zero) is returned.
Syntax variable=%pgetpid(line)
Options
Example
* Get our own pid
pid=%pgetpid( system( 22 ) )
Purpose
Related basic.cfunc
basic.%kill
basic.cfunction
tcl.pid
pid