a newbie unix question

Posted by Ithildin on Thu 10 Jun 2004 06:22 PM — 7 posts, 23,333 views.

USA #0
ok, i just put my mud on a host. they had initially installed smaugfuss and then i uploaded my smaug into the files. now, i'm trying to switch over to start using my code. i typed ps ux to kill the exe. i killed it, but now i don't konw what commands to use to get my mud to run in it's place. i know this is probably a dumb question, but i haven't figured it out. could anyone help? thanks

Ithildin
USA #1
Use the startup script from the src/ directory. Here's what I type:

nohup ./startup 5432 > nohup.out 2>&1 &

Replace 5432 with whatever port you're running on.
USA #2
alright, i tried that:


[ty39etc@slayer src]$ nohup ./startup 3160 > nohup.out 2>&1 &
[1] 7906
[ty39etc@slayer src]$ ps ux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
ty39etc   6310  0.9  0.1  2524 1032 ?        S    14:07   0:18 /bin/csh -f /home
ty39etc   7368  0.0  0.1  2436 1308 pts/4    S    14:24   0:00 -bash
ty39etc   7906  1.5  0.1  2928 1232 pts/4    SN   14:39   0:00 /bin/csh -f ./sta
ty39etc   7921  0.0  0.0  1884  608 ?        S    14:39   0:00 sleep 15
ty39etc   7929  0.1  0.0  1892  612 pts/4    SN   14:39   0:00 sleep 15
ty39etc   7930  0.0  0.0  2600  676 pts/4    R    14:39   0:00 ps ux
[ty39etc@slayer src]$


there's what i got. it still didn't start up.
USA #3
Could you post your startup script?

I think it's trying to run... look at:
ty39etc   7906  1.5  0.1  2928 1232 pts/4    SN   14:39   0:00 /bin/csh -f ./sta


Maybe your game is failing to start. Can you start it without the startup script?

Try just:

./smaug 3160

(or whatever your executable is called)
USA #4
no, it won't start. how do i check out my startup script.


i know i should get more knowledge on this, but i figured the way to learn was to jump in and give it a try. only way to learn is through experience.
USA #5
here's what i received from one of ther hosts:

Quote:

You'll need to kill the smaugfuss process to free up the port.
ps ux will show you the processes running under your account
kill -9 PID# you'll need to kill both the startup process and the smaug process

Compile your code, set the port # and then start it up. If it is 'sleeping', kill it and check the logfiles.



i killed the process and sleeping, then tried to start up mine and it didn't work.
USA #6
i found out that the startup was trying to read smaug instead of smaug.exe which my makefile was still making. so i changed it and it's all good now. thanks for the help K

Ithildin