VCS provides a sample Perl script in $VCS_HOME/bin/sample_triggers for each event trigger. These scripts can be customized according to your requirements: you may write your own Perl scripts.
Note
You must move the triggers to $VCS_HOME/bin/triggers to use them.