[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.1 Setting Configuration Variables 2.2 Setting Configuration Variables 2.3 Link Control Configuration Variables General configuration variables. 2.4 Configuring Infostructures
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The configure-link-control
program can be used by users to
configure LinkController. This will ask you a series of questions and
then generate a configuration in your home directory.
The configuration that is controlled by this program is related to reporting and fixing links. For other configuration see See section 14. Administration.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
All of the variable information is stored in the file `.link-control.pl' in your home directory or `/etc/link-control.pl' for systemwide configuration. The configuration files are written directly in Perl (the programming language LinkController is written in). You can set the configuration variables by putting lines like this.
$::links='/var/lib/link_database.bdbm'; |
Please note the semi colon at the end of the line and the use of single quotes so that Perl doesn't do anything strange to your values.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
$::user_address
$::base_dir
$::links
$::schedule
$::page_index
$::link_index
$::infostrucs
$::link_stat_log
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The infostructure configuration is used to find links within the pages
when we are building our databases. It is kept in a separate file
defined by the $::infostrucs
configuration variable.
The format of the file is one line for each infostructure with configuration directives separated by spaces. For example
directory http://example.com/manual /var/www/html/manual www http://example.com/strange_database |
The first directive describes how extract-links
program
should extract the links. It currently has three possible values. The
value www
means to actually use the given URL to download the web
pages. The value directory
means that extract-links
should assume that all of the files are stored in a directory and that
the directory structure matches the structure of the infostructure. The final value "advanced"
In the case where we use the directory
directive, a third
directive is present on each line with the full path to the base
directory of the infostructure.
More advanced configuration is possible by defining the information directly in perl.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |