turning a python script to windows service
kedai at kedai.com.my
Tue Mar 26 06:43:31 CET 2002
i've a simple script that just prints time.time(). how can i turn it
to a windows service?
do i need to do anythng special, apart from subclassing from
win32serviceutil.ServiceFramework and defining SvcDoRun, SvcStop, etc.
(the o'reilly python for win32 does help a bit, but i think i need
more prodding :P)
i have turned the sript to run as a service with srvany, but it never
prints anything, or do anything useful. but when run in debug mode,
it does print.
i may be missing something obvious here.
the gist of the script:
More information about the Python-list