Commands, Trigger, Trigger arguments – HP NonStop G-Series User Manual
Page 80
Triggers
HP AutoSYNC User’s Guide—522580-016
6-2
Commands
The feature is invoked by specifying TRIGGER or TRIGGERONFILESET option in the
Commands
TRIGGER
Specify a complete TACL or OSS command line that includes built-in arguments that
are replaced by appropriate file names. The maximum length of the command-text is
128 bytes.
The command line can contain built-in arguments. Each argument starts with a pound
sign (#) and is terminated by a TACL delimiter character such as space, comma (,),
and so on. Arguments can be specified in either upper case or in lower case.
If command-text calls for a parameter that is specified between quotes, you need to
use double quotes (““) to specify the parameter. For example:
TRIGGER Arguments
•
#SYNCFILE is replaced with the destination file that has just been created or
replaced by AutoSYNC. For OSS files the absolute pathname is specified.
•
#SOURCEFILE is replaced with the name of the original source file. For OSS files
the absolute pathname is specified.
•
#RECOVERFILE is replaced with the name of the file that was renamed by
AutoSYNC for recovery.
AutoSYNC automatically creates recovery files in both the following situations:
•
for recovery purposes,
•
when the open file has been renamed because the user specified the
RENAMEOPEN option. (Guardian syncfilesets only)
SYNCHRONIZE … TRIGGER “command-text”;
or
SYNCHRONIZE … TRIGGERONFILESET “command-text”;
ADD SYNCFILESET … TRIGGER “command-text”;
or
ADD SYNCFILESET … TRIGGERONFILESET “command-text”;
SYNC myfile TO yourfile, OWNER myID
TRIGGER "FUP SECURE yourfile ,""NNNN"" ";