Hello friendly group.
More questions from a newbie:
Here are the errors I'm seeing in nohup.out when I try to run startup:
./startup: line 11: limit: command not found
./startup: line 12: limit: command not found
./startup: line 13: syntax error near unexpected token `rm'
./startup: line 13: `if ( -e shutdown.txt ) rm -f shutdown.txt'
Here is my startup script (I edited changed line 1 and commented out # if ( "$1" != "" ) set port="$1" ).
#! /bin/bash -f
# Set the port number.
set port = 4020
# if ( "$1" != "" ) set port="$1"
# Change to area directory.
# Set limits.
limit coredumpsize unlimited
limit stacksize 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
# 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.
../src/smaug $port >&! $logfile
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
I'm running ubuntu Linux 2.6.32 i686 GNU/Linux. I saw a forum post to ignore limits (here: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6533),
however, I'm still unable to connect to the mud. I'll keep pecking away at this, but I would appreciate any suggestions.