Execute

18 December 2014

  • Release 7.32 - added.
execute (Commands)
TypeCorrade progressive command
Commandexecute
DescriptionThe execute command can be used to execute a command on Corrade's host operating system.
Permissionsexecute
Parametersgroup, password, file
Last ChangesRelease 7.32 - added.

The execute command can be used to execute a command on Corrade's host operating system. After the command is executed, Corrade returns the standard output in the key output and the standard error in the key error.

Note that this command is protected by the separate execute permission and you should be very careful to what group you grant this permission because they will have full-access to the entire file-system where Corrade is hosted.

Command Required Parameters Required Corrade Permissions Example
execute group, password, file execute
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Show ipconfig information under Windows
            "command", "execute",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "file", "cmd.exe",
            "parameter", "/C ipconfig",
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Description
parameter The parameters passed to the command in file.

Notes