From ae20503dae765b850d6acf6e30220b9688f30cac Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 15 Aug 2007 19:08:27 +0000 Subject: *Added the ability to run commands after all regions have started up *By default, it is set to startup_commands.txt. Simply add a list of commands separated by a new line to be run or change the file by changing the path of a startup commands file in OpenSim.ini --- OpenSim/Framework/Console/LogBase.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Console/LogBase.cs') diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs index 2b831fe..5f16303 100644 --- a/OpenSim/Framework/Console/LogBase.cs +++ b/OpenSim/Framework/Console/LogBase.cs @@ -409,9 +409,15 @@ namespace OpenSim.Framework.Console public void MainLogPrompt() { - string[] tempstrarray; + string tempstr = this.CmdPrompt(this.componentname + "# "); - tempstrarray = tempstr.Split(' '); + MainLogRunCommand(tempstr); + } + + public void MainLogRunCommand(string command) + { + string[] tempstrarray; + tempstrarray = command.Split(' '); string cmd = tempstrarray[0]; Array.Reverse(tempstrarray); Array.Resize(ref tempstrarray, tempstrarray.Length - 1); -- cgit v1.1