script doesn't run while executing in clearcase

后端 未结 1 354
既然无缘
既然无缘 2021-01-15 13:47

I am trying to execute the following build script and it is returning no error but it is not executing the script inside it. there is a view tag with the following name. it

相关标签:
1条回答
  • 2021-01-15 14:38

    First, don't use setview. It triggers a sub-shell, which doesn't play well with scripts.
    See "Python and ClearCase setview" for a concrete example on how spawning a process has side effects when it comes to scripts.

    Use cleartool startview <view-tag> to make sure your dynamic view is started, and then use the full view path:

    /view/<view-tag>/vobs/YourVobs/....
    

    In your case:

    newgrp orange; 
    cd /view/<view-tag>/vobs/abc/cds/fg/bin
    sh /view/<view-tag>/vobs/abc/cds/fg/bin/ant -t all -i ' '
    
    0 讨论(0)
提交回复
热议问题