Apoorva6
9 years agoFrequent Contributor
Running Linux command via Groovy
HI,
I am trying to change directory via Groovy, but have this error back, please help me.
My Script as below:
if(actual.exists)
{
"cd /home/bgew".execute()
}
else
{
log.info("File not copied to ready folder")
}
I have below error:
01:41:02,279 ERROR [SoapUI] An error occurred [Cannot run program "cd": error=2, No such file or directory], see error log for details
java.io.IOException: Cannot run program "cd": error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)