On Thu, 10 Feb 2000, 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
You are already very close to the answer here. Simply place the trigger
into a location that is visible both from NT and from unix. I use the
structure that holds my release area, vob storage etc... since it has to
be visible everywhere anyway.
You could conceivably store the trigger script directly in a vob and
access it via a view extended pathname, but I actually recommend against
this - clearcase is already slow as it is, and you can get yourself into a
weird loop if, for some reason, you end up with a bad trigger that is
preventing you from, say checking out the trigger to fix it...
I recommend installing triggers on some flat file system - this doesn't
preclude you from keeping the source under version control, just don't
refer to it...
-- cg- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:11 EDT