++ " "
This commit is contained in:
parent
ffc507204b
commit
fb3e1ca263
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ fi
|
||||||
for notebook in nb1 nb2 nb3 bridge line hike freiheit; do
|
for notebook in nb1 nb2 nb3 bridge line hike freiheit; do
|
||||||
found=""
|
found=""
|
||||||
|
|
||||||
echo "Looking for ${notebook}"
|
printf "Looking for ${notebook} ... "
|
||||||
for place in place7 place10; do
|
for place in place7 place10; do
|
||||||
if [ -z "$found" ]; then
|
if [ -z "$found" ]; then
|
||||||
fqdn=${notebook}.${place}.ungleich.ch
|
fqdn=${notebook}.${place}.ungleich.ch
|
||||||
|
@ -18,9 +18,9 @@ for notebook in nb1 nb2 nb3 bridge line hike freiheit; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$found" ]; then
|
if [ "$found" ]; then
|
||||||
echo Found ${notebook} in ${found}
|
echo found ${notebook} in ${found}: ${fqdn}
|
||||||
ssh nico@${fqdn} ${cmd}
|
ssh nico@${fqdn} ${cmd}
|
||||||
else
|
else
|
||||||
echo "Did not reach ${notebook}"
|
echo "did not reach ${notebook}."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue