#!/bin/bash SCP=/usr/bin/scp CAT=/bin/cat INFILE=/root/tools/serverlist2 HOSTS=`${CAT} ${INFILE}` scp /root/tools/test ${HOSTS}:/root/tools