#!/bin/bash ################################################## ## vncchooser: version .00000001 ## ## Purpose: ## ## To choose hosts to vnc to from a menu ## ## ## ## COPYRIGHT NOTICE: ## ## Copyright 2000 All Rights Reserved. ## ## Created by: John Streeton Stile ## ## email: john@stilen.com ## ################################################## ################################################ # Main Menu, options to see/change settings # Every function should return to this menu. ################################################ BOLD=$(tput smso) NOBOLD=$(tput rmso) while true do clear cat <<- ENDMENU ${BOLD}VNCChooser (v..00000001)${NOBOLD} Choose VNC host to connect to: ${BOLD}Variables${NOBOLD} ${BOLD}Settings${NOBOLD} 1) vui1.clustering 4) rec1.clustering 2) vui2.clustering 5) rec2.clustering 3) vui3.clustering 6) admin2.clustering O) other X) Exit ENDMENU echo -e "Enter Choice: \c" read choice case "$choice" in 1 ) vncviewer vui1.clustering.skyflow.com:0 ;; 2 ) vncviewer vui2.clustering.skyflow.com:0 ;; 3 ) vncviewer vui3.clustering.skyflow.com:0 ;; 4 ) vncviewer rec1.clustering.skyflow.com:0 ;; 5 ) vncviewer rec2.clustering.skyflow.com:0 ;; 6 ) vncviewer admin2.clustering.skyflow.com:0 ;; [o,O] ) echo "Please enter FQDN or IP" read Server vncviewer "$Server":0 ;; * ) echo "$choice" exit 1 ;; esac done