If you like it i can make the smalls changes to be used in windows and you did need to install ActivePerl that is all. What it does is that it will try to ping google every time it runs and it will then print to a file if it got a reply or not along with the time so you can check later from what time to what time the internet was unavailable. System "rm -rf /var/run/net_test.pid" if (-e "/var/run/net_test.pid") $format = strftime('',localtime)." Internet is ok." $format = strftime('',localtime)." Internet is back." $format = strftime('',localtime)." Internet is not available." ![]() ![]() My $host = "my $ping = Net::Ping->new('icmp') I don't know any util but i did myself a simple code for that with perl: #!/usr/bin/perl
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |