I have a DeployNRun[html] <script cmd="/usr/processsor/post_process_data.sh" as="cmsmaster"/>[/html]I need to pass the location of the manifest file to the .sh fileDNR properties is already set to infoStreamFormat="manifest", so thats all setbut how can I tell the shell script where that file is (I mean how do I know where the file is).. the OD command uses the -inst %TASKID% so the .mf file will not be the same name each time.this is on OD 6.1.1 and Solaris (both base and receiver)...DNR is working correctly, but I need the MF file location to finish it up.any help would be appreciated..
iwodcmd start **** -inst 1234
iwodcmd start -k inst=1234 -inst 1234
<deployNRun> <dnrDeployment location="target" when="after" state="success"> <script cmd="/usr/processsor/post_process_data.sh $inst^" as="cmsmaster"/> </dnrDeployment></deployNRun>
Try passing the value you use for -inst with -k also and then pass it to the script - the script can then look for the file in ODHOME/log/i.e.: if you currently use:iwodcmd start **** -inst 1234change it to iwodcmd start -k inst=1234 -inst 1234The modify your config like:<deployNRun> <dnrDeployment location="target" when="after" state="success"> <script cmd="/usr/processsor/post_process_data.sh $inst^" as="cmsmaster"/> </dnrDeployment></deployNRun>Hopefully you can take it from there with regard to your script.
Ahh.. OK, so pass in the taskID as a param as well.. is there a command to get the log location on the target? I mean, I know what it is, but would prefer to make it more generic.. I guess I can docat /etc/defaultiwod60homeand then work from there.. just wish there was a cleaner way to just pass in the name of the mf file..