Yeah, you can usually just ignore the limit errors. Since a core dump in Cygwin would actually be a Windows stackdump, they won't be of any help anyway. The rest of the script will run just fine without them.
SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
Eh, I get the same errors but mine just blows through them anyway. In truth since the limits arn't being set and there are no negitive affects for me just comment out the two limit lines:
#! /bin/csh -f
# Set the port number.
set port = 4000
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
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end
# Record starting time
date > $logfile
date > ../area/boot.txt
# Run SMAUG.
# Check if already running
set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
if ( $matches >= 1 ) then
# Already running
echo Port $port is already in use.
exit 0
endif
../src/smaug $port >&! $logfile
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 5
end
The startup script uses tcsh, if I remember correctly, so limit might be an internal tcsh command. That would explain why bash can't find it, but it wouldn't explain why it stopped working all of a sudden. Unless of course Mopop changed something and isn't telling us. :-)
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
and it runs just fine, but if I type limit at the command line, I get: bash: limit: command not found
so I don't know that it's a matter of a missing package, but rather something reading the limit params in startup as if they were executable lines unto themselves.
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.