Difference between revisions of "GETPID()"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to get process identity | Function to get process identity | ||
− | |||
==Syntax== | ==Syntax== | ||
GETPID() | GETPID() | ||
− | |||
==See Also== | ==See Also== | ||
[[ACCESS()]], [[GETENV()]], [[GETGID()]], [[GETUID()]], [[PUTENV()]], [[TMPNAM()]] | [[ACCESS()]], [[GETENV()]], [[GETGID()]], [[GETUID()]], [[PUTENV()]], [[TMPNAM()]] | ||
− | |||
==Description== | ==Description== | ||
The GETPID() function returns a unique system wide number which represents the identity of the user process. This function will return the same value while you remain logged in. This can be used, among other purposes, to create system-wide temporary files. Note that each time you log into the system, you will have a different process identity. | The GETPID() function returns a unique system wide number which represents the identity of the user process. This function will return the same value while you remain logged in. This can be used, among other purposes, to create system-wide temporary files. Note that each time you log into the system, you will have a different process identity. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
N | N | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Latest revision as of 12:42, 11 December 2012
Purpose
Function to get process identity
Syntax
GETPID()
See Also
ACCESS(), GETENV(), GETGID(), GETUID(), PUTENV(), TMPNAM()
Description
The GETPID() function returns a unique system wide number which represents the identity of the user process. This function will return the same value while you remain logged in. This can be used, among other purposes, to create system-wide temporary files. Note that each time you log into the system, you will have a different process identity.
Example
? getpid() 14586 pid = getpid() ? type("pid") N
Products
Lianja Server, Lianja