is it a daemon? how to create such a thing...

V

Valia

hello all,

here is something i would like to do, i think this can be done with a
daemon or something like named pipe or even a daemon waiting its input
from named pipe? do not know.

please can you help me and tell is this a good way to do it ? and also
maybeme some starting points (it is still too confused for me to
google anything) or simple examples.

- i have a huge pairs list, (a python dict), some kind of
replacements[a] -> 'a value',
- i had small scripts that use this 'replacements dict' to do many
processing, by now they all read(line) it at each execution. but it is
far too slow for my needs.

so i wonder if i could have some kind of process/script which would
load this list once and then wait for the smaller scripts theirs
queries about replacements pairs and answer them. i imagine this have
to do with daemon programming but i'm brand new to it, and also i just
need the simpler piece of code to do that (it is for a quick
experiment, my aim is not to create an apache server framework :) )

(and i'm only concerned by a linux version)
 
?

=?ISO-8859-15?Q?Andr=E9?= Kelpe

Valia said:
hello all,

Hi!
so i wonder if i could have some kind of process/script which would
load this list once and then wait for the smaller scripts theirs
queries about replacements pairs and answer them. i imagine this have
to do with daemon programming but i'm brand new to it, and also i just
need the simpler piece of code to do that (it is for a quick
experiment, my aim is not to create an apache server framework :) )

Take a look at Pyro (Python Remote Objects) at http://pyro.sf.net. This
should easily solve all your problems.

HTH

André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,635
Latest member
SkyePurves

Latest Threads

Top