Hi Marco,
I'd like to know whether the new "-c flag" for the Basex Http Server in [1] means that one can request a script of commands to be executed once at startup of the server.
Right, that’s exactly what the flag does.
Is there a way to do something equivalent also at server shutdown?
Currently no, but I’ll have some thoughts on how this could be realized.
In [2] with the new Service it is said that one could write jobs.xml file inside the database directory. I couldn't find the specification of the syntax of this file anywhere. Do you have some hints?
The format is pretty similar to the output of db:list-details(). Maybe the easiest approach right now is to create a persistent jobs and check out the created file.
Hope this helps, cheers, Christian
Bye,
Marco.
[1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server