开发者

WCAT gives error: "must specify at least one of the following parameters -run, -update, -terminate, -showclients or -setclients"

When running WCAT on my windows XP machine via the commandline I get the following error:

error: must specify at least one of the following parameters -run, -update, -terminate, -showclients or -setclients

开发者_运维问答

The command I try to run is:

wcat.wsf -terminate -run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

And is copied directly from the readme.


The problem is that in the readme, it's not really a hyphens.

If you look at the hex code, you see that the fake hyphen in the readme is 0x96, a hyphen is 0x2d

So go ahead and replace all the hyphens in the line with real ones. It will work after that.


The problem exists because of an error in the regex matching in the wcat.wsf file. For some reason the regex:

 var run_regular_expression = /[-\/]run$/;

Will not match the "-run" argument

Changing it to:

 var run_regular_expression = /[\-\/]run$/;

Does match the run argument.

Another option is to change to commandline call to:

wcat.wsf /terminate /run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

using slashes instead of hyphens

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜