Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Running the server ➜ Startup using exe or ./startup &

Startup using exe or ./startup &

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Marowi   (65 posts)  Bio
Date Sat 20 Mar 2004 03:28 PM (UTC)
Message
Ok. I have another post going with a related problem I guess (http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3882&page=1)

Basically, I'm using cygwin to compile, and then double clicking the exe to run. If I try to './startup &' it through cygwin I get the following error:

Quote:

./startup: 4: Syntax error: word unexpected (expecting "then")

The startup script is pasted below. Before you ask, I do have sh.exe in the described location, and my exe is in the area directory.
Quote:

#! ../../../../../bin/sh -f

set port = 4000
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

../area/toth $port >&! $logfile

if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 15

end


Thanks
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #1 on Sat 20 Mar 2004 03:36 PM (UTC)
Message
I swear.. before this page had refreshed and posted, I worked out where the problem was.

I remembered seeing Nick post that you should use tcsh instead of any of the others on Windows XP. I can now run it using startup. Still having problems working out the makefile thing (see the other post, PLEASE!)
Top

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.


9,738 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.