[mohaa] console reattatch
charles 'wokka' goldsmith
wokka at justfamily.org
Sat Jul 20 09:50:46 EDT 2002
I use a much simpler script than what you see in the other replies...
#!/bin/sh
if `killall -CHLD "q3ded2" >/dev/null 2>&1`; then
exit 0
fi
"/quake3-2"
this script will only run once... it checks for process 'q3ded2' (same as
looking for the process in ps aux) and if it doesn't find it, will run
/quake3-2
i run this once every 5 minutes in cron... and have one of these for each of
my game servers... each server has to have a unique executable name... when
why i copied the q3ded to q3ded2
----- Original Message -----
From: "Damon" <damon at daycross.com>
To: <mohaa at icculus.org>
Sent: Saturday, July 20, 2002 4:37 AM
Subject: RE: [mohaa] console reattatch
> Lo.
> Thn y'all - very informative learnt a few things. now i need to learn how
to
> write a restarting script... anyone got a faq on that :)
> Damon
>
>
> -----Original Message-----
> From: Chunky Kibbles [mailto:chunky at icculus.org]
> Sent: 20 July 2002 09:08
> To: mohaa at icculus.org
> Subject: Re: [mohaa] console reattatch
>
>
> On Fri, Jul 19, 2002 at 07:48:19PM -0400, Ryan C. Gordon wrote:
> >
> > > Two questions: First, is screen -d and screen -r switches for detach
and
> > > remote? Also, I am trying to execute this from my command prompt but
> screen
> >
> > screen is a separate program...there are probably redhat RPMs for it
> > somewhere (very possibly on the RedHat install discs and not installed
by
> > default).
>
> I've missed the rest of this thread, but I wrote a brief tutorial on
> screen(1) if it help:
> http://icculus.org/~chunky/writing/screen+cmdline
>
> It starts about 35 lines down...
>
> Gary (-;
>
>
More information about the Mohaa
mailing list