Owner's manual

Triggers
HP AutoSYNC User’s Guide522580-015
6-4
Trigger Examples
3. Accelerate the synchronized object files in subvolume $data.tstobj:
4. Compare the old destination file with the new destination file: discrepancies will be
reported to the log file:
5. Conditionally SQL compile objects depending on the file code of the object file.
Only objects that can run on the destination are SQLCOMP’ed. The SYNC trigger
invokes a TACL macro TRIGCOND as follows:
SYNC $data.object.* TO \tst.$data.tstobj.*, TRIGGER
“AXCEL #SYNCFILE, #SYNCFILE”;
SYNC /home/dev/sales/appl TO /E/paris/home/sales/appl/, LISTALL, LOGFILE
triglog, CLEAR, TRIGGER "/home/sales/scripts/cpsyrcv #SYNCFILE
#RECOVERFILE ";
cpsyrcv:
cp $1 /home/sales/bckupnew/;
cp $2 /home/sales/bckupold/;
SYNC $data.test.sqobj TO \paris.$datab.testb.sqobj,
TRIGGER "RUN TRIGCOND #SYNCFILE";