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 /bin/sh on Linux) 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/commands/execute.txt · Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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