I've written a file/timer event handling extension for tinytcl that
someone might find useful, but I'm not sure what to do with it. I could
stick it on the wiki or try to give you a patch or ???. It requires some
hacks to keep track of event handlers, so there are changes to file
handling, but not too much.
It works on linux 2.6.5, at least.
[also sent to Salvatore SanFilipo],
I took the framework of the event processor from Jim code and munged
it for the tinytcl, i.e. 6.8+, interfaces. With this, some other patches
to tinytcl and interfaces to our custom hardware, it's about 120K. I've
been using it for a few months and it seems pretty stable.
it provides the following command - not following modern tcl:
event add timer <delay> <script>
event add <filehandle> [r | w] <script>
event remove [<eventid> | all]
D R I V E C A M
3954 Murphy Canyon Road
San Diego, CA 92123
+1 858 380 3057
+1 858 380 3063 fax