<externaltask name="DataDeployTask" owner="__TAG__('iw_user');" description="Initiating deployment"> <areavpath v="__TAG__('iw_workarea');"/> <successors> <successorset description="Data Deployment"> <succ v="End"/> <!-- succ v="Mail" --> </successorset> </successors> <command v="__INSERT__($iwodcmd);"/> <activation> <pred v="Submit" /> </activation> </externaltask>
Where my $iwodcmd="D:\\Programs\\Interwoven\\TeamSite\\iw-perl\\bin\\iwperl \\Programs\\Interwoven\\TeamSite\\local\\config\\wft\\Herbalife\\Submit_and_Deploy.ipl";
<deployment transactional="no"> <execDeploymentTask useDefinition="DummyTask"/> <dnrDeploymentJob location="source" when="before" state="always"> <script cmd="D:\Programs\Interwoven\OpenDeployNG\bin\iwodcmd.exe start core/Product_dd where="D:\Programs\Interwoven\OpenDeployNG" async="no" /> </dnrDeploymentJob>
<externaltask name="DataDeployTask" owner="__TAG__('iw_user');" description="Initiating deployment"> <areavpath v="__TAG__('iw_workarea');"/> <successors> <successorset description="Data Deployment"> <succ v="End"/> <!-- succ v="Mail" --> </successorset> </successors> <command v="__INSERT__($iwodcmd);"/> <activation> <pred v="Submit" /> </activation> </externaltask> -------------------------------------------------- Where my $iwodcmd="D:\\Programs\\Interwoven\\TeamSite\\iw-perl\\bin\\iwperl \\Programs\\Interwoven\\TeamSite\\local\\config\\wft\\Herbalife\\Submit_and_Deploy.ipl"; -----------------------------------------The perl snippet:$cmd=$opendeploy_cmd."$category\\Product.xml ";Where: my $opendeploy_cmd="D:\\Programs\\Interwoven\\OpenDeployNG\\bin\\iwodcmd start content\\";and $category is getting dynamically.-------------------------------------------------------------------The Product.xml: <deployment transactional="no"> <execDeploymentTask useDefinition="DummyTask"/> <dnrDeploymentJob location="source" when="before" state="always"> <script cmd="D:\Programs\Interwoven\OpenDeployNG\bin\iwodcmd.exe start core/Product_dd where="D:\Programs\Interwoven\OpenDeployNG" async="no" /> </dnrDeploymentJob>
I came to conclusion that though the second deployment descriptor Product_dd.xml fails the first deployment Product_dd.xml works successfully and wont return the any failure error code.As in perl script I am calling Product.xml the return code I am getting is obviously of "iwocmd Product.xml" not of Product_dd.xml. where Product_dd,xml called in dnr of Product.xmlI want to catch the return code of second deployment i.e. Product_dd.xml, Any pointers towards this?Thanks-Parag
Try to use below perl code and check if it works for you..[html]my $cmd=$opendeploy_cmd."$category\\Product.xml ";my $resultfile = "D:\....\results."my $results = `$deploy_cmd > $resultsfile`;open (RESULTS, "<$resultsfile");while () {}close RESULTS;[/html]
...my $cmd = qq($odhome/bin/iwodcmd start $cfg $k_params $inst_param);my $results = qx($cmd 2>&1);my $status = $? >> 8;if ($status) { # error occurred}else { # success}...