[jira] [Updated] (GROOVY-8714) using process builder in groovy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (GROOVY-8714) using process builder in groovy

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GROOVY-8714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thulsi Doss Krishnan updated GROOVY-8714:
-----------------------------------------

closed

> 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
>            Priority: Minor
>
> 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)