There are many examples using bash out there.

A great how-to that explains the piece of the code:
http://stackoverflow.com/questions/733418/how-can-i-write-a-linux-bash-script-that-tells-me-which-computer-are-on-in-my-l

On Oct 24, 2013, at 10:13 AM, Joel Longanecker <joel.longanecker at gmail.com> wrote:

> this sounds like a job for python.
>  
> http://stackoverflow.com/questions/316866/ping-a-site-in-python
> 
> 
> On Thu, Oct 24, 2013 at 9:22 AM, Raymond Norton <admin at lctn.org> wrote:
> I am googling for a ping program for Ubuntu  that sends and email or audio alert if the ping request times out. Needs to run all the time rather than cycle every few minutes.
> 
> Any ideas?
> 
> -- 
> Raymond Norton
> LCTN
> 952.955.7766
> 
> Sent from My Desktop
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20131024/5e7b26e2/attachment.html>