beautypg.com

Getpid – Visara Master Console Center Scripting Guide User Manual

Page 123

background image

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: