从Performance Center或VuGen触发Shell脚本

时间:2017-09-07 18:57:24

标签: bash shell performance-testing loadrunner hp-performance-center

我的查询是检查是否可以从性能中心或vugen触发shell脚本。 shell脚本放在服务器中,该服务器也是我们在负载测试期间监视的服务器。此shell脚本包含将获取CPU和内存并将详细信息发送给我们的命令。所以可以从PC执行这个shell脚本。

PC ---> test starts ------------------> test ends

   +--> shell script also starts  ----> shell script execution ends ---> mail results.

是否有任何命令可以动态启动此脚本或以任何可能的方式启动此脚本。做同样的事情?任何帮助,将不胜感激。提前谢谢。

1 个答案:

答案 0 :(得分:0)

这对我有用(你也可以把它放在init和end文件中):

#include <stdlib.h>
int system(const char *command);

Action() {
    system("notepad.exe");
     return 0;
}