Al Bogner <[EMAIL PROTECTED]> writes:

> Am Dienstag, 19. April 2005 00:08 schrieb Michelle Konzack:
>> 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 ?
>
> Klar, dass das nicht 100% funktioniert, hast du aber eine bessere 
> L�sung abzufragen, ob die Internetverbindung grunds�tzlich 
> funktioniert und ob der Mailserver erreichbar ist.

Ist das nicht ein typischer Anwendungsfall f�r netcat? Also z.B.
 echo QUIT | nc6 --half-close --timeout=5 "$MAILSV" 25
und dann $? abpr�fen.

Gruss, Bruno.

Antwort per Email an