Skip to content

Command

Command object is used to execute shell commands.

Basic Usage

import { command } from "sdk/platform";
import { response } from "sdk/http";

let result = command.execute("echo 'hello dirigible!'");

response.println("[Result]: " + result);
response.flush();
response.close();

Functions


Function Description Returns
execute(command, add, remove) Executes the command string and returns the result from the execution or exception message. Passing an object as add parameter sets the corresponding variables. remove parameter is used to unset the variables string