OsConsoleCommand
From OpenSimulator
Line 19: | Line 19: | ||
'''Example:''' | '''Example:''' | ||
− | <source lang="lsl">osConsoleCommand("login disable");</source> | + | <source lang="lsl"> |
+ | default | ||
+ | { | ||
+ | touch_start(integer num_detected) | ||
+ | { | ||
+ | osConsoleCommand("login disable"); | ||
+ | llSay(0, "Logins are disabled"); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
This would issue a Login Disable command on the console to prevent logins. | This would issue a Login Disable command on the console to prevent logins. | ||
Revision as of 16:16, 5 June 2011
Syntax:
osConsoleCommand(string command)
Returns:
Nothing
Threat level:
Severe
Description:
This function allows an LSL script to directly execute a command to opensim's console. There are no security checks, so it can do anything a user with access to the command console could do, such as changing the avatar passwords, deleting sims, changing the terrain, and just about everything else. This command represents the highest security threat of any OSSL function, giving it a threat level of Severe.
Do not use or allow this function unless you are absolutely sure of what you're doing! It is advisable to allow the use of this function for particular users only. See Threat level for more information on how to do this.
Example:
default { touch_start(integer num_detected) { osConsoleCommand("login disable"); llSay(0, "Logins are disabled"); } }
This would issue a Login Disable command on the console to prevent logins.