I have a script on my server, that when it crashes It restartes and send me an 
email, but it wont send me the mail... anyone know why?


This is my script:

#!/bin/sh
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
CMD="./cs27016_run -game cstrike +mapcyclefile mapcycle.txt +sv_lan 0 -nomaster 
\
+maxplayers 12 +motdfile motd.txt -port 1337 \ exec autoexec.cfg
+map de_aztec"

while ((1)); do
        $CMD
        retval=$?
        if test $retval -eq 0 ; then
            break; # if 0 is returned then just quit
        fi
        date=`date`; echo "Server 27016 DIED\! $date" | mail -s "server 27016 
died" [EMAIL PROTECTED]
        sleep 20s
        echo ======================================
        echo ========== HL DIED ====================
        echo ========== RESTARTING =================
        echo =======================================
done

This is the error message in /var/mail/cs:

>From MAILER-DAEMON Sun May 15 11:34:38 2005
Return-path: <>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Sun, 15 May 2005 11:34:38 +0200
Received: from Debian-exim by cs17.novanett.no with local (Exim 4.50)
        id 1DXFWA-0001Tb-8k
        for [EMAIL PROTECTED]; Sun, 15 May 2005 11:34:38 +0200
X-Failed-Recipients: [EMAIL PROTECTED]
Auto-Submitted: auto-generated
From: Mail Delivery System <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Mail delivery failed: returning message to sender
Message-Id: <[EMAIL PROTECTED]>
Date: Sun, 15 May 2005 11:34:38 +0200

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [EMAIL PROTECTED]
    Mailing to remote domains not supported

------ This is a copy of the message, including all the headers. ------

Return-path: <[EMAIL PROTECTED]>
Received: from cs by cs17.novanett.no with local (Exim 4.50)
        id 1DXFWA-0001TY-7h
        for [EMAIL PROTECTED]; Sun, 15 May 2005 11:34:38 +0200
To: [EMAIL PROTECTED]
Subject: server 27016 died
Message-Id: <[EMAIL PROTECTED]>
From: cs <[EMAIL PROTECTED]>
Date: Sun, 15 May 2005 11:34:38 +0200

Server 27016 DIED\! s�n mai 15 11:34:38 CEST 2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 5/13/2005


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to