I have a bash script to upload data to a site. I was getting slow download speeds, so I started running it in parallel, 5 at the same time, using xargs and -N1.
However, the problem is that the server asks me to solve the captcha if I run it 5 at a time, while it works fine with 1 at a time.
I believe that this is due to the fact that all processes start exactly at the same time, I get a checkbox.
In any case, here's the question: is there a way to add a wait (say 1 second) between the initial processes in the xargs / gnu parallel?
The only thing I could think of was to use a pgrep script | wc -1 to count instances of the script and hibernate in this number of seconds.
However, this is really not optimal, are there any better ways to do this?
source share