Welcome to the new Linux Foundation Forum!

Wget script

JellyfishernessJellyfisherness Posts: 2
edited September 2015 in Command Line/Scripting

Looking for help making a script that let's me specify the amount of multiple wget instances each time I run it.

echo -n "How many instances? "; read times

fileToGet=big_file_on_test_server

for i in {1..$times}

do

wget $fileToGet -o netinsta-${i}-{$$}.log --output-document=/dev/null --background

done

Comments

Sign In or Register to comment.