Re: [cciug] Running one trigger script for Both NT & Unix

From: A Better Solution, Inc. (cciug@abs-consulting.com)
Date: Thu Feb 10 2000 - 22:16:54 EST


Reza,

There are a couple of ways..
1) you could place your trigger code in a VOB then define your triggers to
use the view extended pathname for the exec definitions. This is best done
by creating a well known view that developers can read through but not
change (i.e. company_policy view). such that the solution does not rely on
the NFS solution (cept for ClearCase that is)...
  i.e. ct mktrtype ...
         -execunix
/view/company_policy_view/vobs/company_policy_vob/trigger.pl
         -execwin
m:\company_policy_view\company_policy_vob\trigger.pl TRIGGER_NAME

The key here is to go through the well-known view for policy code so their
view's config spec. do not determin which policy then see.

The other solution is to do similar but use unc naming conventions for the
path (assuming that you have one location that is avaiable from "both"
sides and assuming some NFS solution..

  i.e. ct mktrtype ...
         -execunix /net/some_machine/company_policy_dir/trigger.pl
         -execwin \\unix_box\company_policy_dir\trigger.pl TRIGGER_NAME

Actually there are some other solutions as well.

Hope this helps..
  -Charles

At 02:08 PM 2/10/00 -0800, Reza Javan-Bakht wrote:

>Hi,
>
>ClearCase 3.2.1 Unix View & Vob server.
>
>I have a trigger which fires off at checkin time.
>Is there any way to have one script running on Unix for
>this trigger and be executed at checkin time in both NT & Unix.
>
>At the moment, If I want to have a trigger, I have to write
>one for Unix and one for NT. I mostly familiar with Unix and
>would like to avoid duplicate script writing.
>It would be great, if there is a way to checkin a file in NT
>and fire off the trigger on Unix.
>
>My trigger will send email around and if the text file
>is checked in from Unix, then it will change the file from
>Dos format to Unix format.
>
>My "mktrtype" command is:
>cleartool mktrtype -element -all -replace -preop checkin \
>-execwin '\\GX400-8YZMQ\perl\bin\perl.exe
>\\GX400-8YZMQ\perl\trigger\checkin_nt_trigger.pl' \
>-execunix '/usr/local/bin/perl /vobs/adm/triggers/checkin_trigger.pl' -nc \
>checkin_trigger
>
>
>I appreciated your help.
>Regards
>Reza
>
>----------------------------------------------------------
>Reza Javan-bakht http://www.worldres.com
>Q/A Engineer 1510 Fashion Island drive, Suit 100
>Phone: (650) 356-3124 San Mateo, Ca
>Fax: (650) 372-1701 94404 USA
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:11 EDT