RemoteAdmin:admin console command

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "<div style="background-color:#ffa0a0; padding:15px"> <b>Caution ! This function gives full permission to execute all available console commands!</b> </div> '''admin_console_comm...")
 
m (PHP: Fixed broken Google Code link, replacing with internal page)
 
(5 intermediate revisions by 4 users not shown)
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>
  
Line 46: Line 46:
 
== Example ==
 
== Example ==
 
=== PHP ===
 
=== PHP ===
 +
This example needs the RemoteAdmin PHP Class file available [[RemoteAdmin:RemoteAdmin_Class|here]].
 +
 
<source lang="php">
 
<source lang="php">
 
<?php
 
<?php
Line 61: Line 63:
 
</source>
 
</source>
  
[[Category:Users]]
+
 
[[Category:Support]]
+
 
[[Category:Tech Reference]]
+
[[Category:RemoteAdmin]]
[[Category:Help]]
+
[[Category:RemoteAdmin Commands]]
[[Category:Configuration]]
+
[[Category:Getting_Started]]
+
[[Category:Development]]
+

Latest revision as of 11:35, 16 March 2021

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

admin_console_command remotely allows to send commands to the console


Contents

[edit] 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,...


[edit] Parameters

[edit] Required Parameters

These parameters are required

parameter Description Values
command console command


[edit] Optional Parameters

No optional parameters


[edit] Returned Parameters

[edit] Returned Parameters

No parameters returned by Remote Admin


[edit] Error messages

No error messages


[edit] Notes

[edit] Example

[edit] PHP

This example needs the RemoteAdmin PHP Class file available here.

<?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);
?>
Personal tools
General
About This Wiki