using curl command to download file in parts from different interfaces and to run the commands simultaneously from a script

Posted by jsjain007 on Ask Ubuntu See other posts from Ask Ubuntu or by jsjain007
Published on 2014-08-21T10:01:07Z Indexed on 2014/08/21 10:29 UTC
Read the original article Hit count: 231

Filed under:

i wanted to download a file using curl command simultaneously in different parts using ip aliasing(virtual Ethernet ports) so what i did was pasted the commands in a text file and run but the problem as obvious since it is in a file the commands will be executed one by one so is there a way to run all those commands simultaneously. here is the command

    curl --interface eth0:0 --range 0,38010880 http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/kingsoft-office_9.1.0.4244~a12p3_i386.deb -o kinsoft-office.part1

    curl --interface eth0:1 --range 38010880 ,- http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/kingsoft-office_9.1.0.4244~a12p3_i386.deb -o kinsoft-office.part2

    cat kinsoft-office.part*>kinsoft-office

can anyone help me to run these above 2 commands simultaneously from the script so as to increase download speed

© Ask Ubuntu or respective owner

Related posts about curl