No workaround necessary. I think the correct way to address the described
problem is 'ct setview -exec "<script, command, what-you-want>" <view-tag>'.
It's in the manual.
Cheers, Axel.
> -----Ursprüngliche Nachricht-----
> Von: owner-cciug@Rational.Com [mailto:owner-cciug@Rational.ComIm
> Auftrag von EXTERN Chapman Roy (WA-Consultants; K5/ESQ1)
> Gesendet am: Dienstag, 18. Januar 2000 08:06
> An: cciug@atria.com; 'Ben Hadden'
> Betreff: AW: [cciug] using cleartool setview in a Unix script, please
> help.
>
>
> The command "cleartool setview" will spawn a new shell. So in
> your case the
> script will execute until it reaches the setview and then appear to stop.
> When you exit the shell it will continue with the commands left in the
> script, probably with a few errors as you are no longer set into a shell.
>
> Possible workaround.
>
> Try executing "cleartool startview" then change directory to
> /view/viewname/vobs/vobname etc. This will open up a whole new series of
> problems with absolute pathnames, but these can be debugged.
>
> Roy Chapman
> External Consultant
>
> Robert Bosch GmbH * (00 49) 0711/811-31795 / GSM (00 49)
> 0173/4887139
> K5/ESQ * (00 49) 0711/811-31800
> Postfach 20 02 40 * mailto:roy.chapman@de.bosch.com
> D-70442 Stuttgart
>
>
> > ----------
> > Von: Ben Hadden[SMTP:bhadden@nortelnetworks.com
> > Gesendet: Montag, 17. Januar 2000 16:53
> > An: cciug@atria.com
> > Betreff: [cciug] using cleartool setview in a Unix script, please
> > help.
> >
> >
> > I don't seem to be able to use the cleartool setview command as part of
> > a simple csh Unix script.
> >
> > The script gets as far as the cleartool setview command, sets it and
> > then bombs out.
> >
> > Any suggestions would be very much appreciated.
> >
> > Cheers
> > Ben
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >
> >
> > http://clearcase.rational.com/cciug/mailing_list.html
> >
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:30 EDT