in reply to What the flock!? Concurrency issues in file writing.
You could use a semaphore instead of flock (IPC::SysV::Semaphore).
Of course, writing lots of data from multiple sources for ultimate sorting sounds like a DB application to me. SQLite or MySQL might seem to be overkill, but they are really easy to install and interface with. If you are storing these reports over time, this is a much better archive system as well. Finally, if your retrieval needs increase in the future, your options are wide open.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What the flock!? Concurrency issues in file writing.
by suaveant (Parson) on Oct 01, 2008 at 18:50 UTC | |
|
Re^2: What the flock!? Concurrency issues in file writing.
by suaveant (Parson) on Oct 01, 2008 at 18:23 UTC | |
by BrowserUk (Patriarch) on Oct 01, 2008 at 21:01 UTC | |
by suaveant (Parson) on Oct 02, 2008 at 14:35 UTC |