Forum Discussion

tiffany_ip's avatar
tiffany_ip
Occasional Contributor
13 years ago

How to execute Linux/Unix based command lines in TestComplete scripts

Hello,



I'm trying to find out how to execute a unix based command in TestComplete. I need it to retrieve the processor's (CPU) performance data like Idle %, CPU states %, Free Memory bytes, CPU usage percentage etc.



Please note that I'm in the learning process for Linux/Unix commands and I'm trying to just set up in JScript.



This is another testing software's command line and I need to make this line in TestComplete JScript scripts:



SYS_Execute ("ssh -l root {sAppServer} ""top -b -n 1 | grep idle | head -1""'")



Thanks,