On Fri, Jun 5, 2015, at 08:58 AM, Harald Oehlmann wrote:
> I am sure we will find a better wording.
>
> The use of this type of persistence is at follows:
>
> - apache starts and ends processes "on demand".
> - each time a tcl process is started, one can do initialisation work
> once like that:
>
> if {![info exists ::initialized]} {
> package require MyAdditionalPackages
> set ::dbHandle [opendatabase]
> set ::fileHandle [open MyLogFile$PID.txt w]
> set ::initialized 1
> }
>
> You see the picture ?
>
> (you can do the same thing via "initScripts" but the upper solution
> works well to and is ok for short running init).
>
Yes, it's clear. Note in the above example one ends with multiple
concurrent log files, witch is not a common approach for logging.
And, must consider that using database or even IPC for persistence comes
with a price, mainly in terms of complexity and learning curve.
Both things that I can't afford in the current project. TCL generally is
great in terms of simplicity and immediate power, but less than that in
this specific case, I believe.
Thank you very much for the help given!
Paolo.
<i>Always striving to honor my word and commitments</i>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]