By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,544 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,544 IT Pros & Developers. It's quick & easy.

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

P: n/a
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)
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Valia wrote:
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é
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.