Click to See Complete Forum and Search --> : half life game server "super n00b"


k3v0
06-17-2002, 09:34 PM
ok i am setting up a hl server on my linux box everything is going good so far but i need to create a script like a batch file to contane this

#!/bin/sh
export LD_LIBRARY_PATH=/usr/games/halflife:$LD_LIBRARY_PATH
cd /usr/games/halflife
./hlds_l $*

i am not sure how to go about making it any help will be greatful

[ 17 June 2002: Message edited by: k3v0 ]

[ 18 June 2002: Message edited by: k3v0 ]

z0mbix
06-18-2002, 07:39 AM
just open you favourite text editor and type all that above in there. Save it as scriptname.sh then make it executable with chmod 770 scriptname.sh. Then run it with ./scriptname.sh

k3v0
06-18-2002, 07:43 AM
thanx i am very greatful :)

z0mbix
06-18-2002, 07:47 AM
Originally posted by k3v0:
<STRONG>thanx i am very greatful :)</STRONG>

no problem :) You may want to read man chmod to find out about the permissions on the script if you don't already know.

Icarus
06-18-2002, 10:27 AM
A good site for Counter-Strike administration (works good for Half-Life also :) is www.server.counter-strike.net (http://www.server.counter-strike.net)
Check it out, paruse the forums and you;ll have a great server in now time :)

Icarus
06-18-2002, 10:30 AM
Originally posted by mahdi:
<STRONG>A good site for Counter-Strike administration (works good for Half-Life also :) is server.counter-strike.net (http://server.counter-strike.net)
Check it out, paruse the forums and you;ll have a great server in now time :)</STRONG>

-EDIT- there is no www. in the begining of that :p

ScRapZ_1
06-18-2002, 11:57 AM
You can completely omit that LD_LIBRARY_PATH bit if you copy the libs (as root) into the /usr/lib and typing ldconfig (whatever files have .so at the end is a lib, thats what you need to copy over) - and that will make them a permanat fixture on your system, that way you dont need to export them again. Great huh? :D

TTFN,
Scrapz :p