Elektra  0.8.21
Plugin: shell

The shell plugin executes shell commandos after set, get or error.

The configuration keys

are used to store the shell commands.

The configuration keys

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