I wrote a simple script that I want to run on several hosts. (I.e., I want to run one instance of the script, but have it operate on several hosts.) The script works, but only for the first host. When I add more than one host, I get an error stating: line 3: MACHINE2: command not foundWhat am I doing wrong? The script is posted below.#!/bin/shHOSTS=MACHINE1 MACHINE 2for i in $HOSTS; do echo $i    ssh -q $i uname -a;done
Manage multiple servers
shell script