masonr / yet-another-bench-script

YABS - a simple bash script to estimate Linux server performance using fio, iperf3, & Geekbench
Do What The F*ck You Want To Public License
4.22k stars 430 forks source link

curl -sL yabs.sh | bash -s -- -{fdighr4} returns illegal option #16

Closed changchichung closed 3 years ago

changchichung commented 3 years ago

OS: ubuntu 18.04 / ubuntu 20.04

2020-11-24 11:08:26 [cch@dc034 ~]$ curl -sL yabs.sh | bash -s -- -{fdighr4}
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2020-11-20                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Tue Nov 24 11:08:31 CST 2020
bash: illegal option -- {
2020-11-24 11:08:31 [cch@dc034 ~]$ 
masonr commented 3 years ago

The options in the curly braces -- { } -- are all of the available ones. Leave out the curly braces and choose and pick which ones you need for your test when issuing the curl command.

E.g. curl -sL yabs.sh | bash -s -- -dg The above runs only the iperf/network tests ( -d disables disk test, -g disables geekbench test)

curl -sL yabs.sh | bash To run the default setup (all three tests), use the above.

Hope this helps!