VCS provides a sample Perl script for each event trigger at the following location:
$VCS_HOME/bin/sample_triggers/VRTSvcs
Customize the scripts according to your requirements: you may choose to write your own Perl scripts.
To use an event trigger
$VCS_HOME/bin/triggers