1

clear case trigger implemented and working in server but while trying in client it's throwing below error - this trigger prevent from unreserved checkout

error checking out M:\view_main\xxx\abcd.java can't execute "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl //\trigger\trig_reservedonly.pl"; the system cannot fine the specified file Trigger action "-exec "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl //\trigger\trig_reservedonly.pl" unable to run : Exec format error unable to check out "M:\view_main\xxx\abcd.java"

Aki
  • 36
  • 1
  • 7
  • error checking out M:\view_main\xxx\abcd.java can't execute "C:\Program Iles\IBM\RatinalSDLC\Clearcase\bin\ccperl \\server\trigger\trig_reservedonly.pl"; the system cannot fine the specified file Trigger action "-exec "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl \\server\trigger\trig_reservedonly.pl" unable to run : Exec format error unable to check out "M:\view_main\xxx\abcd.java" – Aki Mar 26 '14 at 05:37

1 Answers1

0

A trigger script must be accessible by all clients.

It is best to declared it in an UNC path (a shared path \\server\folder\path\to\script).
That way, the script is accessible from any client able to access and read the content of that shared path.

See for instance an example at "Creating a ClearCase trigger to disallow checkins for certain Rose RealTime versions".
I also used that technique in "how to get a notification for every checkin in clearcase for a particular Vob".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • [-exec "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl ] this is server clearcase ccperl location [\\server\trigger\trig_reservedonly.pl] this is shared path client able to access ; why still i am getting error – Aki Mar 26 '14 at 09:05
  • @Aki because do you get the exact same error message? Can you copy it? – VonC Mar 26 '14 at 09:51
  • error checking out M:\view_main\xxx\abcd.java can't execute "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl \\server\trigger\trig_reservedonly.pl"; the system cannot fine the specified file Trigger action "-exec "C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin\ccperl \\server\trigger\trig_reservedonly.pl" unable to run : Exec format error unable to check out "M:\view_main\xxx\abcd.java" – Aki Mar 26 '14 at 10:56
  • @Aki try using `ccperl` instead of the full path (`C:\Program FIles\IBM\RatinalSDLC\Clearcase\bin` should be in the client `%PATH%`) – VonC Mar 26 '14 at 12:02