groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thulsi Doss Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8714) using process builder in groovy
Date Wed, 25 Jul 2018 10:27:00 GMT
Thulsi Doss Krishnan created GROOVY-8714:
--------------------------------------------

             Summary: using process builder in groovy
                 Key: GROOVY-8714
                 URL: https://issues.apache.org/jira/browse/GROOVY-8714
             Project: Groovy
          Issue Type: Question
          Components: groovy-jdk
    Affects Versions: 2.5.1
            Reporter: Thulsi Doss Krishnan


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




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message