PauloSSA 0 Posted October 1, 2007 I want to execute mine script to each 3 minutes, and am using this:Start() Func Start() <code> Sleep(180000); 3 Min Sleep. Start() EndFuncBut, after some time, i receive this error:Somebody can explain a way to prevent this to me? Share this post Link to post Share on other sites
enaiman 16 Posted October 1, 2007 This is happening because you're calling recursively your function. Change your script like: While 1 Sleep (180000) Start() WEnd Func Start() <code> EndFunc SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
PauloSSA 0 Posted October 1, 2007 This is happening because you're calling recursively your function. Change your script like: While 1 Sleep (180000) Start() WEnd Func Start() <code> EndFunc Do <code> Sleep (180000) Until 1 Work too, right? tyvm Share this post Link to post Share on other sites
enaiman 16 Posted October 1, 2007 Yup - it's the same .... Do-Until and While/WEnd work in a very similar manner. In your case you won't notice any difference. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites