Forum Discussion
nmrao
9 years agoChampion Level 3
Yes, groovy can run an external program.
Here is the script:
String command = "cmd /c csvtojson C:/Temp/mydata.csv" Process child = Runtime.getRuntime().exec(command) InputStream in1 = child.getInputStream() def json = in1.text in1.close() child.waitFor() log.info json
Related Content
- 5 months ago
- 3 years ago
Recent Discussions
- 19 days ago