writing a message to the terminal in a daemon process

2008-03-23 Thread bharath venkatesh
hi, i created a daemon process using the following code import os import sys # Default daemon parameters. # File mode creation mask of the daemon. UMASK = 0 # Default working directory for the daemon. WORKDIR = / # Default maximum for the number of available file descriptors. MAXFD =

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
was not shut down properly previously eg a power failure .. so that my program can do necessary steps if cleaning up is not done during its last termination On Wed, Mar 19, 2008 at 8:25 AM, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 18 Mar 2008 09:51:03 -0300, bharath venkatesh [EMAIL

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
handling SIGTERM allowed me to do cleaning up while the system shuts down but as i mentioned previously how can my process know if the system was not shut down properly previously On Wed, Mar 19, 2008 at 12:36 PM, bharath venkatesh [EMAIL PROTECTED] wrote: hi , thanks Gabriel

automatically doing some cleaning-up by the process when the systems shuts down

2008-03-18 Thread bharath venkatesh
hi .. my programs runs as daemon and it does some logging .. when system shuts down .. which may be done manually . i want my process do some cleaning up automatically such as writing in to the log file when the process terminats before the system shuts down

http server performance

2008-03-04 Thread bharath venkatesh
hi, my project involves lot of I/O over the network.. one part of my project involves a server(http) which is listening on the port for many client . this sever fetches an image from the web and and send it to clients and many clients will request the server concurrently .. to

macro in python

2008-02-27 Thread bharath venkatesh
hi .. how to create macro in python for set of instruction that is done frequently but too less in number to ignore the overhead of function call ... -- http://mail.python.org/mailman/listinfo/python-list

refreshing the cache time of a key

2008-02-27 Thread bharath venkatesh
hi .. is it possible to refresh the cache time of a key with out having to retrieving the cached data and storing it back in memcache .. for example if a data is cached for 1 hour and at the 50th minute from the time this data has been cached i want to store it in the cache for 1 more

executing a python program by specifying only its name in terminal or command line

2008-02-26 Thread bharath venkatesh
hi, i wanna run a python program by specifying only its name ex prog with the arguments in the terminal or command line instead of specifying python prog in the terminal to run the program not even specifying the it with .py extension .. for example i want to run the python program named

running a daemon in python

2008-02-25 Thread bharath venkatesh
hi .. hi i want a program to start running as daemon in background .. my program is server listen to a client ... so i want to make that program run as daemon .. when i execute the program the program for ex server.py it should automatically start running as daemon in the background even if

threaded http server

2008-02-20 Thread bharath venkatesh
hi i want to create fast n efficient http server which serve multiple client concurrently .. so i thought of threading the http server using class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): pass: as this creates an threaded version of http server ... but i

Re: threaded http server

2008-02-20 Thread bharath venkatesh
basically i want to serve many clients concurrently in fast n efficient manner On Feb 20, 2008 5:51 AM, Christian Heimes [EMAIL PROTECTED] wrote: bharath venkatesh wrote: hi i want to create fast n efficient http server which serve multiple client concurrently .. so i thought of threading

Re: threaded http server

2008-02-20 Thread bharath venkatesh
oh .. thanks for explaining since this is my first ever project i don't know much ... can u give me a basic idea of how it(image_proxy_server) can be done efficiently .. like serving many clients concurrently On Feb 20, 2008 9:01 AM, Christian Heimes [EMAIL PROTECTED] wrote: bharath

configuration and limitation of memcache..

2008-02-20 Thread bharath venkatesh
hi, In my project i need to store lot n lots of images in my cache and retrieve it very frequently.. currently i am using memcache to store and retreive images from cache... i will be using 4 GB ram as cache and each image won't exceed 1 mb for sure ...and i came across that memcache will be