Hi Christian,
It turns out the contents of my script were relevant after all. As part of the script, I was trying to display a time stamp, like this. xquery (current-time() || " ")
If my x.bxs file has the content xquery ' '
then I can run it in BaseX 8.3 but not 8.4. In 8.4, even typing that command directly at the prompt instead of using RUN gives me the same error.
basex
BaseX 8.4 [Standalone] Try 'help' to get more information.
xquery out:nl()
Query executed in 265.95 ms.
xquery '
'
Stopped at , 1/15: Unknown command: '. Try 'help'.
run x.bxs
Stopped at , 1/15: Unknown command: '. Try 'help'.
Are you now able to reproduce any of this?
Amanda
-----Original Message----- From: Christian Grün [mailto:christian.gruen@gmail.com] Sent: Friday, March 11, 2016 12:47 PM To: Amanda Galtman Amanda.Galtman@mathworks.com Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Standalone RUN for .bxs file not working in version 8.4
Hi Amanda,
I just tried to reproduce this, but I didn’t succeed (see below)… Do you have more information?
basex
BaseX 8.4.2 beta [Standalone] Try 'help' to get more information.
xquery file:write('x.bxs', 'help create')
Query executed in 176.42 ms.
run x.bxs
CREATE [BACKUP|DATABASE|INDEX|USER] [...] Create database, index, user, backup or event.
Creates a new database, index, user, backup or event:
- BACKUP [name]: creates a backup of the database [name]
- DATABASE [name] ([input]): creates the database [name] with an optional [input]
- INDEX [TEXT|ATTRIBUTE|TOKEN|FULLTEXT]: creates the specified index
- USER [name] ([password]): creates the specified user
exit
Have a nice day.
On Fri, Mar 11, 2016 at 6:42 PM, Amanda Galtman Amanda.Galtman@mathworks.com wrote:
Hi,
I'm unable to use RUN in standalone mode in BaseX 8.4, including the latest
downloadable snapshot dated yesterday. The same thing in BaseX 8.3 works fine.
java -cp BaseX842-20160310.184258.jar org.basex.BaseX
C:/Users/username/.basex: writing new configuration file. BaseX 8.4.2 beta 9b9f74a [Standalone] Try 'help' to get more information.
RUN blah.bxs
Stopped at ., 1/20: [XPST0003] Incomplete expression.
The reference to "1/20" comes up no matter which .bxs file I try to run,
even if line 1 is a comment.
Did I miss a deliberate change in configuration or syntax?
Thanks, Amanda