beautypg.com

Scriptgetactive – Visara Master Console Center Scripting Guide User Manual

Page 178

background image

Chapter 5 Script Commands

Scripting Guide

178

SCRIPTGETACTIVE

Syntax:

SCRIPTGETACTIVE($AssocArray) ==> %ErrCode

Description:

Retrieves information on all active scripts into an associative array.

Action:

Information on all active scripts are put into the $AssocArray, with each

script being a key in the array.

Parameters:

$AssocArray. Associative array. The array into which to put the script

information.

Returns:

A manifest constant indicating the status of the operation, as follows:

Manifest Error Constant Value Associated

Information

Err_None

0

No error, array has been

filled with appropriate
values.

-1

Error communicating with

the script manager
daemon. No values set.

Notes:

The SCRIPTGETACTIVE routine returns an array of values as shown
below:

variable sample

value description

$ScriptInfo[1]

4

Unique script number

$ScriptInfo[2]

9669

Host system process
identifier (i.e. PID)

$ScriptInfo[3] 1 Script

class

value - manifest constant

1 – Room

2 – CPU

3 – Chan (i.e. Channel)

4 – Unit

6 – OS

7 – SW (i.e.

Software/Application)

255 – All

$ScriptInfo[4]

236

Current script source line
number

$ScriptInfo[5]

0

Nonzero => in scan wait
Gives the number of

seconds defined in the