#!/bin/bash for guest in $(cat machines.txt) ; do echo "===== $guest =====" ssh -t admin666@$guest vrms done