nohup and quake2 server

nohup and quake2 server

Post by Vero Anderso » Sat, 11 Apr 1998 04:00:00



Hi,

I'm running Redhat 5 and a dedicated quake2 server, which I can't telnet
to most of the time, so I added the lines:

cd /home/quake2
nohup ./quake2 +set dedicated 1 +set game ctf +exec server.cfg &

to my /etc/rc.d/rc.local, which starts up and runs the server just fine.
My main question is this:  nohup should append to the file
/home/quake2/nohup.out all the output of the server, and when I come in
the next day there IS a nice juicy log file for me to browse through.  But
when I'm sitting here at the computer and I notice the Q2 server is active
(it's cpu percentage jumps, a sure sign that people are on it), the
nohup.out file is empty!  (it exists, with a time and date of the last
login, but size 0)  When does this get updated, or is nohup putting the
output somewhere else?  Any info would be great!

If you made it this far, here's a *: Any suggestions for a better
way to run the server, so I could take over the output/input when I AM at
the server? I think screen would do it, but I need a command line to run
screen and detach the server in one line so that I can put it in my
rc.local file and not have to do it manually..

Thanks!!

Vero Anderson

 
 
 

nohup and quake2 server

Post by Jason Zwola » Wed, 15 Apr 1998 04:00:00


I'm having a similar problem as you. I found that anytime you try to
redirect the output of Quake II you will not get any output. Apparently
Quake II doesn't output anything if you try to redirect the output.
Furthermore I tried setting the nostdout variable to 1 and I also tried
setting it to 0. Neither one does anything. I've set it on the command
line and I've set it after the server started. I'm still working on this
problem and I have a few things to try before I declare Quake II as
being in the same class as '95.

JTLYK, I've written a couple java programs that together allow you to
send commands to and receive output from the Quake II server remotely. I
will eventually post them on my web site (listed bellow) but first I
want to test them. To do that, I need to be able to redirect the output
of Quake II.
--
May the Source be with you,
Jason Zwolak
homepage: http://gravity.bevc.blacksburg.va.us/

 
 
 

1. When is NOHUP not NOHUP?

Hello world,

When connecting to remote servers (Solaris/ksh) we set the
environment up for 'nohup' and start our multi-hour job
(redirecting stdout/stderr to a file) in the background.

Should that window 'disappear' (due to network instability)
then the job dies; should we just 'logout' the job keeps
running.

Our understanding is that nohup and redirecting stdout/stderr
and backgrounding should keep the job alive regardless.

Incidentally there is no 'tee' command in the script.

% nohup pt_shell -f ../scripts/m12_master.pt > m12_master.log 2>&1 &

Thanks,
/Ed

2. mainframe/sun

3. nohup xterm doesn't nohup -- why?

4. Adaptec aha154x SCSI problems

5. to nohup or not to nohup - that is the question

6. compex enet32vl drivers

7. nohup not generating/updating nohup.out from cron

8. Redhat, qt2 and koffice

9. Matrox Mystique ands X.

10. Linux Quake2 CTF server questions

11. anyone managed to run Quake2 with vesaFB server ?

12. Quake2 or 3 server on FreeBSD 4.1

13. freeBSD 4.1 and deicated Quake2 and UT servers