I'm working on a bash script that is currently doing the following for multiple variables:
variable1=$(ssh -T user@hostname "command one")
variable2=$(ssh -T user@hostname "command two")
variable3=$(ssh -T user@hostname "command three")
variable4=$(ssh -T user@hostname "command four")
Is there an easy way (short of sticking the output of multiple commands into a single file and then working with that file) to assign multiple variables from different remote commands on a single ssh connection?