Using startup

Posted by Firedraconian on Thu 29 Jul 2004 09:53 PM — 6 posts, 25,286 views.

USA #0
I'm on Number 14 under

http://www.gammon.com.au/smaug/howtocompile.htm#example

and it's not working for some reason.

$ tcsh startup &
[1] 3496

$ limit: Command not found.
Australia Forum Administrator #1
Maybe "limit" isn't installed. Try commenting out those lines, I don't think they are critical.
USA #2
Probably a stupid question, but how exactly do I do that?
Australia Forum Administrator #3
Edit the file "startup" with a text editor. The start will look something like this:


#! /bin/csh -f

# Set the port number.
set port = 9500
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
nohup
limit stacksize 1024k
limit coredumpsize unlimited
if ( -e shutdown.txt ) rm -f shutdown.txt


The lines beginning with "#" are comments. So, put "#" in front of the "limit" lines.
USA #4
Also, it may be running normally but in the background so you don't see it in the Cygwin shell. The reason I say that is because when I enter ../src/startup from the area file, I get the limit error too, but a few seconds later, my firewall tells me the server is going active and I can log into the game. Personally, I prefer to use the command ../src/smaug to start the game manually so I can see what processes are taking place in the shell. The only time I use startup is if I need to use grep or something while the game is running. Just my two cents worth.
Amended on Fri 30 Jul 2004 01:50 PM by Buck
USA #5
Thanks for the help, it works fine now. :)