batch file - How to concurrently run 40 wget commands in Microsoft Windows environment? -
i stress test website using wget commands. how concurrently run 40 wget commands in microsoft windows environment?
i have tried writing command script wget command triggered 1 one.
you can use for /l
run loop 40 times, , start
launch program without waiting. command line:
for /l %a in (1 1 40) start wget the_url
from batch file, use same command, except use %%a
instead of %a
because wget command-line program, see 40 new console windows open up, should close automatically wget commands finish. can avoid using start /b
run commands in same console. in case, pipe output of each command nul, avoid having forty instances writing same console.
for /l %a in (1 1 40) start /b wget the_url >nul
Comments
Post a Comment