Debian and Apache 1.3.22
I have a flat text database of 10Mb in size. Perl scripts are used to read this database. Every night I update the database by FTPing a .gz to the server and then running UNZIP to overwrite the existing live database.
How does file locking work in this instance? What happens if the perl script is reading the text file while I try to unzip at the same time. What happens if during unzipping someone tries to read the database?
Is it likely that I could corrupt the database? The perl scripts doing reading only, no writing to the database is done.
I have a flat text database of 10Mb in size. Perl scripts are used to read this database. Every night I update the database by FTPing a .gz to the server and then running UNZIP to overwrite the existing live database.
How does file locking work in this instance? What happens if the perl script is reading the text file while I try to unzip at the same time. What happens if during unzipping someone tries to read the database?
Is it likely that I could corrupt the database? The perl scripts doing reading only, no writing to the database is done.