RE: [cciug] Triggers: Handling Spaces in Filenames

From: Riedel, Martina (Martina.Riedel@icn.siemens.com)
Date: Mon Jul 09 2001 - 15:56:39 EDT


We have a really "interesting" script that sets our triggers.
The lstype -trtype -long output on most of them reads:
-execunix the-cool-command "$CLEARCASE_PN"

I think
-execunix 'cleartool protect -chown cccapadm "$CLEARCASE_PN" ' \
Should work on the unix side.

Martina
   Don't Postpone Joy - Have Fun
Martina Riedel Siemens Enterprise Networks, Inc.
phone: 561-923-1774 Martina.Riedel@ICN.Siemens.com

 -----Original Message-----
From: Robinson, Christopher [mailto:chr@hnc.com
Sent: Monday, July 09, 2001 10:44 AM
To: cciug@rational.com
Subject: RE: [cciug] Triggers: Handling Spaces in Filenames

Thanks everyone for your help.

So here was the solution. The command that wasn't working was the
following:

ct mktrtype -element -all -nc -postop mkelem \
-execunix 'cleartool protect -chown cccapadm \"$CLEARCASE_PN\"' \
-execwin 'cleartool protect -chown cccapadm \"%CLEARCASE_PN%\"'
set_element_owner

A few of you advised to change the ' symbols to " symbols. So I did
this, and when I issued the command on the Unix side, it gave me an
error: Unmatched ". On the NT side, the command succeeded. When I
tested the trigger, everything worked fine. So until I figure out how
to properly specify the syntax on the Unix side, I'll just create the
trigger types on the NT side with " symbols.

Again, thanks for you help!

Chris Robinson
Sr. Configuration Engineer
HNC Software Inc.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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



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