I have a script which needs to use cleartool lsactivity -fmt command:
$ctoolcmd = "cleartool lsactivity -fmt \"%[headline]p\" $newactivity";
$newheadline = `$ctoolcmd`;
Unfortunately, I am using CCRC and hence it does not support '-fmt' for 'lsactivity' command. Is there any other way I can achieve the same result with rcleartool command?
You might then need to use
cleartool describeinstead oflsactivity.Note:
rcleartooldoes not support UCM object selectors, as I mentioned in 2012.-fmtmight not be supported withdescribeas well, but you could grep its output in order to extract the headline.Test if a
rcleartool describe activityName@\aPVobyields enough in its output, or if theactivity:UCM selector is required (in which case, again,rcleartoolwould not support it)That should work: the documentation mentions:
An
lsact -long(which you can achieve withrcleartool describe anActivity@\aPvob) should include the headline, but again, you will have to parse and extract it from the output of this command.