in reply to Re: Re: News script again
in thread News script again
flock allows you to lock a file, so other process that check for locks will wait until the file is unlocked to use it. This way 2 processes will not try to write a file at once, which usually results in one of the writes being lost.
See perldoc -f flock, search for flock on this site and look at KM's RE: File Locking for more information.
|
|---|