18 December 2014
execute (Commands) | |
---|---|
Type | Corrade progressive command |
Command | execute |
Description | The execute command can be used to execute a command on Corrade's host operating system. |
Permissions | execute |
Parameters | group , password , file |
Last Changes | Release 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 . |
cmd.exe
or /bin/sh
on Linux) to the file
parameter and any other parameters to the parameter
key.For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.