NATO Specify a no activity time-out |
Top Previous Next |
Beginning with v2.0, the no activity time-out is set to 30 seconds by default. In previous versions the time-out was infinite (set to 0).
This script command specified a value, in seconds, used as for a no activity time-out during file transmission and reception. The no activity time-out is a failsafe time-out that permits a script file to recover if a file transfer fails abnormally yet the connection remains established.
Should a no activity time-out occur, it probably indicates a serious error with the connection. In most cases, your script should issue a FTPLOGOFF and then FTPLOGON before attempting another file transfer. It may be necessary to attempt a to log on multiple times before it will succeed after a no activity time-out occurs.
Consider the following example in which the no activity time-out is set to 10 seconds.
NATO 10 SENDFILE "testfile" IFERROR= $ERROR_NO_ACTIVITY_TIMEOUT goto logoff |