Executing a Query from the Command Line

In addition to executing queries from the Proximity Database Browser and Query Editor, you can execute saved queries from the command line using the query.sh shell script (Linux/Mac OS X) or query.bat (Windows) batch file.

Exercise 5.8. Executing a query from the command line:

This exercise re-runs the research-clusters2 query. You can use either the rc2.qg2.xml query you created in Exercise 5.3 or the research-clusters2.qg2.xml query included with the distribution in $PROX_HOME/doc/user/tutorial/examples. The query results will overwrite the existing research-clusters2 container. Specify a different container name if you want to keep your original research-clusters2 container.

[Caution]

When executing queries from the Proximity Database Browser or Query Editor, Proximity prompts you to confirm overwriting an existing container. Proximity does not provide a similar prompt when executing queries from the command line and instead silently overwrites the existing container.

Before beginning, make sure that you are serving the ProxWebKB database using Mserver.