Re: Single file access through multiple perl programmes
by Bill Luebkert other posts by this author
Aug 29 2008 7:53PM messages near this date
Re: Single file access through multiple perl programmes
|
help with Win32::TieRegistry
Lyle wrote:
> Sattapattu wrote:
> >
> > What i am trying to do is,i have to run multiple perl programmes all at once
> > to change the contents of a text file. and the text file would contain 2
> > things. Test name and status. So as i run multiple perl programmes, i want
> > each prgm to read single line at once and check the status. if the status is
> > pending , change status to inprogress execute that line, and then change the
> > status to done and come out of the programme, else skip to the next line
> > till it finds pending. Just wanted to make sure, this would give access
> > denied error, as the file would be used by another programmes
>
> All depends on the file locking and how you are opening the file to
> read/write. On windows the locking is automatic i'm pretty sure), so it
> depends on how you are opening the file.
> http://perldoc.perl.org/functions/open.html
> Would probably be a good read.
Here's another:
Win32::SharedFileOpen
You could also consider some sort of SQL updating of a DB which would
serialize the updates for you.
_______________________________________________
ActivePerl mailing list
ActivePerl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Sattapattu
Sattapattu
Andy Bach
Geoff
John Hornbuckle
Moshe Sharon
Howard A. Bullock
Lyle
Bill Luebkert
|