I used describe, if it return data, then the attribute existed.
cleartool describe -ver "{attype(ATTRIBUTE)}" -fmt "%Xn\n" $ENV{CLEARCASE_PN}
"Bittner, Herbert G" <Herbert.Bittner@marconi-is.com> on 01/07/2000 08:39:54 AM
To: jsdrape5@collins.rockwell.com
cc: CCIUG <cciug@Rational.Com> (bcc: Scott Allen/Lante)
Subject: RE: [cciug] ** Q regarding obtaining attribute values in trigger
script
John,
Try doing a ct find command on the version of the element you're checking
out ($CLEACASE_PN). The find command can search for attributes...
> -----Original Message-----
> From: jsdrape5@collins.rockwell.com [SMTP:jsdrape5@collins.rockwell.com
> Sent: Thursday, January 06, 2000 6:35 PM
> To: cciug@Rational.Com
> Subject: [cciug] ** Q regarding obtaining attribute values in trigger
> script
>
>
>
>
> Hi,
>
> I'm writting a ClearCase trigger in perl. The trigger fires upon file
> checkout
> and needs to know the value of an attribute in the enclosing subsytem to
> complete it's operation. Is there an enviroment variable that can be
> accessed to
> obtain attribute values? In looking thru whatever information I could
> find, I
> did find mention of the trigger env variables:
>
> CLEARCASE_VAL
> CLEARCASE_ATTYPE
>
> but as I understand, these do not work for all operations (such as
> checkout).
>
> If there is no env variable to obtain this info, what clearcase command
> will
> give info on attribute values?
>
> Any Ideas or Suggestions?
>
> John
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:20 EDT