We don't bite newbies here... much | |
PerlMonks |
Avoid multiple process writing to a file at the same timeby kkavitha (Initiate) |
on Sep 30, 2009 at 11:10 UTC ( [id://798289]=perlquestion: print w/replies, xml ) | Need Help?? |
kkavitha has asked for the wisdom of the Perl Monks concerning the following question: I have a perl project, one of the module in this project is writing some data into a file(specific to host). While running this project more than once at the same time, data in the file gets collpased. Because, more than one process is writing to the file at the same time. How to lock the file handle of that file? How to unlock the file handle once writing/reading done? Thanks N Advance, Kavitha
Back to
Seekers of Perl Wisdom
|
|