![dengland's picture dengland's picture](https://www.cmcrossroads.com/sites/default/themes/techwell/images/user_icon_default.jpg)
to find mounted vobs I just use a cleartool lsvob and grep the output for "*" which indicates the VOB is mounted on that system.
The code I worked out by now is the following:
use strict;
use Win32::OLE;
print "Instantiating CAL";
my $CCApp = Win32::OLE->new("ClearCase.Application") or
die "Can't create ClearCase application object via call to Win32::OLE->new(): $!";
print "Getting VOBs";
my @CCVob = $CCApp->VOBs();
my $CCVobLength = @CCVob;
print "CCVobLength = $CCVobLength";
With this script I can see that there is one VOB within the CCApp. But I can't figure out how to continue and query the VOB for its name, type or anything useful.
I guess I should add that I'm pretty new to Perl and used to develop software using C, C++ and Java...
There I would cast the element to the appropriate type and then use some interface function to continue...
Thanks in advance for any answer and regards
to find mounted vobs I just use a cleartool lsvob and grep the output for "*" which indicates the VOB is mounted on that system.
Well, that would give me the mounted VOBs.
What I really would like to do is iterate through the files and folders wihtin a view in the VOB without having a path to the files...
But I guess there is no way to query a view for its contents - at least I was unable to figure it out by now - or is there?
Are you just trying to get a list of files that are seen in the view? Are you using Base or UCM?
What are you trying to accomplish?
For a simple file verifiecatioin (for release engineering) I have pulled a recursive ls for a UCM view set to a baseline and then grep'd the list for the file information.