I have a script I made for work that will call a function that takes an argument. I use the arguments to ssh into our servers. My question is: Is there a way to call the method so that if/when I get disconnected from our servers, It will automatically call the script? So for example, I can ssh into one of our servers. We have a reverse-ssh tunnel set up so after an hour the connection closes. I want it so that after the disconnection, the script will be called again prompting for a hostname.#!/bin/bashecho Provide hostname: read hostcreateSSHFunction(){    arg1=$1    ssh $host}createSSHFunction $host
Call the script after disconnecting from server
shell script;ssh;function
You'll need to loop infinitely, but prevent the script from running again when you are done.while ((1)); do script.sh; sleep 3; doneThe three second sleep gives you an opportunity to break the loop.  When you're done with ssh, exit.  In three seconds, the script will start again.  If you don't want that to happen, Ctrl-C will stop the loop.