Running the SARA server and toolsThis sections describes how to run the SARA server (
sarad
A parameter file can be specified with the The server can be started in an interactive test mode using the
server% sarad -d Type end to leave test mode > log user password ... > end server% If the server is started normally it will background itself after initialization: server% /corpus/bin/sarad -p /usr/local/etc/corpus.prm Started server server% corpadm
server% corpadm -p /corpus/adm/corpus.adm corpadm> Commands available:
If you do not supply enough arguments to a command Command names can be abbreviated as long as the abbreviation is unambiguous; currently the first lette can be used to specify the command. Online HelpYou can get help inside corpadm> help Command? <RETURN> Commands are: list - List a user's details users - List all usernames add - Create a new user delete - Delete user change - Interactively change a users details password - Change a users password help - Provide help on commands quit - Quit the admin program corpadm> help list COMMAND: list - List a user's details ARGUMENTS: user - the user to be listed corpadm> List all usernames
corpadm> users guest lou scotty corpadm> Adding a userThe corpadm> add fred Real name? Fred Bloggs Organization? Fred Plc. Contact Address? fred@fred.co.uk Expiration Date (dd/mm/yyyy)? <RETURN> Password? derf corpadm: Created user fred Listing a users detailsUse corpadm> list fred User : fred Real Name : Fred Bloggs Contact : fred@fred.co.uk Organization : Fred Plc. Last Successful Login : (never) Last Unsuccessful Login : (never) Account expires : (never) corpadm> Changing a users detailsThe corpadm> change fred Real name [Fred Bloggs]? > <RETURN> Organization [Fred Plc.]? > <RETURN> Contact Address [fred@fred.co.uk]? > fred.bloggs@fred.co.uk Expiration Date [never]? > <RETURN> corpadm: Changed user fred
Changing a users passwordUse the corpadm> password User? fred Password? d3rf corpadm: Password changed corpadm> Deleting a userUser records can be deleted with the corpadm> delete fred corpadm: Deleted user fred corpadm> localizeYou shouldn't need to drive However, should you ever need to run server% localize -h Usage: localize {-[Aabdiprtkh]} directory -A Equivalent to -a -p -b -d -i -a Fix accelerator files (*.acc) -b Fix bibliography file (pbib) -d Fix dictionary file (corpus.dct) -i Fix index files (idxNNN/NNN/NNN.H*) -p Fix path index file (files.pdx) -r dir Relocate the paths in files.pdx to dir -t n Set the number of texts to n. Overridden by value in files.pdx if -p is used -k Keep the backup copies of files -h show this help message directory The directory where the files reside server% directory should be For The dir argument to the server% localize -r /corpus/texts /corpus/Index/etc ... server% solveThe program solve frog will enumerate all solutions to the query The testnet
sample
solve frog | sample 3 displays every third hit from the query |