RemoteAdmin:admin console command

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Robot: Cosmetic changes)
Line 1: Line 1:
 
<div style="background-color:#ffa0a0; padding:15px">
 
<div style="background-color:#ffa0a0; padding:15px">
<b>Caution ! This function gives full permission to execute all available console commands!</b>
+
'''Caution ! This function gives full permission to execute all available console commands!'''
 
</div>
 
</div>
  

Revision as of 21:05, 3 March 2012

Caution ! This function gives full permission to execute all available console commands!

admin_console_command remotely allows to send commands to the console


Contents

Enabling admin_console_command

To get this, you must explicitly specify "all" or enable the function in the [RemoteAdmin] section.

enabled_methods = admin_console_command,...


Parameters

Required Parameters

These parameters are required

parameter Description Values
command console command


Optional Parameters

No optional parameters


Returned Parameters

Returned Parameters

No parameters returned by Remote Admin


Error messages

No error messages


Notes

Example

PHP

<?php
 
// Including the RemoteAdmin PHP class.
include('RemoteAdmin.php');
 
// Instantiate the class with parameters identical to the Python example above
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');
 
// Invoke admin_console_command (multiple parameters)
$parameters = array('command' => 'alert welcome to my region');
$myRemoteAdmin->SendCommand('admin_console_command', $parameters);
?>

RemoteAdmin RemoteAdmin:Commands

Personal tools
General
About This Wiki