quoted a string.
[feisty_meow.git] / scripts / security / khandroma_tunnels.sh
index 3491f4669ad36193963545f7062122a6728a24c5..529a4da5c77fb295348090f0b06d8379677a9dbc 100644 (file)
@@ -1,3 +1,18 @@
-ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L "*:5908:localhost:5908" fred@khandroma.cs.virginia.edu &>~/.tmp/zz_tunnel_khandro_w7.log &
-ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L "*:4040:localhost:8080" fred@khandroma.cs.virginia.edu &>~/.tmp/zz_tunnel_khandro_jenkins.log &
+#!/bin/bash
+# tunnels to the khandroma machine for vnc access to the win7 box and for the jenkins
+# server.
+
+soundfile=$FEISTY_MEOW_APEX/infobase/sounds/my_mind_is_going.wav
+if [ ! -z "$1" ]; then
+  soundfile=$1
+fi
+
+while true; do
+  echo Connecting jenkins and vms at khandroma.
+  ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L "*:5905:localhost:5905" -L "*:5902:localhost:5902" -L "*:5909:localhost:5909" -L "*:5908:localhost:5908" -L "*:4040:localhost:8080" fred@khandroma.cs.virginia.edu
+  bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile &>/dev/null </dev/null &
+  echo "Got dumped from tunnels; re-establishing connection."
+  echo "Note: if you're being asked for a password, you haven't set up an RSA key yet."
+  sleep 14
+done