Go to the previous, next section.
@everyfooting Author: dhinesh // Editor: rootd // Texinfo: dhinesh @| @| 3 December 1994
The ls -lR getter acts as a bridge between the database builder and the ftp- site list builder.
This module helps in getting the ls -lR listing of each of the ftp-sites listed in the site-list database and provide it to the database builder.
Each night, the ls -lR getter will constantly do either of the following two things on each of the ftp-list.
The value of N is defined as AGE in the INCLUDE/lslr.h file and is currently set to 1. The ls -lR getter will then anonymously ftp to the remote site and execute the ls -lR command. It will put the returned file in a temporary directory while it does the download, and then move it to the lslr directory once the download is complete.
The down loading to a temporary file and again moving that file to the lslr file is for the simple reason that when the ftp is doing downloading the file, there may be a situation when the database may also attempt to read the same file resulting in the inconsistency of the data.
The module essentially utilizes a C program which is run periodically as specified by the server. The periodical activation of the program can be done using the cron() function on the UNIX.
The C Program, once activated browses the entire database and checks if any ls -lR listings of any of the ftp-sites are older than the attribute specified by the host server. If it is so, then the call for updating the database has to be given.
Also the program checks the site-list database and verifies if each of the sites has their corresponding ls -lR listing included in the database. If not, again the action is performed to add the additional listing to the database.
The above updating actions can be performed by the following way.
Go to the previous, next section.