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
➜ Cygwin SWR Copyover
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Marowi
(65 posts) Bio
|
| Date
| Reply #15 on Sun 21 Mar 2004 02:11 PM (UTC) |
| Message
| Well, cygwin wouldn't run the startup, because I didn't download the tcsh shell (because your guide doesn't say to ;-) ). I downloaded tsch and now run it via startup.
Here's my startup script:
#! ../../../../../bin/tcsh -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 10
end
and here's my makefile
CC = gcc
PROF =
NOCRYPT =
#Uncomment the next line if you want request support
#DBUGFLG = -DREQUESTS
DEBUG = -DDEBUG -DMC_MEM_INTRO -DMEMORY_HASH=101 -ggdb
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
#L_FLAGS = $(PROF) -lcrypt
O_FILES = (All O files in here)
C_FILES = (All C files in here)
H_FILES = mud.h bet.h
all:
make toth
# rm -f $(H_FILES)
toth: $(O_FILES)
rm -f ../area/toth1.exe
$(CC) $(L_FLAGS) -o ../area/toth1.exe $(O_FILES) -lm
chmod g+w ../area/toth1.exe
chmod g+w $(O_FILES)
rm -f ../area/toth.exe
cp ../area/toth1.exe ../area/toth.exe
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f $(O_FILES)
So.. what do you suggest? I implement a copyover code that, when I type copyover, compiles - if there are no errors - ends toth, copies toth1 to toth and executes toth?
Where does the descriptor information get stored for those currently connected in that process? | | Top |
|
| Posted by
| Marowi
(65 posts) Bio
|
| Date
| Reply #16 on Sun 28 Mar 2004 09:00 AM (UTC) |
| Message
| Whilst I personally see it as a defeat, I'm close to securing a Linux server, so this topic is void for me.. although.. I know for a fact that many others would like to know how it is done, and if you get bored or something.. yeah. Shouldn't take /you/ too long to work it out, but I got as close as I could (not that close..)
Thanks for your time anyway. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #17 on Wed 31 Mar 2004 06:05 AM (UTC) |
| Message
| In Cygwin you shouldn't need to do this:
../../../../../bin/tcsh
It should know where the bin things are (via the current path).
As for copyover, I have commented before that I think it is more effort than it is worth, however if you can get it to work, very good. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
60,908 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top