Linux - Shell script run curl command in parallel -
i create linux shell script run curl command in parallel
for example: have 3 command
- curl -s http://localhost/process.php?id=1
- curl -s http://localhost/process.php?id=2
- 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
Post a Comment