Re: [cciug] Scripting problem

From: David Bainbridge (david.bainbridge@uab.ericsson.se)
Date: Mon Jan 31 2000 - 10:48:55 EST


Thatnks, Herbert,

Unfortunately that does not solve the problem :-(

As I said, the echo command is called correctly but the contents of the
CLEARCASE_XPN variable is not passed to the exec command.

Cheers

dave

"Bittner, Herbert G" wrote:

> Try putting the -exec command in double quotes, ie:
>
> ct find ${VOB} -branch brtype(${BRANCH_TYPE}) -exec "echo $CLEARCASE_XPN"
>
> The command line, and script line, should be the same.
>
> HTH...
>
> > -----Original Message-----
> > From: David Bainbridge [SMTP:david.bainbridge@uab.ericsson.se
> > Sent: Monday, January 31, 2000 10:02 AM
> > To: cciug@Rational.Com
> > Subject: [cciug] Scripting problem
> >
> >
> > I am trying to do an exec following a find in a Bourne script (CC 3.2.1
> > on Solaris).
> >
> > Example:
> >
> > ct find ${VOB} -branch brtype(${BRANCH_TYPE}) -exec echo
> > ${CLEARCASE_XPN}
> >
> > Both the VOB and branch type are appearing in the command but
> > CLEARCASE_XPN is not, so I get a new line at the echo instead of the
> > extended pathname. (I don't want to use the echo command - I actually
> > need to use rmelem but this is for debug purposes only).
> >
> > Any ideas anyone ...? Again the examples in the manual all relate to the
> > command line - and that works fine.
> >
> > Dave
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >
> >
> > http://clearcase.rational.com/cciug/mailing_list.html

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



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:42 EDT