-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrvscript.sh
executable file
·27 lines (26 loc) · 984 Bytes
/
srvscript.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
choice=$(whiptail --title "Accessing to a server" --menu "Choose a server" 20 60 10 \
"PROD" "Serveur de PROD" \
"PREPROD" "Serveur de PREPROD" \
"ENERGIEPLUS" "Serveur Energie+" \
"PRODCSPS" "Serveur de prod CSPS+" \
"APPS01" "Serveur APPS01" \
"SUIVIPLUSPROD" "Serveur SUIVI+ PROD" \
"SUIVIPLUSPREPROD" "Serveur SUIVI+ PREPROD" \
"RELEVEPLUS" "Serveur Releve+" 3>&1 1>&2 2>&3)
if [ "$choice" = "PROD" ]; then
elif [ "$choice" = "PREPROD" ]; then
elif [ "$choice" = "ENERGIEPLUS" ]; then
ssh [email protected] -p 22022
elif [ "$choice" = "PRODCSPS" ]; then
ssh [email protected] -p 22222
elif [ "$choice" = "APPS01" ]; then
ssh [email protected] -p 22022
elif [ "$choice" = "SUIVIPLUSPROD" ]; then
elif [ "$choice" = "SUIVIPLUSPREPROD" ]; then
elif [ "$choice" = "RELEVEPLUS" ]; then
ssh [email protected] -p 22022
fi;