vegeta icon indicating copy to clipboard operation
vegeta copied to clipboard

How to run this in simple CLI - Windows

Open mtravnicek opened this issue 5 years ago • 3 comments

I have latest build vegeta-12.7.0-windows-amd64.zip when i launch following on Nginx "Welcome to nginx!" page:

echo "GET http://localhost/" | vegeta attack -duration=12s 2019/12/26 01:39:54 bad method: "GET

oops?

mtravnicek avatar Dec 26 '19 01:12 mtravnicek

The examples given in Vegeta's help are all targeted to UNIX shells. It seems that the double quotes don't work with your particular shell. What shell is that?

tsenart avatar Jan 12 '20 12:01 tsenart

The examples do not work in the cmd.exe shell. They work with Windows PowerShell. You can also try using Nushell.

mardukbp avatar Aug 10 '20 17:08 mardukbp

@mtravnicek if you are using windows terminal try removing double quotes from your command. Following command should work for you - echo GET http://localhost/ | vegeta attack -duration=12s

surenderssm avatar Nov 02 '20 07:11 surenderssm