Python Processes for Win32
Robert Brewer
fumanchu at amor.org
Sat Feb 5 16:01:40 EST 2005
harlinseritt at yahoo.com wrote:
> I have a daemon type script (daemon.py -- we'll say) that I would like
> to have run continuously. I'd like to be able to do something like
> this:
>
> daemon.py start
>
> ... and then to have it stop I'd like to do this:
>
> daemon.py stop
>
> I am having a hard time googling for a clue as to how to accomplish
> this. If anyone can point me in the right direction, I'd really
> appreciate it.
Write a Windows service (natively, see
http://www.python.org/windows/win32 or using py2exe, see
http://starship.python.net/crew/theller/py2exe/).
Then use:
net start daemonsvc
net stop daemonsvc
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-list
mailing list