For Programmers: Free Programming Magazines  


Home > Archive > Tcl > September 2006 > tcl running as a NT/XP service?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author tcl running as a NT/XP service?
Mike

2006-09-27, 7:04 pm

I know this has been discussed before and is in the archives. I
prefer to have a pure tcl solution if available to run a tcl
script as an NT/XP service.

Does anyone know of a pure tcl solution?

Mike
Gerald W. Lester

2006-09-27, 7:04 pm

Mike wrote:
> I know this has been discussed before and is in the archives. I
> prefer to have a pure tcl solution if available to run a tcl
> script as an NT/XP service.
>
> Does anyone know of a pure tcl solution?


ActiveState Tcl TDK provides for it.

Also see:
http://wiki.tcl.tk/2114
http://wiki.tcl.tk/1797
http://wiki.tcl.tk/1795


--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
Eckhard Lehmann

2006-09-27, 7:04 pm


Mike wrote:
> I know this has been discussed before and is in the archives. I
> prefer to have a pure tcl solution if available to run a tcl
> script as an NT/XP service.
>
> Does anyone know of a pure tcl solution?
>
> Mike


The easiest way is to create a starpack and configure it to run as a
service. Could be that it also works with a starkit or normal Tcl
installation...
A tutorial for this can be found here:
http://wiki.beyondunreal.com/wiki/S...bversion_Server
It is for subversions svnserve, but can be adopted to any arbitrary
program.


Eckhard

Leopold Gerlinger

2006-09-28, 4:02 am

Mike wrote:
> I know this has been discussed before and is in the archives. I
> prefer to have a pure tcl solution if available to run a tcl
> script as an NT/XP service.
>
> Does anyone know of a pure tcl solution?
>
> Mike


I've used the solution from http://www.sensus.org/tcl/ and re-compiled
it with 8.4.13 libraries. Attached is a ZIP file which contains the
MSCV++ 7.0 workspace, sources and executables. For description, pls.
consult the website above. Have fun with it.

Regards - Leo
Leopold Gerlinger

2006-09-28, 4:02 am

Mike wrote:
> I know this has been discussed before and is in the archives. I
> prefer to have a pure tcl solution if available to run a tcl
> script as an NT/XP service.
>
> Does anyone know of a pure tcl solution?
>
> Mike


I've used the solution from http://www.sensus.org/tcl/ and re-compiled
it with 8.4.13 libraries. Attached is a ZIP file which contains the
MSCV++ 7.0 workspace, sources and executables. For description, pls.
consult the website above. Have fun with it.

Regards - Leo

Jeff Hobbs

2006-09-28, 10:01 pm

Eckhard Lehmann wrote:
> Mike wrote:
>
> The easiest way is to create a starpack and configure it to run as a
> service. Could be that it also works with a starkit or normal Tcl
> installation...
> A tutorial for this can be found here:
> http://wiki.beyondunreal.com/wiki/S...bversion_Server
> It is for subversions svnserve, but can be adopted to any arbitrary
> program.


It is not possible directly to use a regular starkit because Windows
services require a different main entry point, and that you have some
code that handles the Windows service loop bits. The Tcl Dev Kit
includes a starkit that has this built in (and thus you would only want
to use for Windows services).

You can get external programs that will manage this for you and kick off
your process in a slightly less elegant, but perfectly operable manner.

--

Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com