Author Topic: Problem w/ Greek2me's Linux server script [RESOLVED]  (Read 988 times)

Once I execute cd then /bin/blockland-server/ ./script.sh it says Starting server 0 and whenever I type screen then -x blockland-server0 it doesnt give me the console. I tried just screen -x blockland-server0 it says There is no screen to be attached matching blockland-server0.
« Last Edit: November 24, 2014, 03:03:46 PM by SQUAR3D »

try screen -r and then hit tab and see if anything comes up, thats for detached sessions though so idk

try screen -r and then hit tab and see if anything comes up, thats for detached sessions though so idk
nope, that doesn't work


Does screen -ls not list any screens?

i've had this issue before

try this modified version
https://dl.dropboxusercontent.com/u/11058668/vos/blockland-server

you may have to use something like dos2unix to convert the line endings

This likely means that it can't find your Blockland installation.

Place all of the server files (including Blockland.exe) in ~/blockland-server/
Place the script in ~/bin (or some other location in $PATH) with the name blockland-server.

Then just run blockland-server.


one thing to note is that on this line:
Code: [Select]
while getopts "ac:g:lnp:" opt; do
there should probs be a colon after n
i scratched my head for a long time trying to figure out why my system wasn't using server numbers properly

still no luck with the screen
here's what im doing, if im doing it wrong tell me

I just posted an improved version of the script which is more reliable and includes error handling.
http://forum.blockland.us/index.php?topic=254544.0

one thing to note is that on this line:
Code: [Select]
while getopts "ac:g:lnp:" opt; do
there should probs be a colon after n
i scratched my head for a long time trying to figure out why my system wasn't using server numbers properly

Oops! Fixed.

still no luck with the screen
here's what im doing, if im doing it wrong tell me

Yes, you're doing it wrong. Follow the instructions in this topic exactly. http://forum.blockland.us/index.php?topic=254544.0

Yes, you're doing it wrong. Follow the instructions in this topic exactly. http://forum.blockland.us/index.php?topic=254544.0
THANK YOU! It's working :D