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 Howard A. Bullock other posts by this author
Aug 30 2008 5:03AM messages near this date
Re: ActivePerl on IIS 7 | Re: Single file access through multiple perl programmes
SSK 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.
-------------

As I see it you should build intelligence into your programs so that on
one active program attempts open/read/write to the file at a time. If
you are on a Win32 platform look into Win32::Semaphore and Win32::Mutex.
I have successfully accomplished a similar task having many child
processes logging to a common parent process log file using Win32::Mutex
as a way for the process to determine if another is currently using the
file.

Also there is also flock to apply your own file lock.
_______________________________________________
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