ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activeperl
activeperl
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved