【问题标题】:Update ClearCase view config spec with command line with changed load rules使用更改了加载规则的命令行更新 ClearCase 视图配置规范
【发布时间】:2015-02-25 23:26:52
【问题描述】:

我有一个基本的 ClearCase 快照视图,它使用此命令根据配置规范文件在一夜之间自动更新

cleartool setcs -overwrite -ptime d:\CS.cs

问题是配置规范加载规则正在更改,如果我运行命令它会要求确认以更新加载规则

R:\>cleartool setcs -overwrite -ptime d:\CS.cs
cleartool: Warning: 1 objects were eliminated from the new config spec's load rules:
"\QA\QTP"
Continue, and unload these objects? [no] 

那么有没有办法告诉 ClearCase 使用命令行自动继续更新而不得到确认?

【问题讨论】:

    标签: command-line clearcase


    【解决方案1】:

    如“Batch Script to Automate a DOS Program with Options”中所述,您可以将正确答案写入文件,并将其重定向到您的命令。

     cleartool setcs -overwrite -ptime d:\CS.cs < yes.txt
    

    这样,如果命令停止获取输入,它将立即获得。

    您可以在“how to userinput without typing to a batch file”中找到类似的方法。

    【讨论】:

      【解决方案2】:

      你应该使用“-force”选项

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-08-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多