Skip to content
Snippets Groups Projects
Commit e2f7004b authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

DOC: Add link to diagnostics.py

parent 6840d5e0
Branches
Tags
1 merge request!39DOC: add doc on serverside
Pipeline #18136 failed
......@@ -2,17 +2,18 @@
Server Side Scripting
=====================
The administrator may store regularly needed scripts, e.g. for computing a standardized analysis, on
the same machine as the CaosDB server, "on the server side", where they can be run directly by the
server.
The administrator may store regularly needed scripts, e.g. for computing a
standardized analysis, on the same machine as the CaosDB server, "on the server
side", where they can be run directly by the server.
The execution of those scripts can be initiated using the Python client, or the web interface.
The execution of those scripts can be initiated using the Python client, or the
web interface.
Call a Script
~~~~~~~~~~~~~
If you have access to the server and sufficient permissions to run the script, execution is fairly
simple:
If you have access to the server and sufficient permissions to run the script,
execution is fairly simple:
.. code:: python
......@@ -35,9 +36,12 @@ permissions and changes are logged as if they were done by you directly.
Testing it
~~~~~~~~~~
You can try this out using for example the ``diagnostics.py`` script (it is also available on
https://demo.indiscale.com). The script returns information about the server in JSON format. You can
do for example the following:
You can try this out using for example the ``diagnostics.py`` script (it is part
of the `CaosDB server repository
<https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/blob/main/scripting/bin/administration/diagnostics.py>`_
and is also available on https://demo.indiscale.com). The script returns
information about the server in JSON format. You can do for example the
following:
.. code:: python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment