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

  • If you are seeking to execute a shell command, you must pass the shell (for example, cmd.exe or /usr/bin/bash on Unix) to the file parameter and any other parameters to the parameter key.
  • Since Windows Vista, services can no long spawn programs that have a graphical interface. On case you run Corrade as a service, you will not be able to run programs with graphical interfaces. Nevertheless, you can run standard DOS commands, batch files, etc... Which could probably used to stat a program with a graphical interface regardless of the limitations.

secondlife/scripted_agents/corrade/api/progressive/commands/execute.txt ยท Last modified: 2017/02/22 18:27 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.