xxyk has asked for the wisdom of the Perl Monks concerning the following question:

How to use lshistory command of cleartool in perl? I wanna use it to get the creators of files. I found online that I can use code like "Clearcase::cleartool (lshistory ...)". But I don't know how exactly I should use that.
  • Comment on How to use lshistory of cleartool in perl?

Replies are listed 'Best First'.
Re: How to use lshistory of cleartool in perl?
by Khen1950fx (Canon) on Jul 02, 2008 at 23:26 UTC
    I don't have the ClearCase software, so this a is a shot in the dark...

    #!/usr/bin/perl use strict; use warnings; use ClearCase::Proc::ClearTool; my $cleartool = new ClearCase::Proc::ClearTool; my($stat, $err) = $cleartool->start; $stat and die $err; $cleartool->run('lshistory -local'); print $cleartool->dump;

    Perhaps this might help get you started?

Re: How to use lshistory of cleartool in perl?
by Anonymous Monk on Jul 03, 2008 at 13:59 UTC