Okay I saw a lot of questions like this, but almost all have either theoretical answers which do clear the concept but I am still not able to put it up in code.
What I want to achieve using a bash script is, using a loop,
sshto servers mentioned in a file ( this is done )
execute update and upgrade command on each of them.
exit asa the command is issued but the commands should keep running on the server.
Currently, with a normal script to do so, I can
ssh and update all machines but serially...that is only one machine at a time as
ssh exits only after the completion of update and upgrade.( with op directed to
/dev/null to avoid unnecessary op on screen)
I see options like nohup,
screen/tmux to do so...but I don't get how to use any of these to achieve the above!
How can I implemented this?