basic.%pgetpid

C Function/BASIC Program, Releases: AP/Unix

Gets a Pick process PID.

Syntax

variable=%pgetpid(line)

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.

Example

* Get our own pid
pid=%pgetpid( system( 22 ) )

See Also

Command Name Type Description
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.%kill C Function Sends signal to process ID.
basic.cfunction Definition Declare a list of C functions.
tcl.pid Verb: Access Displays selected pid.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.