Skip to content

tuladhar/bash-parallel-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bash-parallel-scripts

Run bash scripts in parallel across servers using bash background jobs.

Prerequisite

  • Servers must be one per line in servers.txt file and must be accessible without password using pubkey method.

How to

  1. Edit run.sh and place your custom commands there.
  2. Execute parallel.sh script

Note: Per server execution logs are stored in logs directory and is overwritten on every runs.

Tips: Edit MAX_NPROC in paralle.sh to adjust # of parallel processes

Why not use Ansible or Salt?

  • Sometimes, bash script does the job done to keep things simple. For more complex command orchestration, those tools are preferred and does better job.

Author

  • Puru

About

Run bash scripts in parallel across servers using bash background jobs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages