Version 7 of Tcl as an NT Service

Updated 2004-11-21 01:38:04 by RoyT

It's possible to run Tcl scripts as services under Microsoft Windows NT. Matt Newman has done a nice job of producing a wrapper, tclsvc that lets any event-driven Tcl script run as a service. Get it from

   http://www.sensus.org/tcl/index.htm 

or

   http://mkextensions.sf.net/ 

I find the latter to be a somewhat nicer distribution. I'm working on beefing up the documentation but I'm not sure where to put it. Give me a hollar if you want a copy of my draft. -- Chris Nelson


Firedaemon [L1 ] is an alternative.


Winserv is another alternative.


Activestate's Tcl Dev Kit provides a tool as well.

I'm using AS tcldev kit to wrap a service. I notice an issue when my service code does an open

   set pch [open "|$program" r]
   fileevent $pch readable readableproc

I notice readableproc is never called when run under the service. When the same code is run standalone it works fine. Anybody know what's going on here? - RT 20, November 2004