n3tw0rkadm1n1strat0r
IS-IT--Management
Does anyone know of a script that will check to see if a website is up? Not a script that will just ping the website, because that just says if the server is up, but the website itself...
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.
#!C:\Perl\bin\perl.exe
perl -MLWP::Simple -e 'getprint "[URL unfurl="true"]http://www.yahoo.com/"'[/URL]
use LWP::Simple;
$content = get("[URL unfurl="true"]http://www.yahoo.com/");[/URL]
die "Couldn't get it!" unless defined $content;
if (mirror("[URL unfurl="true"]http://www.yahoo.com/",[/URL] "foo") == RC_NOT_MODIFIED) {
...
}
if (is_success(getprint("[URL unfurl="true"]http://www.yahoo.com/")))[/URL] {
...
}