beautypg.com

Startup.scr, Shutdn.scr, Startup.scr #shutdn.scr – Visara Master Console Center Scripting Guide User Manual

Page 17

background image

Chapter 1 Script Overview

Scripting Guide

17

ƒ

Parm 3. The name of the backup log. (A string.)

The default #LOGSWAP.SCR script shipped with the MCC does nothing
more with the swapped log files. However, the script can be customized to
respond to the log swap event with any number of actions, such as
moving, renaming, or deleting the logs, or even issuing an Alert.

#startup.scr

The #startup.scr script is executed when the MCC software starts up for
the first time after being shutdown. It is not run every time a user logs
in. Actions to initiate automatically when the system first comes up (for
example, fire off scripts, or log an alert) may be placed in this script.
Any Unix shell script started from this script must be stopped by the
#SHUTDN.SCR script. If a shell script is stopped any other way, another
copy of the shell script is started on restart of the MCC. Multiple copies
of the same shell script will cause unexpected results.

#shutdn.scr

The #shutdn.scr script is run when the MCC software is fully shutdown,
not when a single user logs out. Actions to perform at shutdown can be
placed in this script. However, try to keep the number of actions to a
minimum so as not to interfere with the MCC’s normal shutdown
procedure.