Le jeu 27/02/2003 à 15:11, Casey West a écrit :
> It was Thursday, February 27, 2003 when Yannick Warnier took the soap box, saying:
> : Hi,
> : 
> : I'm searching for some perl module to share a file on a network with
> : some concurent access management.
> : 
> : So, the file should be on a system, be readable by the module (we
> : suppose it is) and then the module should read what's in the file (parse
> : it, but that's optional) and allow different perl scripts to access the
> : content of the image of the file.
> 
> I'm afraid you're being way too ambiguous in your request.  It kind of
> sounds like "I want this thing to get this other thing and allow those
> things to access part or all of the first thing."
> 
> There are lots of parsing modules.  They usually corrispond to a
> particular format such as XML, PDF, POD, etc.  What you are
> describing, and the level of vagueness you use tells me that you
> probably have your own format, that's fine, but it will probably
> require a custom solution.

Ok, so I'll try to be more precise. The problem is not the parsing, the
problem is ditributing a file so as it can be accessible from different
perl scripts.

So, let's say, I have a file on one machine, on which my "distributing
deamon" is running. Now there is a cgi perl script on another machine
who wants to access that file (actually, there are more than one, and
that's what I need some distributing code to do it).
The file is a configuration file and the cgi script is a configuration
interface, in this case, but we could also have some other deamons
wanting to "actualize" their parameters by reading the file, or the
object being distributed.

So what I need is some code to read the file (not parse it, I don't care
for that now) and distribute a "in-memory" object version OR directly
the file, with appropriate locking so the many scripts/daemons/programs
accessing it don't do bad things.

Yeah, sorry for the undetailed question, and thanks for the kind answer
(and the one which could be following),

Yannick


_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to