Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/local/bin/perl
# open an output file to record the results
open(OPF,">fping_results.txt") or die "Failed to open OPF, $!\n";
# read each IP address from the text file and run fping
open(IPF,"<IPs.text") or die "Failed to open input file, $!\n";
while (<IPF>)
{
chomp; # remove \n and \r as needed.
print OPF "\n\n$ip - \n";
# open a pipe (child process) for the fping
open(PIPE,"fping $ip |") or die "Failed to open PIPE to $cmd, $!\n";
while(<PIPE>) { print OPF "$_"; }
close PIPE;
}
close IPF;
close OPF;