---

Incorporating random integers in your Bash scripts.

There comes a time where there is a need for entropy in a script. Recently I needed to run a script on ~120 servers. I was logged in via cssh so all of my keystrokes play out on each server at the same time. I could execute the script on every server, but because the script made internal web connections, having them all execute at the same time could have been harmful as it could have flooded one of my main servers. Here is my solution:

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis