Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Running Linux command via Groovy

$
0
0

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)


Viewing all articles
Browse latest Browse all 21061

Trending Articles