Hi,
I'm trining to develop a perl script that execute getlatest.
The following code does not work return me
$rc variables return me 256.
I tried to lanch the script by command line and work correctly.
How can I manage this?
Thanks
Carlo
$getLatestCommand = "d:/Interwoven/Teamsite/bin/iwupdate.exe -w -r $StagingArea $WorkareaName";
if ($debug) { WorkFlowTools::debug("$basename:do_work:commmand:$getLatestCommand");}
@output =`$getLatestCommand`;
$rc = $?;
if ($debug) { WorkFlowTools::debug("$basename:do_work:results:$rc\n");}
#Check for the success/failure of the deployment process.
foreach (
@output) {
$rc = 1 if (/ERROR/i);
$rc = 1 if (/Status: Failed/i);
if ($debug) { WorkFlowTools::debug("$basename:do_work:results:$_");}
}
if ($rc eq "0" ) {
$transition = 0;
$comment = "Deployment Successful";
}else {
$transition = 1;
$comment = "Deployment Failed";
}