PauloSSA Posted October 1, 2007 Share 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? Link to comment Share on other sites More sharing options...
enaiman Posted October 1, 2007 Share 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 script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
PauloSSA Posted October 1, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
enaiman Posted October 1, 2007 Share 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 script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now