Spaces in description?
#1
Resolved, was not updated

I'm using this tweaked example script because I don't need anything special right now:

#!/bin/sh
#
# example AssaultCube-Server launch script
# by MeatROme - see http://assault.cubers.net/wiki/Server_setup
# naturally also check your local documentation (docs) folder in the game-installation directory

# how many clients can connect?
CLIENTS=16

# password for admin access:
ADMINPASS=*****

# disconnect when frag-count is ..
KILLLIMIT=-2

# server description
DESC="\f7.Fs*|\f524HR TOSOK \f3KNIFE ONLY"

# MOTD definition - WYSIWYG :)
MOTD="\f7FARSHOT \f324HR TOSOK\nKNIFE ONLY\nKNIFE ONLY"

TS=$(date +%Y%m%d_%H%M%S)
TSH=$(date +%H:%M:%S\ %d.%m.%y)

#
# run the server:
#
assaultcube-server -x$ADMINPASS -k$KILLLIMIT -c$CLIENTS -n"$DESC" -o"$MOTD" > ServerLog_$TS 2>&1

When I connect to the server, I see that the MOTD and server description are cut off at the first space.

I have tried:

Remove color codes
Switch to single quotes in variable
Switch to single quotes in command argument at bottom
Add escaped double quotes around the variable
Add escaped single quotes around the variable
Escape the spaces

Same issue on all

Any idea?
Thanks given by:


Messages In This Thread
Spaces in description? - by vonunov - 12 Jul 10, 07:13AM
RE: Spaces in description? - by jamz - 12 Jul 10, 08:14AM
RE: Spaces in description? - by flowtron - 13 Jul 10, 09:14AM
RE: Spaces in description? - by vonunov - 13 Jul 10, 09:15AM
RE: Spaces in description? - by flowtron - 13 Jul 10, 09:29AM
RE: Spaces in description? - by vonunov - 13 Jul 10, 09:50AM