/usr/share/doc/refdb/refdb-manual/ch06s03.html is in refdb-doc 1.0.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>The non-interactive mode of refdba and refdbc</title><link rel="stylesheet" type="text/css" href="manual.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="RefDB handbook" /><link rel="up" href="ch06.html" title="Chapter 6. Overview of the RefDB command-line clients" /><link rel="prev" href="ch06s02.html" title="The interactive mode of refdba and refdbc" /><link rel="next" href="ch06s04.html" title="The non-interactive mode of refdbib" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The non-interactive mode of refdba and refdbc</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06s02.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Overview of the RefDB command-line clients</th><td width="20%" align="right"> <a accesskey="n" href="ch06s04.html">Next</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp66335520"></a>The non-interactive mode of refdba and refdbc</h2></div></div></div><p>These are the main features of the non-interactive (or batch) mode:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>You have to specify a command name with the <code class="option">-C</code> option. Specify all options that the command would take in an interactive session as additional options on the command line. The client will execute this command and exit.</p></li><li class="listitem"><p>The clients accept the input for some commands on stdin. If input is available on stdin, be it through a pipe or from a redirected file, this input will be used and any input from a file with the <code class="option">-f</code> option will be ignored. As mentioned previously, the automatic detection of data on stdin does not work on a few platforms like Windows/Cygwin. In this case, please use the <code class="option">-f stdin</code> option to make the client read from stdin.</p></li><li class="listitem"><p>The main purpose of the batch mode is to run the clients from shell scripts (or Perl or PHP if you prefer). You can figure out scripts of arbitrary complexity to interact with your reference database.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You will still be prompted for a password unless you specify one with the <code class="option">-w</code> or in the configuration file. Both ways are considered less secure than typing it on the password prompt, but this is a tradeoff if you want unattended operation. Please keep also in mind that the password prompt will fail if you send data to stdin.</p></div></li></ul></div><div class="simplesect"><div class="titlepage"><div><div><h3 class="title"><a id="idp66343664"></a>Example</h3></div></div></div><p>The following command runs refdbc and uses the <a class="link" href="re11.html#app-c-command-getref" title="getref"><span class="command"><strong>getref</strong></span></a> command to retrieve references by the author "Miller", using the database "refs" and requesting the RIS output format as well as the abstracts.</p><pre class="screen">
<code class="prompt">~$ </code>
<strong class="userinput"><code>refdbc -d refs -t ris -s AB -C getref :AU:=Miller</code></strong>
</pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch06s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The interactive mode of refdba and refdbc </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> The non-interactive mode of refdbib</td></tr></table></div></body></html>
|