473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Server applications - avoiding sleep

I have written a small server application (for Windows) which handles
sending and receiving information from an instant messaging client and
a database. This server needs to run 24/7, however it stops when the
computer screen is locked.

I assume there is a way to make it run in the background 24/7 but how
do I go about doing this?

At present the application runs from within a wxPython GUI, however
this is only used to start and stop it. It could be entire faceless and
the GUI only used to execute it.

Best,

rod

Mar 15 '06 #1
5 1085
You can create a Windows Service which will run as long as Windows are
up, well, except if you stop it.

You can find more info here: http://www.python.org/windows/win32/

Sebastjan

On 15 Mar 2006 05:26:45 -0800, rodmc <us***************@yahoo.co.uk> wrote:
I have written a small server application (for Windows) which handles
sending and receiving information from an instant messaging client and
a database. This server needs to run 24/7, however it stops when the
computer screen is locked.

I assume there is a way to make it run in the background 24/7 but how
do I go about doing this?

At present the application runs from within a wxPython GUI, however
this is only used to start and stop it. It could be entire faceless and
the GUI only used to execute it.

Best,

rod

--
http://mail.python.org/mailman/listinfo/python-list

Mar 15 '06 #2
rodmc wrote:
I have written a small server application (for Windows) which handles
sending and receiving information from an instant messaging client and
a database. This server needs to run 24/7, however it stops when the
computer screen is locked.

I assume there is a way to make it run in the background 24/7 but how
do I go about doing this?

At present the application runs from within a wxPython GUI, however
this is only used to start and stop it. It could be entire faceless and
the GUI only used to execute it.


http://www.python.org/windows/win32/

google is your friend - when you know what to search !-)

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Mar 15 '06 #3
Hi,

Thanks to both of you for your help.

cheers,

rod

Mar 15 '06 #4
You can make it a service, which has an advantage, that it survives logouts.
SOME PROGRAMMING IS REQIURED. If I need something running the "fast and
dirty" way, I run a regular python application as window application (start
pythonw.exe).
As a way o communication (start, stop, pause) I use tray. If you nee an
example of such a program, I can send one.

"rodmc" <us***************@yahoo.co.uk> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
I have written a small server application (for Windows) which handles
sending and receiving information from an instant messaging client and
a database. This server needs to run 24/7, however it stops when the
computer screen is locked.

I assume there is a way to make it run in the background 24/7 but how
do I go about doing this?

At present the application runs from within a wxPython GUI, however
this is only used to start and stop it. It could be entire faceless and
the GUI only used to execute it.

Best,

rod

Mar 19 '06 #5
Hi Lev,

Sounds interesting. As I am quite new to Python an example program
would be most welcome. My email address is contained in the message.

Best,

rod

Mar 23 '06 #6

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

Similar topics

9
by: John Lull | last post by:
I'm writing a multithreaded COM server to manage a pool of hardware resources. All objects are designed to be thread-safe, and I've set sys.coinit_flags to COINIT_MULTITHREADED before importing...
5
by: Parahat Melayev | last post by:
I am trying to writa a multi-client & multi-threaded TCP server. There is a thread pool. Each thread in the pool will handle requests of multiple clients. But here I have a problem. I find a...
6
by: Ilia | last post by:
Hi folks, I have some problems with ASP.NET Session State. The following simple program runs well if the Session State set as "InProc". If I switch to "SQLServer", the changes, made by the...
7
by: David Brewster | last post by:
Hi everyone. I've been working with VB6 for a while now, I'm feeling pretty damn confortable with it, but find myself wondering about VB.NET and web applications. So I thought I'd get my feet wet....
0
by: =?Utf-8?B?QWxwZXIgQUtDQVlPWg==?= | last post by:
Hello, First of all I wish you a good day. My help request is about .NET asynchrounus socket communication. I have developed Server-Client Windows Forms .NET applications in VC++ .NET v2003. I...
14
by: Toni | last post by:
I have some program in VB6 (I can make new in .NET if it is necessary). This program is working with SQL Server 2000 database from long distance (computers are in agencies and is connected to DSL...
2
by: Paul Kozik | last post by:
I'm working with a small server program I'm writing for a small video game. The main class constructor starts a thread that handles socket connections, which itself starts new threads for each user...
1
by: danfolkes | last post by:
Hey Everyone, I am trying to send repeated messages from a "Node" to a "Server". It works the first time I send the from the Node to Server, but after that it either errors, or does not do...
18
by: maxhugen | last post by:
I have an Access app (split into FE and BE) running for some years, that is now also being used in a second office, connected by a WAN. This office has network problems, as it's over-utilized (97%...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.