I've already gone over this with a number of people, including Greven. Nothing has worked so far.
When I try to use the startup script, I get this:
My startup script is as follows:
I even tried getting a startup script from another mud on the server (I help out on their mud too) - theirs works for them, but not for me.
I have already tried removing the '-f' from the csh, and I enter csh when I type 'csh', so it's definitely there.
Please help, I'm stumped.
When I try to use the startup script, I get this:
Quote:
-sh-2.05b$ ./startup &
[1] 21734
'sh-2.05b$ Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
[1]+ Done(1) ./startup
-sh-2.05b$
-sh-2.05b$ ./startup &
[1] 21734
'sh-2.05b$ Unknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
[1]+ Done(1) ./startup
-sh-2.05b$
My startup script is as follows:
#! /bin/csh -f
set port = 8000
if ( "$1" != "" ) set port="$1"
cd ../area
nohup
nice
#limit stack 1024k
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end
date > $logfile
date > ../area/boot.txt
set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
if ( $matches >= 1 ) then
echo Port $port is already in use.
exit 0
endif
../src/toto $port >&! $logfile
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 10
endI even tried getting a startup script from another mud on the server (I help out on their mud too) - theirs works for them, but not for me.
I have already tried removing the '-f' from the csh, and I enter csh when I type 'csh', so it's definitely there.
Please help, I'm stumped.