Am 2005-04-18 17:26:26, schrieb Al Bogner: > PINGERGEBNIS=`ping -c 1 "$MAILSV" 2>&1` > PINGOK=`echo "$PINGERGEBNIS" | grep " 0% packet loss"` Bist Du sicher, das dies funktioniert ? Also ich verende einfach Deinen dort lauschenden MTA und pingen kannste 100 Jahre und kriegst keine lost packages. > if [ -z "$PINGOK" ];then > echo "$PINGERGEBNIS" | \ > gpg --local-user $SENDER --no-secmem-warning --quiet \ > --textmode --clearsign --trusted-key "$LONGKEYID" | \ > /usr/bin/mail -r $SENDER -s "KEINE INTERNETVERBINDUNG ZU \ > $MAILSV AUF $RECHNERNAME - $ONLINEOK (Mail holen)" \ > -a $INFO $WARN > fi Also ich schreibe alles in eine Datei und verwende cat <datei> |ssmtp -t Außerdem habe ich somit automatische eine Kopie der gesendeten Message. > Al Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature