Hello.

After a looong while being busy with other stuff, I returned to working
with dtcl :>

Right now I'm testing a small subscription system and here's what I find
missing: ability to run a certain dtcl script with crontab. It's
possible with php (php4-cgi in debian), it should be possible with dtcl.
Yes, there's tclsh but here's what's missing:
- I have a lot of functions read in GlobalInitScript & ChildInitScript
  (ie. SQL connections, mail sending functions)
- I might want to use 'parse'

The only thing I came up with is putting the script somewhere within
DocumentRoot and putting wget on cron... But this may be a security
feature when the script will be doing unerasable duties like rotating
logs (ie. for calculating statistics)... Or logging user access - this
may be used to remove some entries. I know, I'm a bit paranoid :>

Anyways, it would be wise for mod_dtcl to have a config file, whose name
could preferably supplied during compilation (and overridden in
httpd.conf :). This would allow compiling dtclsh, it reading config
files and launching file in a dtcl-like way. Also it would allow testing
very nasty things - like constant changing GlobalInit/ChildInit, loading
a shared object and many other things. I try to use C code in many
situations, so it would be nice to be able to test .so's w/o apachectl
start every SEGV occurs...

I suppose it's a good idea, and if the code is separated (I don't
suppose send_parsed_file() was ... but maybe that's changed now :).

-- 
Wojciech Kocjan
email: [EMAIL PROTECTED]
tel:   +48-501-778778

PGP signature

Reply via email to