我想在cleartool.exe控制台中执行多个命令,但;或&&不起作用。
示例:
cd /myView; ct mkact myActivity运行这个有什么建议吗?
我需要使用cleartool.exe
发布于 2016-11-22 22:46:57
如果您运行的是windows,则可以在命令中包含cleartool命令,如下所示:
cd /d m:\tempview\testvob1 & cleartool desc .
请注意/d选项。否则,驱动器不会更改,您将看不到该目录。您也可以使用pushd/popd来更改目录。
多个cleartool命令可以以相同的方式链接在一起。
在unix上,分号的作用类似于&符号。
如果你想把一堆cleartool命令放在一起,你可以这样做:
m:\tempview\mkvobtest-try2>copy con cleartool_stuff.txt find -all -type l -print desc . desc .@@ quit ^Z 1 file(s) copied.
m:\tempview\mkvobtest-try2>cleartool < cleartool_stuff.txt M:\tempview\mkvobtest-try2\desktop M:\tempview\mkvobtest-try2\maketest2\make2.mk directory version ".@@\main\23" created 2014-04-11T12:10:40-04:00 by A User (auser.user@PC1) "Added directory element "Test"." Element Protection: User : NT:S-1-5-21-984945237-1216120022-2217536578-1001 : rwx Group: BUILTIN\Users : rwx Other: : rwx element type: directory predecessor version: \main\22 directory element ".@@" created 2010-03-10T12:25:01-05:00 by A User (auser.user@PC2) "Predefined directory element for root of versioned object base." element type: directory master replica: mrpeabody-rep@\mkvobtest-try2 Protection: User : NT:S-1-5-21-984945237-1216120022-2217536578-1001 : rwx Group: BUILTIN\Users : rwx Other: : rwx source pool: sdft cleartext pool: cdft derived pool: ddft
m:\tempview\mkvobtest-try2>
同样的技术也适用于unix,但是shell通常会为您提供额外的选项来执行此操作。
发布于 2016-11-23 01:17:41
在简单的CMD会话中,您可以使用以下命令链接命令:
cmd /v /c "cd C:\path\to\myview&& cleartool mkact anActivity"这比在cleartool.exe会话中尝试这样做要方便得多。
https://stackoverflow.com/questions/40742528
复制相似问题