
Chapter 5 Script Commands
Scripting Guide 123
GETPID
Syntax:
GETPID() ==> %ProcessId
Description:
Obtains the system process identifier for this script.
Action:
Returns the host system process identifier for the process that is
executing this script. This is useful for watching the action of a
script using outside performance tools such as top.
Parameters:
none
Returns:
Numeric value, process identifier number
Example:
%pid := GETPID()
LOG( LOG_FLT, "This script is running as process
" + STR($pid), 2)
See Also:
Commenti su questo manuale