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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -