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
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to