Skip to content

Instantly share code, notes, and snippets.

@hubacekjirka
hubacekjirka / PingIP.java
Last active July 25, 2017 18:20 — forked from madan712/PingIP.java
Java program to ping an IP address
/*
* execution example: pinger.jar "8.8.8.8" "C:\\tmp\\out.txt"
*
* Motivation: Guys in UnityMedia.de are not masters of stable internet connection. Before complaining to their help desk
* I needed some hard evidence of the connection's disruptions.
*
* Description: Invokes system's command line and executes endless ping command. Reads command line's output, parses it
* and outputs it into a pipe-delimited text file for analysis in tools such as Tableau.
*/
package pinger;