Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 811866d96d7e52c94055a34b3f792ef0 > files > 33

flood-1.1-3.r719568.2mdv2010.0.i586.rpm

<?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>Chapter 4. Running Flood</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Flood manual" /><link rel="up" href="index.html" title="Flood manual" /><link rel="prev" href="ch03s02.html" title="Windows" /><link rel="next" href="ch05.html" title="Chapter 5. Flood Configuration File" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 4. Running Flood</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch05.html">Next</a></td></tr></table><hr /></div><div class="chapter" title="Chapter 4. Running Flood"><div class="titlepage"><div><div><h2 class="title"><a id="id2508482"></a>Chapter 4. Running Flood</h2></div></div></div><p>
        Flood is a command line software. You can run it from Unix shell,
        MS-DOS prompt or simmilar facility of your operating system. Flood
        accepts only one argument, and that is a path to configuration file.
        Example:
        </p><pre class="screen">
$ flood /home/jacekp/tests/simple-test.xml
        </pre><p>
        If no argument is given, then flood uses standard input stream 
        (<code class="filename">stdin</code>), so you can use flood in pipe processing:
        </p><pre class="screen">
$ get_urls.py /usr/local/apache/logs/access.log | flood
        </pre><p>
        Flood outputs results to standard output stream
        (<code class="filename">stdout</code>) and errors (if any) to standard error
        stream (<code class="filename">stderr</code>). You can save result to file, or
        pipe it to flood processing script, like this:
        </p><pre class="screen">
$ flood /home/jacekp/tests/simple-test.xml &gt; /home/jacekp/tests/simple-test.out
$ flood /home/jacekp/tests/simple-test.xml | analize-relative
        </pre><p>
        If flood is used in shell scripts, then you can test <code class="envar">$?</code>
        variable for flood return code. If the code is 0, then flood has
        performed a successful test. Other value (usually greater than 0)
        means, that there was error during test.
        </p><p>
        There's ongoing development of GUI application for flood. When usable,
        such application will make working with flood much easier.
        </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Windows </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 5. Flood Configuration File</td></tr></table></div></body></html>