<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Something like this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>codstart.sh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;start)<BR>&nbsp;&nbsp; echo 
"Starting $DESC: $NAME"<BR>&nbsp;&nbsp; cd $DIR<BR>&nbsp;&nbsp; screen -d -m -S 
$NAME $COMMAND</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;stop)<BR>&nbsp;&nbsp; if [[ `screen -ls |grep 
$NAME` ]]<BR>&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n 
"Stopping $DESC: $NAME"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kill `screen -ls 
|grep $NAME |awk -F . '{print $1}'|awk '{print 
$1}'`<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " ... done."<BR>&nbsp;&nbsp; 
else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Coulnd't find a running 
$DESC"<BR>&nbsp;&nbsp; fi<BR>&nbsp;&nbsp; ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;restart)<BR>&nbsp;&nbsp; if [[ `screen -ls 
|grep $NAME` ]]<BR>&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
echo -n "Stopping $DESC: $NAME"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kill 
`screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print 
$1}'`<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " ... done."<BR>&nbsp;&nbsp; 
else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Coulnd't find a running 
$DESC"<BR>&nbsp;&nbsp; fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; echo -n "Starting $DESC: 
$NAME"<BR>&nbsp;&nbsp; cd $DIR<BR>&nbsp;&nbsp; screen -d -m -S $NAME 
$COMMAND<BR>&nbsp;&nbsp; echo " ... done."<BR>&nbsp;&nbsp; ;;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;*)<BR>&nbsp;&nbsp; echo "Usage: $0 
{start|stop|restart}"<BR>&nbsp;&nbsp; exit 1<BR>&nbsp;&nbsp; 
;;<BR>esac</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>beside doing ./cod_lnxded</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>