This commit is contained in:
Nico Schottelius 2021-05-02 13:20:10 +02:00
parent ffc507204b
commit fb3e1ca263
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ fi
for notebook in nb1 nb2 nb3 bridge line hike freiheit; do
found=""
echo "Looking for ${notebook}"
printf "Looking for ${notebook} ... "
for place in place7 place10; do
if [ -z "$found" ]; then
fqdn=${notebook}.${place}.ungleich.ch
@ -18,9 +18,9 @@ for notebook in nb1 nb2 nb3 bridge line hike freiheit; do
done
if [ "$found" ]; then
echo Found ${notebook} in ${found}
echo found ${notebook} in ${found}: ${fqdn}
ssh nico@${fqdn} ${cmd}
else
echo "Did not reach ${notebook}"
echo "did not reach ${notebook}."
fi
done