I am trying to execute a perl script that gets intitated after a successful deployment using deploy and run. this perl script is really simple. It accepts a parameter, opens a log file and writes the value of that parameter to that log file. I have used parameter substitution in my config file. Open deploy is able to deploy out the the file listed in the filelist successfully. If I look at my logs it seems like the parameter substitution also worked as I do see the value of the parameter in the log file. However it does not seem like the perl script is getting executed as it does not write out the log file with the parameter value.
We are running Open Deploy 5.5.1 on Windows 2000.
listed below is the content of my open deploy config file.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<deploymentConfiguration >
<localNode host="AWCTMP01" />
<replicationFarmSet >
<replicationFarm name="Development" >
<nodeRef useNode="AWCTMP01" >
</nodeRef>
</replicationFarm>
</replicationFarmSet>
<definition name="Document" >
<source >
<sourceFilesystem area="$srcarea^" filelist="$filelistpath^" >
<pathSpecification >
<path name="." >
</path>
</pathSpecification>
</sourceFilesystem>
</source>
<target useReplicationFarm="Development" >
<targetFilesystem area="F:\Apps\iw-home\OpenDeployNG\OpenDeploy\tmp" >
</targetFilesystem>
<comparisonRules dateDifferent="yes" revert="no" ignoreAcls="yes" ignoreModes="no" ignoreUser="no" ignoreGroup="no" >
</comparisonRules>
<transferRules doDeletes="no" dontDo="no" preserveAcls="no" followLinks="no" svrTryCount="3" svrTryInterval="10" svrTryDisableOverwrite="no" rmReadOnly="no" >
</transferRules>
</target>
</definition>
<deployment transactional="no" >
<execDeploymentTask useDefinition="Document" downRev="" >
<deployNRun >
<dnrDeployment location="target" when="after" state="success" >
<script cmd="F:\Apps\iw-home\iw-perl\iwperl.exe f:\apps\iw-home\local\bin\documents\test.ipl $documentname^" as="SYSTEM" where="F:\Apps\iw-home\local\bin\Documents" async="no" >
</script>
</dnrDeployment>
</deployNRun>
</execDeploymentTask>
</deployment>
</deploymentConfiguration>
listed below are the contents of my perl script file:
my $logfile = "C:/temp/testdnr.log";
open (LOG, ">$logfile");
my($filename)=(
@ARGV[0]);
print LOG $filename;
close LOG;
listed below is the command that I used:
iwodstart servertodevdnr -k srcarea="Y:/default/main/IIG/WORKAREA/Integration/Content" -k filelistpath="F:\Apps\iw-home\OpenDeployNG\OpenDeploy\conf\filelist\DOCDNRtest.txt" -k documentname="CostOfLTC2002.pdf"
Edited by Smeeta on 05/12/03 11:07 AM (server time).