Hello,
I want to create a Shell script to connect basexclient, running queries and put the output into a file.
How can I do that?
Regards,
Daiane
Hi Daiane,
please check out the start options from the BaseX client:
http://docs.basex.org/wiki/Command-Line_Options#BaseX_Client
Cheers, Christian
On Sat, Feb 15, 2014 at 5:57 PM, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I want to create a Shell script to connect basexclient, running queries and put the output into a file.
How can I do that?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Daiane,
Start server:
$ basexserver &
Use client to connect, execute query and store result in file:
$ basexclient -U admin -P admin -o result.tx 1+1 $ cat result.txt 2
Doing stuff like that from within a shell script should be no problem. Are there any specific issues you are facing?
Alex
On 15.02.2014, at 17:57, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I want to create a Shell script to connect basexclient, running queries and put the output into a file.
How can I do that?
Regards,
Daiane
basex-talk@mailman.uni-konstanz.de