Hi everyone, I need some help with shell scripting.

I have shell script which in the for loop goes through about 1000 hosts and
downloads files using wget

Example:

for i in hosts.file
do
time wget>> log
done

Now this process takes so long to go through so many hosts on the network,
and what I would like to do is to run about 10 or 20 of those commands
concurrently in parallel, so instead of hours, it would take much quicker
to get data collected.
I am using gnu parallel for this purpose, but not able to do it.

Please help me out in this.

Thanks,
Rohit

Reply via email to