slave-cmd.sh

#/bin/bash
bin=`dirname "${BASH_SOURCE-$0}"`
bin=`cd "$bin"; pwd`
cd $bin

for slavehost in $(cat ../conf/slaves)
do
ssh  $slavehost $1
done

你可能感兴趣的:(slave-cmd.sh)