#!/bin/sh
if [ $# -ne 1 ]
then
echo "usage: $0 directory";
exit;
fi
list=$(cat ips | xargs)
for ip in $list
do
scp -r $1 root@$ip:$1
done
if [ $# -ne 1 ]
then
echo "usage: $0 directory";
exit;
fi
list=$(cat ips | xargs)
for ip in $list
do
scp -r $1 root@$ip:$1
done