Simply don't use cleartool setview
.
As I describe in "How to exit from clearcase view and not from script?":
any commands that appear after the execution of cleartool setview XYZ are not processed because a shell is spawned with exec()
, which replaces the current program with a new program.
See more at "Python and ClearCase setview".
Instead, use the full path of the view /view/<view name>/vobs/yourVob
, in order to launch your script.
(But first, make sure you start the dynamic view: cleartool startview <view name>
)
If you still want to use setview
, try at least:
cleartool setview -exec "yourScript" -view <view name>
Otherwise, -view
would be interpreted as an option to -exec
command, which makes no sense.