netcp ${host}.${domain_piece}:z_arch* .
retval=$?
if [ $retval -ne 0 ]; then
- echo Error $retval returned from copying z_arch* from ${host}.${domain_piece}
- exit 1
+ echo "Error $retval returned from copying z_arch* from ${host}.${domain_piece}"
+ popd
+ continue
fi
+ ssh ${host}.${domain_piece} '{ \
+echo hello; \
+echo "howdy ho!"; \
+echo more stuff here.; \
+}'
popd
done
}
pushd $HOME/grabbing_archies
domain="its.virginia.edu"
-hostlist="idpprod01 idpprod02 idpprod03 idpprod04"
-grab_archies "$domain" "$hostlist"
+#hostlist="idpprod01 idpprod02 idpprod03 idpprod04"
+#grab_archies "$domain" "$hostlist"
hostlist="idpdev01 idpdev02"
grab_archies "$domain" "$hostlist"
-hostlist="idptest01 idptest02"
-grab_archies "$domain" "$hostlist"
-hostlist="idpsistest01 idpsistest02"
-grab_archies "$domain" "$hostlist"
-
-domain="storage.virginia.edu"
-hostlist="manage-s admin02 admin-hsz-s"
-grab_archies "$domain" "$hostlist"
+#hostlist="idptest01 idptest02"
+#grab_archies "$domain" "$hostlist"
+#hostlist="idpsistest01 idpsistest02"
+#grab_archies "$domain" "$hostlist"
+
+#domain="storage.virginia.edu"
+#hostlist="manage-s admin02 admin-hsz-s"
+#grab_archies "$domain" "$hostlist"
popd