Running Background Processes in Bash Scripts
Spawning background processes in Bash is straightforward with the & operator, but there are several nuances depending on your use case. Basic approach The simplest method is appending & to your command: for i in $(cat ./all-hosts); do ssh “$i” “ifconfig | grep Link” & done Each & launches the process in the background and…
