NATO        Specify a no activity time-out

Top  Previous  Next

Syntax:

NATO

[ timeout ]

Arguments:

[ timeout ]

Variable, string, or numeric constant defining a numeric time-out value.

Options:

none

 

 

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.

 

This time-out is active only after a file transfer has begun. The /timeout option on the SENDFILE and RCVFILE commands has priority until the first byte of data actually is sent or received.

 

The no activity time-out is disabled (i.e., set to 0) by default.

 

Should a no activity time-out occur, it probably indicates a serious error with the connection. In most cases, your script should issue a DISCONNECT and then reconnect or log back on before attempting another file transfer. In some cases, you may find it necessary to attempt a reconnection multiple times before it will be successful after a no activity time-out has occurred.

 

Consider the following example in which the no activity time-out is set to 30 seconds.

 

NATO "30"

SENDFILE "testfile"

IFERROR= $ERROR_NO_ACTIVITY_TIMEOUT goto disconnect