メモ
- じぶん用のただのメモ書き
- 実際に挙動見てないのでできるかどうかを確かめる (無理かも。。。)
memo
#!/bin/bash -e
read -a ssh
echo ""
for i in ${ssh[@]}
do
host=$(ssh -t ${LLLLLLL} ssh ${i} exec hostname)
echo ${host} >/dev/null 2>$1
if [ ${host} = "x" ]; then
hostx=${host}
echo $hostx
elif [ ${host} = "y" ]; then
hosty=${host}
echo $hosty
elif [ ${host} = "a" ]; then
hosta=${host}
echo $hosta
elif { ${host} = "b" ]; then
hostb=${host}
fi
done
echo $hostx
echo $hosty
echo $hosta
echo $hostb