Hi,
I have started the basexclient with a -n and -parameter to point to my server, what I would like to do is to execute scripts that I have laying around locally by doing something like
RUN name_of_local_script.bsx and not get back a response that it cannot find name_of_local_script.bsx in the folder /home/account that has basex installation...
Thanks, Bryan Rasmussen
Hi Bryan,
it's true that scripts that are addressed via RUN will always be opened on the server. If you use basexclient from command line, you can specify your input file with the -c flag. As an alternative, if your commands are available as string (either on the text or the XML format), you may as well use the EXECUTE command [2].
Christian
[1] http://docs.basex.org/wiki/Startup_Options#BaseX_Client [2] http://docs.basex.org/wiki/Commands#EXECUTE ___________________________
I have started the basexclient with a -n and -parameter to point to my server, what I would like to do is to execute scripts that I have laying around locally by doing something like
RUN name_of_local_script.bsx and not get back a response that it cannot find name_of_local_script.bsx in the folder /home/account that has basex installation...
Thanks, Bryan Rasmussen _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
On Fri, Nov 9, 2012 at 1:46 PM, bryan rasmussen rasmussen.bryan@gmail.com wrote:
Hi,
I have started the basexclient with a -n and -parameter to point to my server, what I would like to do is to execute scripts that I have laying around locally by doing something like
RUN name_of_local_script.bsx and not get back a response that it cannot find name_of_local_script.bsx in the folder /home/account that has basex installation...
Ok, I did as Christian suggested I ran with the -c parameter to load a script
I also used the -o parameter to save the output but it did not save the output. It created an empty file?
Thanks, Bryan Rasmussen
It's difficult to give more information without having more details.. Do you have a reproducible example?
Am 12.11.2012 12:49 schrieb "bryan rasmussen" rasmussen.bryan@gmail.com:
On Fri, Nov 9, 2012 at 1:46 PM, bryan rasmussen rasmussen.bryan@gmail.com wrote:
Hi,
I have started the basexclient with a -n and -parameter to point to my server, what I would like to do is to execute scripts that I have laying around locally by doing something like
RUN name_of_local_script.bsx and not get back a response that it cannot find name_of_local_script.bsx in the folder /home/account that has basex installation...
Ok, I did as Christian suggested I ran with the -c parameter to load a
script
I also used the -o parameter to save the output but it did not save the output. It created an empty file?
Thanks, Bryan Rasmussen _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de