<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Something like this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>codstart.sh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--------------------------- CUT HERE
--------------------------</FONT></DIV>
<DIV><FONT face=Arial
size=2>clear<BR>PATH=/bin:/usr/bin:/sbin:/usr/sbin<BR>NAME=codsrv<BR>DESC="COD
dedicated server"</FONT></DIV>
<DIV><FONT face=Arial size=2>COMMAND="/games/cod/cod_lnxded +set logfile 2 +set
dedicated 2 +set netp_ip 62.216.16.89 +ip 62.216.16.89 +set ttycon 0 +exec
XXXX.cfg"<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>case "$1" in<BR> start)<BR> echo
"Starting $DESC: $NAME"<BR> cd $DIR<BR> screen -d -m -S
$NAME $COMMAND</FONT></DIV>
<DIV><FONT face=Arial size=2> ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> stop)<BR> if [[ `screen -ls |grep
$NAME` ]]<BR> then<BR> echo -n
"Stopping $DESC: $NAME"<BR> kill `screen -ls
|grep $NAME |awk -F . '{print $1}'|awk '{print
$1}'`<BR> echo " ... done."<BR>
else<BR> echo "Coulnd't find a running
$DESC"<BR> fi<BR> ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> restart)<BR> if [[ `screen -ls
|grep $NAME` ]]<BR> then<BR>
echo -n "Stopping $DESC: $NAME"<BR> kill
`screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print
$1}'`<BR> echo " ... done."<BR>
else<BR> echo "Coulnd't find a running
$DESC"<BR> fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> echo -n "Starting $DESC:
$NAME"<BR> cd $DIR<BR> screen -d -m -S $NAME
$COMMAND<BR> echo " ... done."<BR> ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> *)<BR> echo "Usage: $0
{start|stop|restart}"<BR> exit 1<BR>
;;<BR>esac</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exit 0<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>--------------------------- UNTIL HERE
--------------------------</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Quint</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=rene.devries@home.nl href="mailto:rene.devries@home.nl">Rene de
Vries</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, December 12, 2003
08:20</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [cod] Linux Startup
scripts?</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>create a file</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff size=2>ex:
vi start</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>paste this "screen -A -m -d -S cod ./cod_lnxded
+map_rotate"</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>write and quit vi</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>chmod +777 start</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2>execute: ./start</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff size=2>ctrl
a+d to leave the screen</FONT></SPAN></DIV>
<DIV><SPAN class=812481807-12122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Oorspronkelijk bericht-----<BR><B>Van:</B> MikeyDee
[mailto:mikeydee@usd.wli.net]<BR><B>Verzonden:</B> vrijdag 12 december 2003
0:43<BR><B>Aan:</B> <A
href="mailto:cod@icculus.org">cod@icculus.org</A><BR><B>Onderwerp:</B> [cod]
Linux Startup scripts?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>anyone have linux startup script ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>beside doing ./cod_lnxded</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I was trying to add +set commands to get it
automated but seem to fail on me?</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>