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.
In reply to Re: Re: Re: News script again
by mirod
in thread News script again
by lagrenouille
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |