6 triggers, Overview, Triggers – HP NonStop G-Series User Manual

Page 79: Section 6, triggers

Advertising
background image

HP AutoSYNC User’s Guide522580-016

6-1

6

Triggers

This section gives a basic overview of AutoSYNC triggers. Triggers allow a user to run
a TACL or OSS shell command for each synchronized file that was successfully moved
to the destination system (TRIGGER) or run a TACL or OSS shell command after a
complete file set has been successfully synchronized (TRIGGERONFILESET).

The topics covered are organized as follows:

Overview

Commands

TRIGGER

TRIGGERONFILESET

Examples

TRIGGER examples

TRIGGERONFILESET Example

Note on Triggers that invoke SQLCI

Overview

The TACL command specified as a trigger may invoke a TACL macro, obey a script, or
execute a program. An OSS shell command may invoke a script, or execute an OSS
program.

The tasks performed by a trigger can be as simple as altering file attributes or as
complex as language or SQL compilation.

If the trigger is executed for every file that is synchronized, AutoSYNC continues with
the synchronization of the next file after the command has completed.

If the trigger is for a file set (TRIGGERONFILESET),

the trigger is executed after the synchronization has completed,

if any files were replaced or purged,

even if a file error occurred during the synchronization

the trigger is not executed if,

an error other than a file error occurred and caused the synchronization to fail

no files were replaced or purged by the synchronization.

Note that lengthy trigger operations can delay synchronization of a file set by the
amount of time needed to complete the commands.

Advertising
This manual is related to the following products: