I have a "client" that talks to the daemon via a socket and
can adjust the "maxidletime".
I would like to be able to "remember" the maxidletime so that
when the daemon restarts it will use the last maxidletime.
Is there a way to do this *without* a "rc" file or getting into
tclkits?
I guess it might come down to the question of can persistence
data be stored within the daemon...
Thanks
Jerry
"Self-rewriting code", http://wiki.tcl.tk/15837
The caveats for such an approach obviously have been added
to the site as well.
To the thread-originator:
Why not simply write the variables to some extra file like:
/etc/mydaemon.conf (I remember you also wrote about avoiding
"rc"-stuff, but *why*?)
Seems like something like Perls __DATA__ construct might
be useful....
Jerry
That produces a writable filehandle? I didn't think Perl was *that*
brain-dead...
Donal.
See <http://wiki.tcl.tk/15837> again. I've modified Richard's code (as
"lexfiend") to address this concern.
- Adrian
I marked the special variables like so:
set maxIdleTime 1200 ;# volatile
and modified Richards solution to look for the
volatile string.
Details at : http://wiki.tcl.tk/15837
Thanks for the suggestions ( and I agree that it
is a technique to be used sparingly ;)
Jerry