473,508 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python script windows servcie

I'm using a Python script om my Wildfire XMPP server to connect to
external transports (for instantce MSN)

I configured the script as a windows service with 'srvany' and 'instrv"
and everything seems te work fine. The service starts with the system,
but as soon as an local useraccount (remote desktop) logs off on the
server the script vanishes.

Google helped me discovering that it has something to do something with
'CTRL_LOGOFF_EVENT'. I know what it means but i don't know how to solve
it. Is that something i have to configure in the script?

I'n totally new to Python so maybe someone can point me to the right
direction? :D

Regards, Mivabe

--
No line here today ....
Posted by news://news.nb.nu
May 16 '06 #1
3 1490
Mivabe formulated the question :

Google helped me discovering that it has something to do something with
'CTRL_LOGOFF_EVENT'. I know what it means but i don't know how to solve it.
Is that something i have to configure in the script?

I'n totally new to Python so maybe someone can point me to the right
direction? :D

Regards, Mivabe


No-one who can help me or did i visit the wrong group for this
'problem'?

--
No line here today ....
Posted by news://news.nb.nu
May 17 '06 #2
Mivabe wrote:
Mivabe formulated the question :

Google helped me discovering that it has something to do something with
'CTRL_LOGOFF_EVENT'. I know what it means but i don't know how to solve it.
Is that something i have to configure in the script?

I'n totally new to Python so maybe someone can point me to the right
direction? :D

Regards, Mivabe


No-one who can help me or did i visit the wrong group for this
'problem'?


Indeed. Next time you'd better ask in a windows specific list:
http://mail.python.org/mailman/listinfo/python-win32

You need to ignore CTRL_LOGOFF_EVENT. Take a look for example at
http://mail.zope.org/pipermail/zope-...ch/029068.html

May 17 '06 #3
Serge Orlov submitted this idea :
Mivabe wrote:

No-one who can help me or did i visit the wrong group for this
'problem'?


Indeed. Next time you'd better ask in a windows specific list:


Ke, thnx :-)

--
No line here today ....
Posted by news://news.nb.nu
May 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14342
by: Jorgen Grahn | last post by:
I couldn't think of a good solution, and it's hard to Google for... I write python command-line programs under Win2k, and I use the bash shell from Cygwin. I cannot use Cygwin's python package...
33
2925
by: Darren Dale | last post by:
I love the language. I love the community. My only complaint is that Python for Windows is built with Visual Studio. It is too difficult to build python, or a module, from source. This is what...
10
3660
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
17
3841
by: Paul Rubin | last post by:
Dumb question from a Windows ignoramus: I find myself needing to write a Python app (call it myapp.py) that uses tkinter, which as it happens has to be used under (ugh) Windows. That's Windows...
3
5108
by: diffuser78 | last post by:
I am a newbie in Python and want your help in writing python script. I have to remotely shut the windows px from linux box. I run OpenSSH on windows PC. I remotely connect it from Linux box using...
16
3074
by: diffuser78 | last post by:
I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action....
3
1279
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I have a process named P1 ( windows form or console app) which need to send a command to a windows service and then my servcie will proceed that command and do proper opertaion. For...
15
3187
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.