Forum Discussion
zsousa
Contributor
Thanks I will try it
zsousa
9 years agoContributor
that was for windows how about MAC?
- nmrao9 years agoChampion Level 3
Try changing first line to:
def command = ["/bin/sh", "csvtojson", "/tmp/mydata.csv"]if your shell is bash - use "/bin/bash"
- zsousa9 years agoContributor
ok, I have the below code now but what is the equivalent of Runtime on unix ?
String command = ["/bin/bash", "/Users/zsousa/APIDevelopment/apitests/node-csvtojson-master/temp/runGroovy1.groovy"]
Process child = Runtime.getRuntime().execute(command)
//InputStream in1 = child.getInputStream()
//def json = in1.text
//in1.close()
//child.waitFor()
//log.info json- nmrao9 years agoChampion Level 3Sorry, you did not tell what happened. Will you?
In order to run a groovy script, what is it to do with Runtime on Unix?
Related Content
- 5 months ago
- 3 years ago
Recent Discussions
- 19 days ago