Page 1 of 1

Terminal [Ubuntu]

Posted: Fri Mar 02, 2007 4:37 pm
by Macint
So I start my servers like this i have a text file with this content

Code: Select all


./bzfs -conf /path/to/config.conf -p 5552 -publicaddr tester123.com:5154 /path/to/map.bzw -srvmsg "##### Welcome ####


and i have a lot of diffrent maps so what hapens is a get a lot of terminal windows so is there a way to have evary thing in one?

Posted: Fri Mar 02, 2007 4:57 pm
by that exploding tank
You can really only run one server per terminal shell. Are you trying to run multiple servers? Also, did you know that you can include everything in your conf file? All of that

Code: Select all

-p 5552 -publicaddr tester123.com:5154 /path/to/map.bzw -srvmsg "##### Welcome ####
can be put into the conf file to save you some typing every time you shut down and restart the server.

Posted: Fri Mar 02, 2007 5:07 pm
by Macint
ohh thx great

Posted: Fri Mar 02, 2007 7:47 pm
by Longhair
by the way, preceding bzfs with "./" means that you would have to be in the directory that the bzfs executable is in.

Just do a plain old:

Code: Select all

bzfs -conf

Posted: Fri Mar 02, 2007 9:49 pm
by meeba
To run multiple BZFS instances with one terminal, just put an ampersand (&) at the end of the shell command.

For example:

Code: Select all

bzfs -conf "/home/bzflag/mycoolserver.conf"&

Posted: Fri Mar 02, 2007 9:53 pm
by CannonBallGuy
This is bad:

Code: Select all

-p 5552 -publicaddr tester123.com:5154
You're running this server on port 5552 but directing players to port 5154... The ports must match.