Re: Getting rid of informative message

Natalia Shilenkova <[email protected]> Wed, 15 Sep 2010 21:45:48 -0400
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
Olle,

The command tool was not specifically written to be used with shell =
commands and it shows - there are extra formatting and output. I agree =
with you that extra output is inconvenient. Some of it can be easily =
changed, but, unfortunately, that particular string does not come from =
Xindice, but rather from one of the libraries (xmldb-api). =20

Now, your options are:
1. Update xmldb-api library. The most recent code for it had the extra =
line removed. The library is available on sourceforge [1], it has =
instructions for checking out the code.
2. Use some preprocessing in a shell script to remove extra content, for =
example:=20
bin/xindice lc -c /db | sed '\Dtrying to register databaseDd' =20

[1] http://sourceforge.net/projects/xmldb-org/develop

Regards,
Natalia
 =20
On Sep 15, 2010, at 5:03 PM, Olle Olsson wrote:

> Using the commandline tool
>   xml-xindice-1.1/bin/xindice
> to fetch data and feed the standard output  into a pipeline of =
processing steps.
>=20
> *Problem*:
> - the first line that appears on stdout is "trying to register =
database".
> - this is inconvenient ... much better to have only the actual content =
from the database
>=20
> *Question*:
> - is there some simple way to make that message go away?
> - there is a "verbose" flag, but no "quiet" flag -- why not?
>=20
> /olle
>=20
>=20
> --=20
> ------------------------------------------------------------------
> Olle Olsson   [email protected]   Tel: +46 8 633 15 19  Fax: +46 8 751 72 =
30
>        [Svenska W3C-kontoret: [email protected]]
> SICS [Swedish Institute of Computer Science]
> Box 1263
> SE - 164 29 Kista
> Sweden
> ------------------------------------------------------------------
>=20
>=20