Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2006 11:49:00 +0200
From:      "Halid Faith" <maslak@ihlas.net.tr>
To:        <freebsd-questions@freebsd.org>
Subject:   check script for tcp connection
Message-ID:  <019a01c6104a$ec9c7a20$dc96eed5@ihlasnetym>

next in thread | raw e-mail | index | archive | help
Hello=20

I use FreeBSD6.0. I want to use a script to check two or more case.=20
My first cases are as below;
First case My Server will check the remote ip address alive or not as =
icmp=20
Second case My server will connect to other remote ip address as tcp =
protocol like connected or not.

if my server could not see the remote ip address AND not connect tcp =
connection, My server will send an email me.

How can I write a simple script about that ?

Thanks  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?019a01c6104a$ec9c7a20$dc96eed5>