Triggers in Action- examples (cont)
post operation trigger to set permission on newly created directory elements:
- you can call a ClearCase command directly from the trigger instead of a script:
- cleartool mktrtype -element -all -postop mkelem -eltype directory -execunix ‘cleartool protect -chmod g+w $CLEARCASE_PN’ -execwin “cleartool protect -chmod g+w %CLEARCASE_PN%” CHMOD_NEW_DIRECTORIES