Previous
Up
Next
4 Utility programs

4 Utility programs

4.1 solve

The program solve returns solutions to a CQL query, which must appear on the command line. For example:

solve frog
will enumerate all solutions to the query frog in the format returned by GET (minus the OK, of course). This format was documented in 2.7 .

The solve program uses a connexion to localhost to contact the server. It can therefore only be run on a machine that is running the server.

4.2 testnet

testnet is used to test the server. It accepts ASCII packages as documented in Section 2 , which the user types at the prompt. The replies are echoed.

4.3 sample

sample is a simple filter that may be used to reduce the number of solutions returned by solve. sample num reads lines from standard input and sends every numth line to standard output. For example:

solve frog|sample 3
displays every third hit from the query frog.


Previous
Up
Next