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:
To get the STDOUT information add "
> file_name.txt" to the end of the command string:
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 theY:\...path.
The OP Kai Wissel actually found the issue:
The problem was the
%3in "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
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论