CLI Tools
bash
Intermediate
Parallel SSH Command Runner
Run an arbitrary command on multiple servers in parallel and collect outputs.
bash
#!/bin/bash
CMD=${1:-uptime}
HOSTS=(web-01 web-02 web-03)
for host in "${HOSTS[@]}"; do
ssh -o ConnectTimeout=5 "$host" "$CMD" 2>&1 | sed "s/^/$host: /" &
done
wait
echo Done.
Prerequisites
- ssh
- bash
Pro Tips
- → Use pssh or Ansible for larger fleets.
Commercial Licensing
Acquire a production access token or template license for enterprise deployment.
Module Info
- Language
- bash
- Level
- Intermediate
- Read time
- 2 min
- Published
- Mar 2026
- License
- Commercial License
Newsletter
New modules every week, directly to your inbox.
Similar Modules
Rich Progress Bar Script
Display a beautiful progress bar in the terminal using Rich.
python
·
Beginner
Git Commit Message Enforcer
commit-msg hook that enforces Conventional Commits format.
bash
·
Intermediate
System Info Dashboard
Print a compact system summary: CPU, RAM, disk, OS and uptime in one script.
bash
·
Beginner