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
- 4 months ago
- 2 years ago
Recent Discussions
- 6 days ago
- 10 days ago