Command line arguments
Friday, 9 December 2011 · 2 messages
EA
Erol Akarsu9 Dec 2011 00:09 #
Can I pass command line arguments to basex while executing a xquery script?
Thanks
Erol Akarsu
CG
Christian Grün9 Dec 2011 16:45 #
Quoted text · Erol Akarsu · 1 line
> Can I pass command line arguments to basex while executing a xquery script?
You may run a script with the "run" command and prefix it with other commands. An example:
basex -c "open ...; ...; run yourquery.xq"
With 7.1 and the latest snapshot, you can use an arbitrary number of commands, query files etc:
basex -c "open...." yourquery.xq
Hope this helps,
Christian
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery