The current version of BaseXClient uses java.io.Console, which makes
redirecting input from stdin impossible. That makes it difficult to create
any type of script that interacts with the database (essentially, it would
require using 'expect' or equivalent).
As far as I can see, the only thing you need java.io.Console for is reading
the password. Please do not use console if the user provides the password on
the command line with -P.
Alternatively, or in addition, consider supporting a "source" command that
reads commands from a file and sends them to the server.
- Godmar