I am trying to read the latest 25 editions using the iwattrib clt. I assigned an edition('INITIAL') to an variable and read the previous edition of it. But the code is fetching only the first previous edition of the specified edition and then it gives error saying, "Please specify an edition". Could someone help me out?
CODE:
use TeamSite::Config;
my $iwhome = TeamSite::Config::iwgethome();
my $output = 'INITIAL';
my $branch = "/default/main/inst/EDITION/";
my
@editions;
for(my $i=1; $i<=25; $i++){
my $branchPath = $branch. $output;
my $lastEdition = $iwhome. "\\bin\\iwattrib -n $branchPath prevedition";
$output = `$lastEdition 2>&1`;
push(
@editions, $output);
}
print
@editions;
This gives output as
INITIAL.migrate
ERROR:00920

lease specify an edition in: /default/main/inst/EDITION/
ERROR:00920

lease specify an edition in: /default/main/inst/EDITION/
With Ref to post:
http://devnet.interwoven.com/forums_vb/showthread.php?t=32410&forumid=50Thanks.