RE: [cciug] using cleartool setview in a Unix script, please help

From: Flanigan, John P. (jflanigan@jhancock.com)
Date: Mon Jan 24 2000 - 11:00:05 EST


Wouldn't the definitive solution to this problem be to use the -exec option
of setview? i.e.
        ct setview -exec myscript myview
The script myscript will be executed in the new shell.

---
Sorry, I didn't see this the first time around.  I pulled it in from the
archives so this message may have a strange format.
_______________________________________
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 

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



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