Linux - Shell script run curl command in parallel -


i create linux shell script run curl command in parallel

for example: have 3 command

  1. curl -s http://localhost/process.php?id=1
  2. curl -s http://localhost/process.php?id=2
  3. curl -s http://localhost/process.php?id=3

i want call above 3 command simultaneously.

any appreciated.

i think bash script like:

#!/bin/bash  curl -s http://localhost/process.php?id=1 & curl -s http://localhost/process.php?id=2 & curl -s http://localhost/process.php?id=3 & 

however, starting tasks background processes. don't know how crucial simultaneous starting of process is.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -