'\" t .\" Title: refdba .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 2005-10-15 .\" Manual: RefDB Manual .\" Source: RefDB Manual .\" Language: English .\" .TH "REFDBA" "1" "2005\-10\-15" "RefDB Manual" "RefDB Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" refdba \- the administration client of RefDB .SH "SYNOPSIS" .PP Interactive mode: .HP \w'\fBrefdba\fR\ 'u \fBrefdba\fR [\fB\-c\fR\ \fIpager\-command\fR] [\fB\-e\fR\ \fIlog\-destination\fR] [\fB\-f\fR\ \fIstdin\fR] [\fB\-h\fR] [\fB\-i\fR\ \fIIP\-address\fR] [\fB\-l\fR\ \fIlog\-level\fR] [\fB\-L\fR\ \fIlog\-file\fR] [\fB\-p\fR\ \fIport\fR] [\fB\-q\fR] [\fB\-T\fR\ \fItime\fR] [\fB\-u\fR\ \fIname\fR] [\fB\-v\fR] [\fB\-V\fR] [\fB\-w\fR\ \fIpassword\fR] [\fB\-x\fR] [\fB\-y\fR\ \fIconfdir\fR] .br \fINon\-Interactive\fR \fImode:\fR .PP Batch mode: .HP \w'\fBrefdba\fR\ 'u \fBrefdba\fR \fB\-C\fR\ \fIcommand\fR [\fB\-c\fR\ \fIpager\-command\fR] [\fB\-e\fR\ \fIlog\-destination\fR] [\fB\-f\fR\ \fIstdin\fR] [\fB\-i\fR\ \fIIP\-address\fR] [\fB\-l\fR\ \fIlog\-level\fR] [\fB\-L\fR\ \fIlog\-file\fR] [\fB\-p\fR\ \fIport\fR] [\fB\-q\fR] [\fB\-T\fR\ \fItime\fR] [\fB\-u\fR\ \fIname\fR] [\fB\-w\fR\ \fIpassword\fR] [\fB\-x\fR] [\fB\-y\fR\ \fIconfdir\fR] .SH "DESCRIPTION" .PP refdba is a command\-line client providing the commands to administer RefDB(7) databases, users, and styles\&. refdba can be started in an interactive mode, providing a command prompt\&. Type \fB?\fR or \fBhelp\fR to see a list of available commands\&. Alternatively you can start refdba in non\-interactive mode\&. refdba will execute the requested command and return\&. In this mode refdba will accept input on stdin for a variety of commands, allowing Unix piping\&. .SH "OPTIONS" .PP \fB\-c\fR \fIpager\-command\fR .RS 4 The command line of the pager that is to be used\&. Instead of a pager you can of course specify any valid command that accepts data on stdin\&. Use "stdout" to request data output to stdout\&. This is the default, but you may want to specify it on the command line if you need to temporarily override a default pager setting in your configuration file\&. .RE .PP \fB\-C\fR \fIcommand\fR .RS 4 The command to be run in non\-interactive mode\&. You can supply all options and parameters that the command accepts on the refdba command line\&. .RE .PP \fB\-e\fR \fIlog\-destination\fR .RS 4 log\-destination can have the values 0, 1, or 2, or the equivalent strings \fIstderr\fR, \fIsyslog\fR, or \fIfile\fR, respectively\&. This value specifies where the log information goes to\&. 0 (zero) means the messages are sent to stderr\&. They are immediately available on the screen but they may interfere with command output\&. 1 will send the output to the syslog facility\&. Keep in mind that syslog must be configured to accept log messages from user programs, see the syslog(8) man page for further information\&. Unix\-like systems usually save these messages in /var/log/user\&.log\&. 2 will send the messages to a custom log file which can be specified with the \fB\-L\fR option\&. .RE .PP \fB\-f\fR \fIstdin\fR .RS 4 Read data from stdin\&. refdbc usually knows when it should read from stdin\&. However, a few commands use data supplied in the command line but also allow to read from a file\&. Use this option to force refdbc to read from stdin \fIin addition\fR to values supplied on the command line\&. .RE .PP \fB\-h\fR .RS 4 Displays help and usage screen, then exits\&. .RE .PP \fB\-i\fR \fIIP\-address\fR .RS 4 Set the IP address of the box which is running the application server refdbd(1)\&. Instead of the IP address you can also specify the hostname as long as it can be properly resolved by your system\&. .RE .PP \fB\-l\fR \fIlog\-level\fR .RS 4 Specify the priority up to which events are logged\&. This is either a number between 0 and 7 or one of the strings \fIemerg\fR, \fIalert\fR, \fIcrit\fR, \fIerr\fR, \fIwarning\fR, \fInotice\fR, \fIinfo\fR, \fIdebug\fR, respectively (see also Log level definitions)\&. \fB\-1\fR disables logging completely\&. A low log level like 0 means that only the most critical messages are logged\&. A higher log level means that less critical events are logged as well\&. 7 will include debug messages\&. The latter can be verbose and abundant, so you want to avoid this log level unless you need to track down problems\&. .RE .PP \fB\-L\fR \fIlog\-file\fR .RS 4 Specify the full path to a log file that will receive the log messages\&. Typically this would be /var/log/refdba\&. .RE .PP \fB\-p\fR \fIport\fR .RS 4 Set the port of the box which is running the application server\&. .RE .PP \fB\-q\fR .RS 4 Start without reading the configuration files\&. The client will use the compile\-time defaults for all values that you do not set with command\-line switches\&. Useful for debugging config files\&. .RE .PP \fB\-T\fR \fItime\fR .RS 4 Set the timeout for client/application server dialogue in seconds\&. A connection with unsuccessful read or write attempts will be considered as dead and taken down after this amount of time has elapsed\&. .RE .PP \fB\-u\fR \fIname\fR .RS 4 Set the username for the database access\&. Note: This username need not be identical to the login name of the user\&. This is the username required to access the database server\&. .RE .PP \fB\-v\fR .RS 4 Prints version and copyright information, then exits\&. .RE .PP \fB\-V\fR .RS 4 Switches to verbose mode\&. .RE .PP \fB\-w\fR \fIpassword\fR .RS 4 Set the password for the database access\&. Note: This password need not be identical to the login password of the user\&. This is the password required to access the database server\&. .RE .PP \fB\-x\fR .RS 4 Send passwords unencrypted\&. .RE .PP \fB\-y\fR \fIconfdir\fR .RS 4 Specify the directory where the global configuration files are Note: By default, all RefDB applications look for their configuration files in a directory that is specified during the configure step when building the package\&. That is, you don\*(Aqt need the \fB\-y\fR option unless you use precompiled binaries in unusual locations, e\&.g\&. by relocating a rpm package\&. .RE .SH "DIAGNOSTICS" .PP The exit code is 0 if all went fine\&. It will be 1 if the command (when run in batch mode) or the last command (when run in interactive mode) returned an error, or if there was a general error condition during startup like a lack of available memory\&. .SH "CONFIGURATION" .PP refdba evaluates the refdbarc configuration file at startup to initialize itself\&. .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .B Table\ \&1.\ \&refdbarc .TS allbox tab(:); lB lB lB. T{ Variable T}:T{ Default T}:T{ Comment T} .T& l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l. T{ logfile T}:T{ /var/log/refdba\&.log T}:T{ The full path of a custom log file\&. This is used only if logdest is set appropriately\&. If you start refdba from the command line as a regular user, you should specify a file that you have write access to (you may not be allowed to create /var/log/refdb\&.log or write to this file as a regular user)\&. T} T{ logdest T}:T{ 2 T}:T{ The destination of the log information\&. 0 = print to stderr (this is mainly intended for debugging, as it may visually interfere with command output); 1 = use the syslog facility; 2 = use a custom logfile\&. The latter needs a proper setting of logfile\&. T} T{ loglevel T}:T{ 6 T}:T{ The log level up to which messages will be logged\&. A low setting (0) allows only the most important messages, a high setting (7) allows all messages including debug messages\&. \-1 means nothing will be logged\&. T} T{ pager T}:T{ stdout T}:T{ The command line of a pager that accepts the output of refdb on stdin to allow scrolling and other nifty things\&. \(lqstdout\(rq sends the data to stdout\&. T} T{ passwd T}:T{ * T}:T{ The password which is used for authentication with the database server\&. It is potentially evil to store unencrypted passwords in disk files\&. At least make sure that the configuration file is not readable for anyone else\&. The default setting causes refdba to ask for your password interactively\&. T} T{ port T}:T{ 9734 T}:T{ The port on which refdbd listens\&. Change this for all clients and the server if this value interferes with another program using this port\&. T} T{ serverip T}:T{ 127\&.0\&.0\&.1 T}:T{ The IP address or hostname of the machine where refdbd runs\&. Use the default (localhost) address if the clients and refdbd run on the same machine\&. T} T{ timeout T}:T{ 180 T}:T{ The timeout in seconds\&. After this time has elapsed, a stalled connection is taken down\&. Increase this value if you encounter frequent timeout errors due to high network traffic or refdbd overload\&. T} T{ username T}:T{ login name T}:T{ The username which is used for authentication with the database server\&. This may be different from the login name of the user\&. T} T{ verbose T}:T{ f T}:T{ Set this to t if you prefer verbose error messages\&. T} T{ no_encrypt T}:T{ f T}:T{ If set to \*(Aqt\*(Aq, passwords are transmitted unencrypted\&. The default is to encrypt passwords\&. T} .TE .sp 1 .SH "COMMANDS" .PP All commands consist of a single word which specifies the command\&. This may be followed by arguments and/or switches\&. The general syntax rules of the getopts library apply\&. .SS "addstyle" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBaddstyle\fR\ 'u \fBaddstyle\fR [\fB\-c\fR\ \fIcommand\fR] [\fB\-h\fR] [[\fB\-o\fR\ \fIfilename\fR] | [\fB\-O\fR\ \fIfilename\fR]] {\fIstyle\-file\fR...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Adds one or more bibliography style specifications from the input file(s)\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-c\fR \fIcommand\fR .RS 4 Specifies a command that will receive the output instead of the default pager\&. This may be a different pager, any command that takes input on stdin, or the string \(lqstdout\(rq to send the data to stdout without using a pager\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBaddstyle\fR command\&. .RE .PP \fB\-o\fR \fIfilename\fR .RS 4 Write the output to \fIfilename\fR instead of to stdout\&. .RE .PP \fB\-O\fR \fIfilename\fR .RS 4 Append the output to \fIfilename\fR instead of writing it to stdout\&. .RE .PP \fIstyle\-file\fR .RS 4 All other arguments are interpreted as the names of files containing style specifications\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBaddstyle j\&.biol\&.chem\&.xml pharmacol\&.rev\&.xml\fR .fi .if n \{\ .RE .\} .PP This will add the style specifications contained in the files j\&.biol\&.chem\&.xml and pharmacol\&.rev\&.xml to the bibliography style database\&. .RE .SS "adduser" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBadduser\fR\ 'u \fBadduser\fR {\fB\-d\fR\ \fIdatabase\fR} [\fB\-h\fR] {\fB\-H\fR\ \fIhost\-IP\fR} [\fB\-R\fR] [\fB\-W\fR\ \fIpassword\fR] {[\fB\-f\fR\ \fIfile\fR] | [\fIusername\fR...]} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Grants access rights to a refdb database to the given users\&. Specify the database with the \fB\-d\fR option\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP If a user is not yet known to the database server, refdb will create an account with the default access rights (=none)\&. If you do not specify a password for the new user with the \fB\-W\fR option (see below), the user will have access to the database server with the default password "refdb"\&. In most cases this is not a good thing\&. .PP A new user will automatically get access to the internal refdb database refdb\&. .PP Some database engines like SQLite do not support access control\&. The \fBadduser\fR command is not supported with these engines and will just return an explanatory message\&. .sp .5v .RE .PP \fB\-d\fR \fIdatabase\fR .RS 4 Specifies the reference database for which the access rights should apply\&. .RE .PP \fB\-f\fR \fIfile\fR .RS 4 Reads a whitespace\-separated list of usernames from file\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBadduser\fR command\&. .RE .PP \fB\-H\fR \fIhostname\fR .RS 4 \fIhostname\fR specifies the host the refdb application server runs on\&. If it runs on the same machine as the database server, you may specify \(lqlocalhost\(rq as hostname\&. Use \(lq%\(rq as hostname to allow access from all addresses except localhost\&. Otherwise, the hostname argument can be either a hostname, an IP address, or a subnet that specifies one or more computers to allow access from\&. You can add the same user several times with different hostnames\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br This option is only supported by MySQL\&. It is ignored if you use PostgreSQL as your database server\&. Please see the PostgreSQL documentation for help on how to manipulate host\-based access control with the pg_hba\&.conf file\&. .sp .5v .RE .RE .PP \fB\-R\fR .RS 4 Use this option to grant read\-only access for the user\&. By default, users are granted read/write access\&. Users with read\-only access can basically only retrieve references and notes\&. .RE .PP \fB\-W\fR \fIpassword\fR .RS 4 Set the password for a new user\&. The password is encrypted before transferring it to the application server\&. If the user already exists, his password will be changed accordingly\&. .RE .PP \fIusername\fR .RS 4 All other arguments are interpreted as usernames\&. If neither a username argument nor an input file is specified, refdba attempts to read a whitespace\-separated list of names from stdin\&. To force refdba to read from stdin \fIin addition to\fR explicitly named users, use the \fB\-f stdin\fR option\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExamples\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBadduser \fR\fB\fB\-d\fR\fR\fB \fR\fB\fIdb1\fR\fR\fB \fR\fB\fB\-N\fR\fR\fB \fR\fB\fInewpass\fR\fR\fBjim \fR .fi .if n \{\ .RE .\} .PP This will grant access to the database db1 for the new user jim\&. refdbd runs on the same computer as the database server (if you leave out the \fB\-H\fR option, localhost is assumed)\&. "jim" will have to provide "newpass" as a password when starting one of the refdb clients\&. .sp .if n \{\ .RS 4 .\} .nf refdba: \fBadduser \fR\fB\fB\-d\fR\fR\fB \fR\fB\fIdb1\fR\fR\fB \fR\fB\fB\-H\fR\fR\fB \fR\fB\fImono\&.mycomp\&.com\fR\fR\fB jim jane\fR .fi .if n \{\ .RE .\} .PP This will grant access to the database db1 for the users jim and jane\&. refdbd runs on the computer with the name "mono\&.mycomp\&.com"\&. If "jim" and "jane" are already known to the database server, they will keep their existing passwords\&. If not, they will have to use the default password "refdb"\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBAlternatives on sites with restricted database server access\fR .RS 4 .PP If you as the refdb administrator do not have GRANT permission on your database server, the \fBadduser\fR command is bound to fail\&. As a security\-minded person your database administrator might refuse to run refdba regardless of how often you ensure him it doesn\*(Aqt contain malicious code\&. He\*(Aqll want to do it the hard way, and this is what he needs to do: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} If you use MySQL as your database server, each new user needs at least entries in the mysql\&.user and mysql\&.db tables\&. Your database administrator might have set up his own rules, but in general the mysql\&.user table should grant no privileges to the user, whereas the mysql\&.db table should grant INSERT, SELECT, UPDATE, DELETE permissions to each user for the refdb database and SELECT, INSERT, UPDATE, DELETE, CREATE, DROP privileges for each reference database the user should have access to\&. Make sure to mention that the Host field in mysql\&.user must contain the name or address of the box that runs refdbd, which is not necessarily identical with the workstation of the user\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} If you prefer PostgreSQL instead, things are a little simpler\&. When you create a refdb database, a new group will be created to manage access to this database\&. All your database administrator needs to do is to add the new user to the groups refdbuser (granting access to the common refdb database) and user, where is the name of the reference database the user should be allowed to access\&. .RE .RE .SS "addword" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBaddword\fR\ 'u \fBaddword\fR [\fB\-h\fR] {[\fB\-f\fR\ \fIfile\fR] | [\fIword\fR...]...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Most bibliography styles use standardized abbreviations of the journal names\&. Most data sources specify these abbreviations without dots, as in "Mol Cell Biol"\&. If the words are to be abbreviated with dots (as in "Mol\&. Cell Biol\&.") in the bibliography, refdb needs to know which tokens in the abbreviated name are indeed abbreviated (e\&.g\&. "Mol\&."), and which are full words (e\&.g\&. "Cell")\&. To this end, refdb keeps a list of reserved words which are known not to be abbreviations of something else\&. refdb ships with a fairly complete list of such words, but if you detect errors or omissions, the \fBaddword\fR command comes in handy\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-f\fR \fIfile\fR .RS 4 Read a whitespace\-separated list of journal title words from file\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBaddword\fR command\&. .RE .PP \fIword\fR .RS 4 All other arguments are interpreted as reserved words\&. If neither a word list nor an input file is specified, refdba attempts to read a whitespace\-separated list of words from stdin\&. To force refdba to read from stdin \fIin addition to\fR explicitly listed words, use the \fB\-f stdin\fR option\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br refdb will convert all reserved words to uppercase internally, so it does not matter which case you provide these words in\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBaddword \-f wordlist FOO BAR\fR .fi .if n \{\ .RE .\} .PP This will add all reserved words in the file wordlist as well as the words "FOO" and "BAR" to the list of reserved words\&. .RE .SS "confserv" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBconfserv\fR\ 'u \fBconfserv\fR {\fIcommand\fR} [\fIvalue\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Configures the application server while it is running and does some tricks with the refdb helper databases as well\&. Some of the commands modify variables that can be set as command line arguments or with the init file\&. See Running the refdbd daemon for more information about these variables\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP This command will only reconfigure refdbd transiently\&. All changes are lost when the application server is restarted\&. To make permantent changes to the configuration, edit the init\-file or change the command\-line parameters in the script that starts refdbd\&. Please note also that remote administration must be enabled for this command to work\&. .sp .5v .RE .PP The following commands are available: .PP stop .RS 4 Stops the application server\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br This command affects only the refdbd parent process\&. Any children that may be currently serving clients will continue to do so until they are done\&. .sp .5v .RE .RE .PP ping .RS 4 Checks whether the application server is still alive and well\&. If this is the case, it will report the process IDs of the child that handles your query and of the parent\&. If not, the connection will time out with no response\&. .RE .PP serverip \fIvalue\fR .RS 4 Sets the database server IP address to \fIvalue\fR\&. .RE .PP timeout \fIvalue\fR .RS 4 Sets the timeout in seconds to \fIvalue\fR\&. .RE .PP logdest \fIvalue\fR .RS 4 Sets the destination of log output to \fIvalue\fR\&. Possible values are 0 (stderr), 1 (the system syslog facility), 2 (a private log file as defined by \fIlogfile\fR)\&. .RE .PP logfile \fIvalue\fR .RS 4 Sets the filename of the log file to \fIvalue\fR\&. .RE .PP loglevel \fIvalue\fR .RS 4 Sets the maximum level of messages to be logged to \fIvalue\fR\&. 0 means that only critical errors will be logged, 7 means that all messages including the extremely verbose debug messages will be logged\&. \-1 disables logging completely\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: confserv loglevel 7 .fi .if n \{\ .RE .\} .PP This will set the log level to 7\&. This temporary change will only be effective until refdbd is restarted\&. .RE .SS "createdb" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBcreatedb\fR\ 'u \fBcreatedb\fR [\fB\-E\fR\ \fIencoding\fR] [\fB\-h\fR] {\fIdbname\fR...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Creates a new database with the name \fIdbname\fR\&. Several databases may be specified in a single call of this command\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-E\fR \fIencoding\fR .RS 4 Select a character encoding for the new database\&. This is currently only supported by MySQL and PostgreSQL\&. If you use a different engine, this option is ignored\&. Please see the documentation of your database engine installation for available encodings\&. The value passed with the \fB\-E\fR option should be the \m[blue]\fBIANA\fR\m[]\&\s-2\u[1]\d\s+2 encoding name\&. If you do not use this option, the new database will use the default encoding of the database server unless your refdbdrc configuration file sets a default with a "db_encoding" entry\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBcreatedb\fR command\&. .RE .PP \fIname\fR .RS 4 The name of the reference database\&. The name must not contain a colon (\*(Aq:\*(Aq) or a dash (\*(Aq\-\*(Aq) due to the citation formats in documents using RefDB\&. The allowed characters may be further restricted by the database engine you use\&. The database name should also be considered case\-insensitive, i\&.e\&. don\*(Aqt try to create a database "mybase" if you already have one called "MYBASE"\&. Also, avoid using names which are SQL reserved words as this is doomed to fail\&. Unfortunately, this includes the all too convenient name "references"\&. Try "refs" or "biblio" instead\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBTip\fR .ps -1 .br Prepend a constant string like \(lqrd\(rq to all refdb database names\&. This speeds up retrieving refdb databases with the \fBlistdb\fR command if your database engine manages additional, non\-RefDB databases\&. Use a simple regular expression like \(lqrd%\(rq to restrict your search to RefDB databases\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBcreatedb \fR\fB\fIdb1\fR\fR\fB \fR\fB\fB\-E\fR\fR\fB \fR\fB\fIUTF\-8\fR\fR\fB \fR\fB\fIdb2\fR\fR .fi .if n \{\ .RE .\} .PP This will create the databases db1 and db2 with the character encoding UTF\-8\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBUsing SQL scripts to create databases\fR .RS 4 .PP refdb contains two plain\-text SQL scripts (installed in /usr/local/share/refdb/sql) to create database tables just like the \fBcreatedb\fR command does\&. These scripts are preferable to the command in these cases: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} You do not have database administrator permissions and have to ask your admin to create the databases for you\&. Your admin might prefer to run the script as he can easily find out what it is going to do\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} You want to integrate refdb with an existing or a custom database system\&. In that case you want the refdb\-specific tables in an existing database in addition to non\-refdb tables\&. .RE .PP The following procedures are equivalent to running the createdb command\&. If you want to add the tables to an existing database, please adapt the scripts and/or the procedures accordingly\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} If you\*(Aqre running MySQL, use the following commands (provide additional options like username and password as required): .sp .if n \{\ .RS 4 .\} .nf #~ \fBmysql \-e "CREATE DATABASE dbname"\fR .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf #~ \fBmysql dbname < empty\&.mysql\&.dump\fR .fi .if n \{\ .RE .\} .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} If you\*(Aqre using PostgreSQL, the following sequence should work (again, provide additional options like username and password as required): .sp .if n \{\ .RS 4 .\} .nf #~ \fBsed \*(Aqs/refdbtest/dbname/g\*(Aq < empty\&.pgsql\&.dump\&.in > empty\&.pgsql\&.dump\fR .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf #~ \fBpsql template1 < empty\&.pgsql\&.dump\fR .fi .if n \{\ .RE .\} .RE .PP The empty\&.pgsql\&.dump\&.in script contains the commands to create a database and to set appropriate access rights for a new group of database users\&. Therefore it is a good idea to replace the string "refdbtest" with the intended name of your new database\&. The \fBsed\fR command in the first line does just this\&. You may also edit a few more things, like the encoding\&. The second command actually creates the database, a new group, grants privileges to this group, and creates all necessary tables and sequences\&. template1 is a PostgreSQL system database\&. The \fBpsql\fR command requires the name of an existing database as an argument, but in this case you could use any other existing database just as well\&. .RE .SS "deletedb" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBdeletedb\fR\ 'u \fBdeletedb\fR [\fB\-h\fR] {\fIdbname\fR...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Deletes the database with the name \fIdbname\fR\&. Several databases may be specified in a single call of this command\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBCaution\fR .ps -1 .br .PP The database structure and the data will be gone, really gone, so be careful with this command\&. Think twice and, if in doubt, at least make a backup first to avoid extensive hairpulling\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a brief usage message and returns to the prompt\&. .RE .PP \fIdbname\fR .RS 4 The name of the database to be deleted\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBdeletedb \fR\fB\fIdb1\fR\fR\fB \fR\fB\fIdb2\fR\fR .fi .if n \{\ .RE .\} .PP This will delete the databases db1 and db2\&. .RE .SS "deletestyle" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBdeletestyle\fR\ 'u \fBdeletestyle\fR [\fB\-h\fR] {\fIunix\-regexp\fR} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Deletes the bibliography styles whose names match the Unix regular expression \fIunix\-regexp\fR\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP Some database engines, like SQLite, do not support Unix\-style regular expressions\&. Use SQL regular expressions instead\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a brief usage message and returns to the prompt\&. .RE .PP \fIunix\-regexp\fR .RS 4 The remaining arguments are interpreted as a regular expression which specifies the style or styles to be deleted\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBdeletestyle \fR\fB\fIJ\e\&.\&.*\fR\fR .fi .if n \{\ .RE .\} .PP This will delete all bibliography styles that start with \(lqJ\&.\(rq\&. .RE .SS "deleteuser" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBdeleteuser\fR\ 'u \fBdeleteuser\fR {\fB\-d\fR\ \fIdatabase\fR} [\fB\-h\fR] {\fB\-H\fR\ \fIhost\-IP\fR} {\fB\-R\fR} {[\fB\-f\fR\ \fIfile\fR] | [\fIusername\fR...]} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Revokes access rights to a refdb database from the given users\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP Some database engines like SQLite do not support access control\&. The \fBadduser\fR command is not supported with these engines and will just return an explanatory message\&. .PP refdb will only revoke the access rights to the specified database\&. It will revoke neither access rights to the internal database refdb, nor will it revoke database server access\&. You can revoke access to the internal database by specifying "refdb" with the \fB\-d\fR option\&. To revoke access to the database server, please use the command line utilities of your database server\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-d\fR \fIdatabase\fR .RS 4 Specify the name of the database\&. .RE .PP \fB\-f\fR \fIfilename\fR .RS 4 Read the usernames from \fIfilename\fR .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBdeleteuser\fR command\&. .RE .PP \fB\-H\fR \fIhostname\fR .RS 4 Specify the hostname or IP address for which to modify the access rights\&. This must be the same name that you used for a previous call to adduser\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br This option is only supported by MySQL\&. It is ignored if you useother database engines\&. .sp .5v .RE .RE .PP \fB\-R\fR .RS 4 Revokes read\-only access\&. .RE .PP \fIusername\fR .RS 4 All other arguments are interpreted as usernames\&. If neither a username argument nor an input file is specified, refdba attempts to read a whitespace\-separated list of names from stdin\&. To force refdba to read from stdin \fIin addition to\fR explicitly named users, use the \fB\-f stdin\fR option\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExamples\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBdeleteuser \fR\fB\fB\-d\fR\fR\fB \fR\fB\fB\-H\fR\fR\fB \fR\fB\fI%\fR\fR\fB \fR\fB\fIdb1\fR\fR\fBjim\fR .fi .if n \{\ .RE .\} .PP This will revoke the access to the database db1 for the user jim for all but local connections\&. .RE .SS "deleteword" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBdeleteword\fR\ 'u \fBdeleteword\fR [\fB\-h\fR] {[\fB\-f\fR\ \fIfile\fR] | [\fIword\fR...]...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP This command performs the reverse operation of addword\&. The specified reserved words will be removed from the list\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-f\fR .RS 4 Read a whitespace\-separated list of words from file\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBaddword\fR command\&. .RE .PP \fIword\fR .RS 4 All other arguments are interpreted as reserved words\&. If neither a word list nor an input file is specified, refdba attempts to read a whitespace\-separated list of words from stdin\&. To force refdba to read from stdin \fIin addition to\fR explicitly listed words, use the \fB\-f stdin\fR option\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br refdb will convert all reserved words to uppercase internally, so it does not matter in which case you provide these words\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBdeleteword \-f wordlist FOO BAR\fR .fi .if n \{\ .RE .\} .PP This will delete all reserved words in the file wordlist as well as the words "FOO" and "BAR" from the list of reserved words\&. .RE .SS "getstyle" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBgetstyle\fR\ 'u \fBgetstyle\fR [\fB\-c\fR] [\fB\-h\fR] [[\fB\-o\fR] | [\fB\-O\fR]] {\fIstyle\fR...} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Retrieves one or more bibliography style specifications from the database and formats them as an XML file\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-c\fR \fIcommand\fR .RS 4 Specify a command that will receive the output instead of the default pager\&. This may be a different pager, any command that takes input on stdin, or the string \(lqstdout\(rq to send the data to stdout without using a pager\&. .RE .PP \fB\-h\fR .RS 4 Displays the online help about the \fBgetstyle\fR command\&. .RE .PP \fB\-o\fR .RS 4 Write the output to a file instead of to stdout\&. .RE .PP \fB\-O\fR .RS 4 Append the output to a file instead of writing it to stdout .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBWarning\fR .ps -1 .br Be careful with the append (\fB\-O\fR) option\&. refdb will output the processing instructions, the doctype line, and one CITESTYLE element for each individually requested style\&. If you concatenate the results of several \fBgetstyle\fR calls, the resulting XML file will not be well\-formed without further processing\&. In order to write several styles into a single XML file, use a single \fBgetstyle\fR call and list all required styles as arguments\&. This will output the styles wrapped in a STYLESET element, resulting in a valid XML file\&. .sp .5v .RE .RE .PP \fIstyle\fR .RS 4 All other arguments are interpreted as the names of bibliography styles\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBgetstyle \-o j\&.biol\&.chem\&.xml J\&.Biol\&.Chem\&.\fR .fi .if n \{\ .RE .\} .PP This will write the style specification stored under the style name "J\&.Biol\&.Chem\&." to the file j\&.biol\&.chem\&.xml\&. .RE .SS "help" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBhelp\fR\ 'u \fBhelp\fR .HP \w'\fB?\fR\ 'u \fB?\fR .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Displays a brief summary of the available commands\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBhelp\fR .fi .if n \{\ .RE .\} .RE .SS "listdb" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBlistdb\fR\ 'u \fBlistdb\fR [\fB\-h\fR] [\fIdatabase\-regexp\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Lists all available databases if no argument is specified\&. If \fIdatabase\-regexp\fR is specified, only the databases matching this expression will be listed\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP In order to tell refdb reference databases apart from other databases maintained by your database server, refdbd has to peek into each database returned by the database server\&. Depending on the number of available databases this may take some time\&. Therefore it may be a good idea to use a common prefix for all refdb databases as explained in the section about the \fBcreatedb\fR command\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .PP \fIdatabase\-regexp\fR .RS 4 A valid SQL regular expression which limits the output to matching database names\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBlistdb \fR\fB\fIdb%\fR\fR .fi .if n \{\ .RE .\} .PP This will list all databases with names that start with the string \(lqdb\(rq\&. .RE .SS "liststyle" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBliststyle\fR\ 'u \fBliststyle\fR [\fB\-h\fR] [\fIstyle\-regexp\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Lists all available bibliography styles that match \fIstyle\-regexp\fR\&. If no argument is given, \fIall\fR available styles will be listed\&. This may or may not be what you want\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .PP \fIstyle\-regexp\fR .RS 4 A valid Unix regular expression which limits the output to matching style names\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br Some database engines, like SQLite, do not support Unix\-style regular expressions\&. Use SQL regular expressions instead\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBliststyle \fR\fB\fI^J\&.*\fR\fR .fi .if n \{\ .RE .\} .PP This will list all bibliography styles that start with a capital \(lqJ\(rq\&. .RE .SS "listuser" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBlistuser\fR\ 'u \fBlistuser\fR {\-d\ \fIdatabase\fR} [\fB\-h\fR] [\fIname\-regexp\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Lists all available users of the specified database that match \fIname\-regexp\fR\&. If no argument is given, \fIall\fR available users will be listed\&. This may or may not be what you want\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-d\fR \fIdatabase\fR .RS 4 Specify the database name\&. .RE .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .PP \fIname\-regexp\fR .RS 4 A valid Unix regular expression which limits the output to matching database user names\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br Some database engines, like SQLite, do not support Unix\-style regular expressions\&. Use SQL regular expressions instead\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBlistuser \fR\fB\fB\-d\fR\fR\fB \fR\fB\fIrefs\fR\fR\fB \fR\fB\fI^mo\&.*\fR\fR .fi .if n \{\ .RE .\} .PP This will list all users of the database "refs" whose names start with \(lqmo\(rq\&. .RE .SS "listword" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBlistword\fR\ 'u \fBlistword\fR [\fB\-h\fR] {\fIword\-regexp\fR} .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Lists all available reserved journal words that match \fIunix\-regexp\fR\&. If no argument is given, \fIall\fR available words will be listed\&. This may or may not be what you want\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP Keep in mind that the journal words are uppercased internally\&. You should write your \fIunix\-regexp\fR using all caps accordingly\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .PP \fIword\-regexp\fR .RS 4 A valid Unix regular expression which limits the output to matching journal title words\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br Some database engines, like SQLite, do not support Unix\-style regular expressions\&. Use SQL regular expressions instead\&. .sp .5v .RE .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br For a brief description of the purpose of reserved words, see the \fBaddword\fR command\&. .sp .5v .RE .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBlistword \fR\fB\fI^BIO\&.*\fR\fR .fi .if n \{\ .RE .\} .PP This will list all reserved journal words that start with \(lqBIO\(rq\&. .RE .SS "scankw" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBscankw\fR\ 'u \fBscankw\fR {\fB\-d\fR\ \fIdatabase\fR} [\fB\-h\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP This command schedules a full keyword scan in the database specified with the \fB\-d\fR option\&. The abstract field as well as all title fields of all references found in the database are scanned for the presence of all keywords available in the database\&. If a match is found and the keyword is not yet associated with that reference, the keyword is added to that reference\&. As the time required to perform this operation increases with both the number of references and the number of keywords, the keyword scan is performed in the background and the command returns immediately on the client side\&. See the server log for the results\&. .PP As this command will cause a huge number of database accesses it is best scheduled to run automatically as a cron job at a time of low use, either nightly or on weekends\&. .PP Please note the difference between the full keyword scan and the automatic keyword scan which can be requested by the refdbd command line switch \fB\-K\fR or the corresponding configuration variable \fIkeyword_scan\fR\&. The full keyword scan is "retrospective", i\&.e\&. it will add keywords that were added later to previously existing references\&. The automatic keyword scan will only add existing keywords to newly added references, thus causing less impact on the database performance while users are likely to access the database\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-d\fR \fIdatabase\fR .RS 4 Specify the database name\&. .RE .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .RE .SS "set" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBset\fR\ 'u \fBset\fR [\fB\-h\fR] [\fIvarname\fR] [\fIvarvalue\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP The \fBset\fR command displays or modifies the values of configuration variables\&. .PP If you call \fBset\fR without any arguments, it will display a list of all configuration variables with their current values\&. .PP If you call \fBset\fR with one argument, it will display the current value of this particular variable\&. .PP If you call \fBset\fR with two arguments, it will set the variable (first argument) to the new value (second argument) for the current session\&. To specify an empty value, use two quotation marks like this:""\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP For obvious reasons, \fBset\fR will never display the current password although you can certainly change the password with this command\&. To make sure no one else sees the new password that you enter, run the command \fBset passwd *\fR\&. You will then be asked to enter a password which will not be echoed on the screen\&. .PP This command is not available in batch mode, use the command line switches instead\&. In the interactive mode, the changes to the configuration variables are limited to the current session\&. If you want to change the values permanently, you should rather edit one of the configuration files\&. .sp .5v .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .PP \fIvarname\fR .RS 4 The name of the variable whose value should be displayed or set\&. .RE .PP \fIvarvalue\fR .RS 4 The new value of the variable to be set\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBset timeout 90\fR .fi .if n \{\ .RE .\} .PP This command will set the timeout to 90 seconds for the current session\&. .RE .SS "verbose" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBverbose\fR\ 'u \fBverbose\fR [\fB\-h\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Toggles the verbose mode on or off\&. If the verbose mode is on, the error messages and warnings may be some more comprehensible\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBverbose\fR .fi .if n \{\ .RE .\} .PP Depending on the previous setting, this will toggle the verbose mode on or off\&. .RE .SS "viewstat" .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBSynopsis\fR .RS 4 .HP \w'\fBviewstat\fR\ 'u \fBviewstat\fR [\fB\-h\fR] .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBDescription\fR .RS 4 .PP Shows the version numbers of the libdbi driver used to connect to your database server as well as the version information of that server\&. It also shows the current values of the variables that can be modified with \fBconfserv\fR\&. .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBOptions\fR .RS 4 .PP \fB\-h\fR .RS 4 Displays a help message explaining the \fBlistdb\fR command\&. .RE .RE .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBExample\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf refdba: \fBviewstat\fR .fi .if n \{\ .RE .\} .PP This will print some connection statistics and informations on the screen\&. .RE .SH "FILES" .PP PREFIX/etc/refdb/refdbarc .RS 4 The global configuration file of refdba\&. .RE .PP $HOME/\&.refdbarc .RS 4 The user configuration file of refdba\&. .RE .SH "SEE ALSO" .PP \fBRefDB\fR (7), \fBrefdbd\fR (1), \fBrefdb\-backup\fR (1), \fBrefdb\-restore\fR (1), \fBrefdbc\fR (1)\&. .PP \fIRefDB manual (local copy) \fR PREFIX/share/doc/refdb\-/refdb\-manual/index\&.html .PP \fIRefDB manual (web) \fR <\m[blue]\fBhttp://refdb\&.sourceforge\&.net/manual/index\&.html\fR\m[]> .PP \fIRefDB on the web \fR <\m[blue]\fBhttp://refdb\&.sourceforge\&.net/\fR\m[]> .SH "AUTHOR" .PP refdba was written by Markus Hoenicka \&. .SH "NOTES" .IP " 1." 4 IANA .RS 4 \%http://www.iana.org .RE