Zenity Shell Menu for 50+ servers, How to stay in server menu ?
Hello,
i am trying to make a zenity shell menu to manage 50+ servers and want to add multiple customized functions. e.g:- when server goes down i want to ssh in it, then check load,free -m, last 10 mins apache/nginx logs,exim logs,mysql slow query logs and many more. i have scripts for all these needs. But i am stuck here, please help. # those servers have my ssh key so theres no problm in doing ssh. i am successfully logging in servers, but the thing is when i get into server via ssh, the script ends and after i exit for server, i comes on my local machine's terminal with no script, then i have to again run script to get server menu. Please tell me how can i stay in loop i mean how to stay in server menu , then ssh into any server, and when i exit from server come back to server menu. :) please help . i want to customize it more. =========== its short script to give you guys idea====== ========my origial script have all servers====== Code:
#!/bin/bash |
Code:
while true |
All times are GMT -5. The time now is 06:46 PM. |