LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Running wget multiple downloads simultaneously (https://www.linuxquestions.org/questions/linux-newbie-8/running-wget-multiple-downloads-simultaneously-480237/)

stefaandk 09-04-2006 05:58 AM

Running wget multiple downloads simultaneously
 
I want to have a script that when executed downloads x amount of files via wget simultaneously.

wget file1
wget file2

When putting that in a bash script it downloads the files in turn, I want it so it all gets DL'ed together.

I'm not a script but I assume there would be an ez way to do this?

Thx

gilead 09-04-2006 07:46 AM

Putting an ampersand (&) at the end of a command forces it to run in the background. The following should work:
Code:

wget file1 &
wget file2 &



All times are GMT -5. The time now is 09:03 PM.