y:...\\%3.log" />
开发者

ClearCase find Command: Redirection to file doesn't work

Hallo.

I you use the following ClearCase Find Command in a Batch-File.

cleartool find . -version "version(\main\LATEST) && !lbtype(%3)" -print > y:...\%3.log

You see how the hits apper in the command window. It also cre开发者_开发问答ates the log-File, but it doesn't write the hits into it.

Thanks Kai


The redirect section of cleartool find examples does mention the kind of redirect you are using:

  1. To get the STDOUT information add " > file_name.txt" to the end of the command string:

  2. To get both STDOUT and STDERR information add " > file_name.txt 2>&1" to the end of the command string.

If you are sure your find command actually find and print some version, can you try and:

  • capture both stdout and stderr (just to be sure)
  • redirect to a simpler path (c:\...) to check if there is no side effect associated with the Y:\... path.

The OP Kai Wissel actually found the issue:

The problem was the %3 in "version(\main\LATEST) && !lbtype(%3)"
That's my solution:

SET VERARG="version(\main\LATEST) && !lbtype(%3)" 
cleartool find . -version %VERARG% -print > C:\Test_Logs\%3.log
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜