I would like to save ApacheBench (ab) tool on linux to a file. When I run it with -v 2 it displays some results in my ssh window. How to move these data into a file and make sure that it will not display on ssh no more? I've tried > file.txt 2>&1 but it does not work and still display data in my ssh window.
I use:
ab -n 10000 -c 200 http://mywebsite.com > file.txt 2>&1
Sorry nothing here but cat poo.
I do note that ab doesn't work for me unless the url has a filename or a / at the end.
Errors still go into the file, though.
Is this what you are doing? (on something other than localhost, of course)
See, nothing.
It's all in the cat poo.
With -v2 you get lots of these in cat poo
Otherwise without -v2 it looks like this