Changes

Jump to navigation Jump to search
422 bytes added ,  14:50, 18 April 2018
m
Fixed wiki syntax for links
It gives more details on the command-line options of all BaseX [[Startup]] modes.
Options can be specified multiple times. All Please note that all options are will be evaluated in the given order (in earlier versions, the sequential evaluation was limited to the specified inputs, query files, queries and commands, while all other options were initially set). The standard input can be parsed by specifying a single dash ({{Code|-}}) as argument.
=Standalone=
 
;Launch the console mode:
<pre>
| Executes [[Commands]]:
* Several commands in the input can be separated by semicolons ({{Code|;}}).
* If the specified input is a valid URL or file reference or URL, its content this file will be executed instead. Empty lines and lines starting with the number sign {{Codeevaluated as [[Commands#Command_Scripts|#}} will be ignoredCommand Script]].
|
|
=Server=
 
{{Mark|Updated with Version 9.0:}} {{Code|-c}} flag now accepts valid URLs and file references.
 
;Launch the server
<pre>
BaseX [Server]
Usage: basexserver [-cdinpSz] [stop]
stop Stop running server -c<cmdsinput> Execute initial database commandsfrom file or string -d Activate debugging mode -n<name> Set host the server is bound to -p<port> Set server port -S Start as service -z Suppress logging
</pre>
|- valign="top"
| {{Code|-c&lt;cmd&gt;}}
| Launches database Executes [[Commands]]:* Several commands before in the server itself is started. Several commands input can be separated by semicolons ({{Code|;}}).* If the specified input is a valid URL or file reference, this file will be evaluated as [[Commands#Command_Scripts|Command Script]].
|
|
|- valign="top"
| {{Code|-S}}
| Starts the server as service (i.e., in the background). Use [[YAJSW]], or start BaseX as an ordinary background process, to get more options.
|
|
=HTTP Server=
 
{{Mark|Introduced with Version 9.0:}} {{Code|-c}} flag accepts commands and valid URLs and file references.
;Launch the HTTP server:
BaseX [HTTP]
Usage: basexhttp [-dhlnpPRUWz] [stop]
stop Stop running server -c<input> Execute commands from file or string -d Activate debugging mode -h<port> Set port of HTTP server -l Start in local mode -n<name> Set host name of database server -p<port> Set port of database server -P<pass> Specify user password -s<port> Specify port to stop HTTP server -S Start as service -U<name> Specify user name -z Suppress logging
</pre>
|
|
|- valign="top"
| {{Code|-c&lt;cmd&gt;}}
| Executes [[Commands]]:
* Several commands in the input can be separated by semicolons ({{Code|;}}).
* If the specified input is a valid URL or file reference, this file will be evaluated as [[Commands#Command_Scripts|Command Script]].
|
|
| {{Code|-c"open database"}}
|- valign="top"
| {{Code|-d}}
| {{Code|1984}}
| {{Code|-p9998}}
|- valign="top"
| {{Code|-P&lt;pass&gt;}}
| Specifies a user password, which will be used by the HTTP services to open a new session. If this flag is omitted, and if {{Code|-U}} was specified, the password will be requested on command line. ''Warning'': when the password is specified with this flag, it may get visible to others.
| <code>[[Options#PASSWORD|PASSWORD]]</code>
|
| {{Code|-Uadmin -Padmin}}
|- valign="top"
| {{Code|-s&lt;num&gt;}}
|- valign="top"
| {{Code|-S}}
| Starts the server as service (i.e., in the background). Use [[YAJSW]], or start BaseX as an ordinary background process, to get more options.
|
|
=Changelog=
 
;Version 9.0
 
* Added: BaseXHTTP, command-line option {{Code|-c}}.
* Updated: BaseXHTTP, command-line option {{Code|-c}}, additionally accepts valid URLs and file references.
;Version 8.2
administrator, editor
43

edits

Navigation menu