thin-edge.io Cumulocity IoT shell plugin to process the c8y_Command operation.
- Cumulocity IoT command handler that allows users to execute a command in a shell
Technical summary
The following details the technical aspects of the plugin to get an idea what systems it supports.
| Languages | shell (posix compatible) |
| CPU Architectures | all/noarch. Not CPU specific |
| Supported init systems | N/A |
| Required Dependencies | - |
| Optional Dependencies (feature specific) | - |
The following linux package formats are provided on the releases page and also in the tedge-community repository:
c8y-command-plugin
Warning: This version is compatible with thin-edge.io > 1.0.0, but is now deprecated. Please upgrade to thin-edge.io >= 1.4.0 and use the new tedge-command-plugin instead.
| Operating System | Repository link |
|---|---|
| Debian/Raspian (deb) | |
| Alpine Linux (apk) | |
| RHEL/CentOS/Fedora (rpm) |
tedge-command-plugin
Warning: This version is only compatible with thin-edge.io >= 1.4.0.
| Operating System | Repository link |
|---|---|
| Debian/Raspian (deb) | |
| Alpine Linux (apk) | |
| RHEL/CentOS/Fedora (rpm) |
The Cumulocity IoT shell plugin can be configured with the following properties.
| Property | Value | Description |
|---|---|---|
SHELL_BIN |
string |
Default shell to be used to execute the received command. If left blank, then the shell will be auto-detected. If a non-empty value is used. If the shell does not exist, then an error will be raised. The shell will be used using <shell> -c "<COMMAND>". |
SHELL_OPTIONS |
Whitespace separated list | List of shells to check if they exist. The plugin will use the first detected shell |
The configuration is managed from the following file, and an example of the contents are shown below.
File
/etc/tedge-command-plugin/envContents
SHELL_BIN=""
SHELL_OPTIONS="bash zsh ash dash sh /my/custom/shell/interpreter"