What is the best way to execute 5 curl
requests in parallel
from a bash script? I can't run them in serial for performance reasons.
Execute curl requests in parallel in bash
curlmulti-coresmpwget
Related Topic
- Linux – How to log outgoing http requests from PHP + cURL
- Nginx – DNS failure crashing web site – CURL requests
- Ssl – curl succeeds on an https request, wget does not
- Does CURL cache requests
- curl – Why Does Curl Work with a Specific HTTPS Site, but Wget Has Problems with Certificates?
- Curl – How to Use Curl Through an Intermediate Server
- Bash – curl bash script works fine in shell but not work in cronjob
- Fastest Way to Flood a Curl Request (Not for DDOS)
Best Answer
Use '&' after a command to background a process, and 'wait' to wait for them to finish. Use '()' around the commands if you need to create a sub-shell.