I'd concur with the other poster who encouraged you to look at the flock node and its sample code for doing file locking in Perl. That's a pretty standard approach for ensuring that multiple running scripts can't write to the same file at the same time. (At least if those scripts are all using flock, you won't have a problem. Read the fine print about advisory locking for more details.)
In reply to check permissions, use flock
by gregw
in thread FreeBSD reading/writing workaround?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |