5 Replies Latest reply on Oct 21, 2013 8:57 AM by Bill Robinson

    modify the parameters of NSHScriptJob

      Hi

       

      this is my problem:

      from a given NSHScriptJob I wish to modify job parameters (Name, value).

      I found this part of code (see below), but I can't extract the parameters name. I can just display values and indices.

      please help.

      Thanks

       

      blcli_execute NSHScriptJob getDBKeyByGroupAndName jobPath nshscriptJob

      blcli_execute NSHScriptJob getNSHScriptParamValues

      blcli_execute Utility setTargetObject

      blcli_execute Utility storeTargetObject values

      blcli_execute Utility listLength

      blcli_storeenv listLength

       

      for item in {0..$((${listLength}-1))}

      do

          blcli_execute Utility setTargetObject values

          blcli_execute Utility listItemSelect ${item}

          blcli_execute Utility setTargetObject   

          blcli_execute NSHScriptParamValue getValue

          blcli_storeenv value   

          echo "Index ${item}: value: ${value}"

      done