Forum Discussion
nmrao
Champion Level 3
Sorry, you did not tell what happened. Will you?
In order to run a groovy script, what is it to do with Runtime on Unix?
In order to run a groovy script, what is it to do with Runtime on Unix?
zsousa
8 years agoContributor
String command = ["/bin/bash", "csvtojson","csvdata_csv.csv"]
Process child = Runtime.getRuntime().exec(command)
I get below
Thu Jun 23 16:25:56 EDT 2016:ERROR:An error occurred [Cannot run program "[/bin/bash,": error=2, No such file or directory], see error log for details
- nmrao8 years agoChampion Level 3What is the output of the below command?
which sh - nmrao8 years agoChampion Level 3or did you try with /bin/sh ?
- zsousa8 years agoContributor
I did try /bin/sh same issue
- zsousa8 years agoContributor
The strange thing is , I installed Groovy outside of SoapUI yesterday to see if it worked on the stand alone Groovy and it did. For some reason its not letting me do it with groovy from SoapUI