Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8714

using process builder in groovy

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Im trying to use the following lines of code found at https://github.com/tthyer/samples/blob/master/groovyProcesses/passEnvVar.groovy
      to run the following piece of code

      def currentPathToLoader="C:/loader/bin/loader.cmd"

      def pathToCsv="C://loader//bin//inputs//loader_test.csv"

      Runtime rt = Runtime.getRuntime()

      String[] commands =["cmd", "/c", "C://loader//bin//loader.cmd", "-Dbase.dir=%cd% -writedbonly -verbose -time -insert -TimeSeriesBackfill 1 inputs/loader_test.csv"]

      Process pr = rt.exec(commands)

      how ever Im unable to do so ? any help would be appreciated

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kthulsidoss Thulsi Doss Krishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: