Welcome to the Linux Foundation Forum!

Wget script

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training