Saturday, 5 November 2016

How to set view using script?

Q 90. How to set view using script?
Try using below two ways:
Run cleartool setview prior to calling the script:

Example:

$ cat /tmp/script.sh
#!/bin/sh
/usr/atria/bin/cleartool pwv

$ cleartool setview new_view
[new_view]$ /tmp/script.sh
Working directory view: new_view
Set view: new_view




 Run the cleartool setview command and exec into the script:

Example:

$ cleartool setview -exec /tmp/script.sh new_view
Working directory view: new_view
Set view: new_view

No comments:

Post a Comment

Tricks and Tips