Skip to content

Commit

Permalink
done: system.env
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Mar 20, 2017
1 parent 4f9206d commit 37aef36
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/include-cmd-system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
`execute.*` commands
^^^^^^^^^^^^^^^^^^^^^^^^^^

Call operating system commands, possibly catching their output for use within *rTorrent*.

.. note::

The ``.bg`` variants detach the child process from the *rTorrent* parent,
Expand Down Expand Up @@ -80,6 +82,8 @@
`system.*` commands
^^^^^^^^^^^^^^^^^^^^^^^^^^

Commands related to the operating system and the XMLRPC API.

.. glossary::

system.listMethods
Expand Down Expand Up @@ -116,9 +120,23 @@

**TODO**


system.env

**TODO**
.. code-block:: ini
# 0.9.7+ / rTorrent-PS only
system.env = ‹varname› ≫ string ‹env-value›
Query the value of an environment variable,
returns an empty string if ``$varname`` is not defined.

Example:

.. code-block:: ini
session.path.set = (cat, (system.env, RTORRENT_HOME), "/.session")
system.file.allocate
system.file.allocate.set
Expand Down

0 comments on commit 37aef36

Please sign in to comment.