Scenario:
I currently manager a cluster at work which is on a private network and i constantly need to ssh to other clients for diags e.t.c. I created a debain client which i use as my gateway to get to all the clients on the private network and I then created a Shell menu script which will make it easier for me to access all the clients, get diags...e.t.c
I have managed to get the script to work (by putting it in the .bashrc) to run every time the "test" user logs in which is good. I use this machine to ssh to other machines too...
so my problem:
Is it possible to have this script run when i exit a ssh session from another client back into this debian machine? i.e
client a = my machine
client b = gateway machine to private network with menu script
client c,d,e = private network clients
client a will ssh to client b (as test) - menu loads. I select option 1 to ssh to client c, do some stuff and exit client c back to client b. This currently gets me to a bash prompt - I want this to load the menu again so i can easily do other things rather than manually loading the menu again. (hope that makes sense)