Documentation inquiries

Wednesday, 16 May 2018 · 2 messages
ML
Marco Lettere16 May 2018 18:44 #
Hi all, investigating the new features tagged 9.x, I discovered a lot of great stuff. I have teo smaller questions ... 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. Is there a way to do something equivalent also at server shutdown? 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? Bye, Marco. [1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server [2] http://docs.basex.org/wiki/Jobs_Module#Services
CG
Christian Grün16 May 2018 18:48 #
Hi Marco,
Quoted text · Marco Lettere · 3 lines
> 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.
Quoted text · Marco Lettere · 2 lines
> 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.
Quoted text · Marco Lettere · 3 lines
> 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
Quoted text · Marco Lettere · 9 lines
> > Bye, > > Marco. > > [1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server > > [2] http://docs.basex.org/wiki/Jobs_Module#Services >

⚡Generated with XQuery