reconnect when connection times out?
. 2013-12-27 10:37:56.999 Looking up host "XXXXXXXXXX"
. 2013-12-27 10:38:22.770 Connecting to 165.XXX.XXX.XXX port 22
. 2013-12-27 10:38:43.783 Failed to connect to 165.XXX.XXX.XXX: Network error: Connection timed out
Believe it or not, when trying to connect to a gov't FTP, it is very often offline.
Is there a way to script an attempted re-connect when the connection times out?
I hate coming in Monday morning and finding my files didn't up/download over the weekend :(
Thanks in advance.
. 2013-12-27 10:38:22.770 Connecting to 165.XXX.XXX.XXX port 22
. 2013-12-27 10:38:43.783 Failed to connect to 165.XXX.XXX.XXX: Network error: Connection timed out
Believe it or not, when trying to connect to a gov't FTP, it is very often offline.
Is there a way to script an attempted re-connect when the connection times out?
I hate coming in Monday morning and finding my files didn't up/download over the weekend :(
Thanks in advance.