CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
ClearCase::CtCmd help

 



sudhirnd_926
New User

Feb 9, 2010, 1:25 PM

Post #1 of 3 (828 views)
ClearCase::CtCmd help Can't Post

Hi

On AIX, I wrote a perl script. A snippet of the same follows:

=======

$cmd .= "find . -name $file -branch 'brtype($intbranch)' -version 'version($intversion)' -print";
my $ccinst = ClearCase::CtCmd->new();

@aa = $ccinst->exec($cmd);
print "$aa[0]\n";
print "$aa[1]\n";


=======

It displays status as '0', but doesn't display the file version I'm expecting.

If I run the same on command prompt of "Cleartool", it displays the file version.

Please let me know why is this happening.

Thanks

Sudhir


rovf
Veteran

Feb 12, 2010, 5:20 AM

Post #2 of 3 (803 views)
Re: [sudhirnd_926] ClearCase::CtCmd help [In reply to] Can't Post

Did you check the content of $a[2] too, just for the safe side?

Otherwise, what I would do is to execute and parse the command with qx() manually (at least as interim solution), and file a bug report on ClearCase::CtCmd.


sudhirnd_926
New User

Feb 15, 2010, 3:19 PM

Post #3 of 3 (781 views)
Re: [rovf] ClearCase::CtCmd help [In reply to] Can't Post

Hi

Thanks for the useful hint. During checking for $aa[2], I found that the data is such that it's returning those $aa[] values and those are correct. My script was scanning a list of directories where for the files within first few directories the 'intbranch/intversion' criteria was not satisfied, but later it was satisfying and showing proper values for $aa[].

No issues with ClearCase::CtCmd.

Thanks a ton ....

- Sudhir

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives