table of contents
| md_src_plugins_shell_README(3elektra) | Elektra | md_src_plugins_shell_README(3elektra) |
NAME¶
md_src_plugins_shell_README - Plugin: shell
- infos = Information about the shell plugin is in keys below
- infos/author = Thomas Waser thomas.waser@libelektra.org
- infos/licence = BSD
- infos/needs =
- infos/provides =
- infos/placements = postgetstorage postcommit postrollback
- infos/status = nodep configurable preview unfinished
- infos/description = executes shell commands
The shell plugin executes shell commandos after set, get or error.
The configuration keys
- execute/set
- execute/get
- execute/error
are used to store the shell commands.
The configuration keys
- execute/set/return
- execute/get/return
- execute/error/return
can be compared against the return values of the shell commandos.
Example¶
% cat /tmp/log cat: /tmp/log: No such file or directory % kdb mount /tmp/test.ini system/shelltest ini array= shell 'execute/set=echo set >> /tmp/log,execute/get=echo get >> /tmp/log,execute/get/return=0' % kdb set system/shelltest Create a new key system/shelltest with null value % cat /tmp/log get set.fi
| Mon Jan 15 2018 | Version 0.8.20 |