bash -e exits when let or expr evaluates to 0
I have a bash script that sets -e so the script will exit on any exit status != 0.
I have a bash script that sets -e so the script will exit on any exit status != 0.
Is there a way to back out of all SSH connections and close PuTTY in “one shot”? I work in Windows 7 and use PuTTY to SSH to various Linux hosts.
I am trying to write a bash script in a file that would, when run start pinging a host until it becomes available, when the host becomes reachable it runs a command and stops executing, I tried writing one but the script continues pinging until the count ends,