registering a python prog. as a windos service
Jeff Shannon
jeff at ccvcorp.com
Wed Nov 14 14:54:47 EST 2001
guignot wrote:
> I have to run some python scripts in background on dual boot Windows/Linux
> machines.
>
> For Unix, no pb. The scripts are launched from rc.local, et hop!
>
> For Windows, I tried to register them as a service to be launched at boot
> time, but they always suck...
>
> I beleive that not any prog can be registered???
>
> What did I miss?
>
> Tks in advance.
> J.
A program must be specifically designed to be a service. It *is* possible to
do this with a python script without too much pain, though it's not quite
trivial (see Python Programming on Win32 from O'Reilly for examples). (I'm
presuming that you know that Services are a NT/2k/XP feature and don't exist
on Win9x ...) The other option would be to put shortcuts for your scripts
into your StartMenu->Programs->Startup menu. Programs there will be
automatically run at boot time. This is probably the simpler option,
depending on just what it is that your scripts are intended to do...
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list