Skip to content

Commit

Permalink
committing pinger
Browse files Browse the repository at this point in the history
  • Loading branch information
blucia0a committed Apr 4, 2012
1 parent 52e9ca8 commit 4e05a28
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pinger.pl
@@ -0,0 +1,13 @@
#!/usr/bin/perl

use Net::Ping;
use Time::HiRes;

my $host = shift @ARGV;
my $pause = shift @ARGV | 1000000;
my $p = Net::Ping->new();

while( 1 ){
$p->ping( $host );
Time::HiRes::usleep( $pause );
}

0 comments on commit 4e05a28

Please sign in to comment.