OsConsoleCommand

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
threat_level = Severe
|- valign="top"
+
|
|'''Threat Level''' || Severe
+
function_syntax = <source lang="lsl">
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
osConsoleCommand(string command)  
 
osConsoleCommand(string command)  
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">
+
ossl_example = <source lang="lsl">
 
default
 
default
 
{
 
{
Line 19: Line 17:
 
</source>
 
</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.
|}
+
|  
 
+
additional_info = This function allows an LSL script to directly execute a command to opensim's console.  
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.  
 
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.  
Line 30: Line 27:
  
 
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.
 
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.
 
+
|
[[Category:OSSL Functions]]
+
}}

Revision as of 14:55, 12 June 2011

osConsoleCommand(string command)
No descriptions provided
Threat Level Severe
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
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.

Notes
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.

Personal tools
General
About This Wiki