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 ➜ a newbie unix question

a newbie unix question

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


Posted by Ithildin   USA  (262 posts)  Bio
Date Thu 10 Jun 2004 06:22 PM (UTC)
Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 10 Jun 2004 07:29 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #2 on Thu 10 Jun 2004 07:40 PM (UTC)
Message
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.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Thu 10 Jun 2004 07:45 PM (UTC)
Message
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)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #4 on Thu 10 Jun 2004 07:49 PM (UTC)
Message
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.
Top

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #5 on Thu 10 Jun 2004 08:10 PM (UTC)
Message
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.
Top

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #6 on Thu 10 Jun 2004 08:23 PM (UTC)
Message
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
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.


20,865 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.