Michael Schlenker wrote:
> ET schrieb:
>
>>Hello,
>>
>>Please advise me on the following: I need to provide a safe and
>>controlled environment for TCL script execution. In more detail, I want
>>to have a TCL program that is able to run other TCL scripts isolated
>>from each other and in separate threads. Additionally, the program
>>should be able to control the execution of the scripts in some way -
>>minimum is to be able to kill a script when it enters an endless loop,
>>but some monitoring could be very helpful.
>
>
> Look into the interp command and the so called SafeBase, it provides
> most of what you will probably need. Combined with the new Tcl 8.5
> feature of limiting the command count for a slave interpreter (to
> prevent endless loops), your probably pretty far. For threads you will
> need a threaded interpreter and the thread package, other than
> initialization not much will change.
>
>
>>Please tell me what possibilities do I have in TCL and direct me to some
>>examples on how to achieve this.
>
> http://wiki.tcl.tk/1477
> http://wiki.tcl.tk/4204
>
>
>>As a second step I would like to be able to provide a possibility of
>>running the scripts in a step mode (one TCL command per step).
>
> Thats a different topic all together, there are some debuggers in pure
> Tcl or using a core extension that do things like this.
>
> Michael
Many thanks, I'll check it.
Received on Fri Dec 23 19:00:41 2005