*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
This commit is contained in:
mingchen
2007-08-15 19:08:27 +00:00
parent 94dded470d
commit ae20503dae
4 changed files with 40 additions and 2 deletions

View File

@@ -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<string>(ref tempstrarray, tempstrarray.Length - 1);