Forum Discussion
nmrao
8 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