FW: [cciug] Trigger unable to run

From: Girba, Nicoleta (NICOLETA_GIRBA@SRTelecom.com)
Date: Fri Jul 13 2001 - 09:02:05 EDT


> Hello,
>
> Thank you all for your suggestions! They helped a lot.
>
> The trigger was able to run successful after I've changed the following:
>
> * used UNC style path for the -exec option
> * used D:\ProgramFiles\Rational\ClearCase\bin\ccperl.exe in the -exec
> * change the verification (in perl script) to :
> if ($ENV{'CLEARCASE_RESERVED'} != 0) instead of
> if ($CLEARCASE_RESERVED = 1)
>
> Now it's easier to work with triggers when I understand their
> functionality :-)
>
> Regards,
> Nicoleta
>
>
> -----Original Message-----
> From: Cuddy, Rob [SMTP:rob.cuddy@wonderware.com
> Sent: Wednesday, July 11, 2001 5:53 PM
> To: 'Girba, Nicoleta'
> Subject: RE: [cciug] Trigger unable to run
>
> Nicoleta,
>
> You should use a UNC style path for the -exec option instead of a
> drive letter. Try making a shared area on your machine and then put your
> trigger in it and then use the share path to your trigger - something like
> \\machinename\sharename\path\to\trigger\triggerscipt
>
>
> Rob Cuddy
> Senior Configuration Management Administrator
> Wonderware Corporation, Irvine CA
>
> Evangelize, Establish, Equip and Encourage Life Long Laborers in the
> Harvest
>
>
> > -----Original Message-----
> > From: Girba, Nicoleta [mailto:NICOLETA_GIRBA@SRTelecom.com
> > Sent: Wednesday, July 11, 2001 1:48 PM
> > To: cciug (E-mail)
> > Subject: [cciug] Trigger unable to run
> >
> >
> >
> > Hello group,
> >
> > I know there is something that I'm missing in the creation of my
> > trigger...but I cannot identify the problem.
> > I've defined an element trigger type and then attach the trigger to a
> > directory element (these trials are part of "my triggers
> > learning curve" ).
> >
> > Please see below the creation of the trigger 'my_trigco' .
> >
> > Y:\SCM_Vob>cleartool mktrtype -element -preop checkin -nc -exec
> > 'Y:\SCM_Vob\trigs\metrics_resv.pl' my_trigco
> > Created trigger type "my_trigco".
> >
> > Y:\SCM_Vob>cleartool mktrigger my_trigco adlib
> > Added trigger "my_trigco" to inheritance list of "adlib".
> > Added trigger "my_trigco" to attached list of "adlib".
> >
> > The perl script is a very simple one (in metrics_resv.pl ):
> > if ($CLEARCASE_RESERVED = 1)
> > {
> > exit(0);
> > }
> > else
> > {
> > exit(1);
> > }
> >
> > I was performing the following actions in order to test the trigger:
> > * the "adlib" directory checkedout unreserved;
> > * added a new file into "adlib" directory;
> > * checkin "adlib" directory.
> >
> > The result is an error message:
> > Can't exec "Y:\SCM_Vob\trigs\metrics_resv.pl":|@
> > Trigger action "-exec 'Y:\SCM_Vob\trigs\metrics_resv.pl'"
> > unable to run:
> > Exec format error.
> >
> > Could you please help with a suggetion?
> >
> > Thank you,
> >
> > Nicoleta
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> > can also
> > unsubscribe
> >
> > http://clearcase.rational.com/cciug/mailing_list.html
> >
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 22:03:54 EDT