At the moment I use the following:
1) a background task which uses 'after' to rekick itself off
every tenth of a second, as well as incrementing the uptime counter.
2) a pause function which sits in a loop monitoring the uptime
variable for the required end time, whilst calling 'update' to allow
the background tasks in.
This setup has the disadvantage that sitting in the pause loop causes
the CPU usage to go through the roof.
I'm sure that the problem can be solved 'nicely' as scotty's SNMP access
routines perform exactly the fucntionality I require i.e. stall the
processing of a script whilst still letting background tasks take
place.
I orignially was trying to just use the 'after' command to wait for
the required time, but found that no other 'after' triggered tasks got
updated!
Any help would be appreciated
Yours
Graeme McKerrell
-- ______________________________________________________ / ___ \ | ,' ` """ | | | ;--, .~~~, .~~~, .~~,~~. .~~~, O O | | | ``; | | | |---' | ! | |---' ` ^ ' | | `.__,' .!. `._.'. `._.' `. .' `._.' (\_/) | | \_/ | | graemem@pdd.3com.com | \______________________________________________________/