Chapter 5. Running Alkaline

Table of Contents
Running Alkaline as a Daemon
Reindexing a Database
Gather Email Addresses
Remove Urls from a Database
Merging Databases
Exclude Words from an Existing Database
Testing Regular Expressions
Querying Available Settings
Parsing Html Documents
Command Line Options

Running Alkaline as a Daemon

In order to launch Alkaline as a daemon, you must run it from the directory that contains the aliases subdirectories, which in their turn contain asearch.cnf files and siteidx indexes. The command line syntax is:
asearch [options] [host:]port path1 [path2 [...]]
For example:
asearch 8080 foo bar
The port must be a positive number. It must be unused by any other process. If you have multiple network cards, you can specify a host entry. For example
asearch foo.bar.com:8080 foo bar
The paths must be relative and be subfolders of the current directory. If this is not the case, they will not be searchable.

On UNIX, you can detach the Alkaline process (so it is not killed after you close the terminal or telnet session) by running:
./asearch 8080 foo &