
The nwitime instruction specifies the amount of time to wait for the next wait-causing instruction.
Synopsis
nwitime(type.src)
Description
The nwitime (next wait instruction time) instruction sets the maximum amount of time the script waits for the completion of the next wait-causing instruction. The argument specifies the number of seconds to wait. Instructions that are affected by nwitime are: dbase, phreserve, sr_talkoff, tic, and tstop.
Example
In the following example, the nwitime instruction specifies the maximum number of seconds the script should wait for host confirmation before continuing.
ACCT_BAL: 
nwitime(20) 
-- 
-- 
(query host - dbase()) 
-- 
-- 
talk("Your account balance is") 
tnum(int.FIVE,'f') 
rts()
See also