$ while read S > do > ssh $S '/path/to/command/to/that.sh' > done < file_of_target_addrs