Hi guys, I'm wondering if there is a way to create a script that will ping a server and open a webpage if the response time is over a specified amount (let's say 100ms). So, if the response time > 100ms, the script opens a webpage that will send a notification email that the connection to the server is slow.
Thank you.
@ping -n 1 -w 100 0.0.0.1 || start http://webpage_to_send_email although I'm not real clear on why the email needs to be sent by a webpage, but that's in your jurisdiction.
Thank you for the help nbrane. Would there be an easier way to send the email from the script itself?
Google for "command line mailer" and you find a lot of free SMTP mailers to send e-mails from a batch script. I used Bmail.exe, a simple and effective tool to send an alert mail from remote unattended PCs to the control desk.
There are two or three posted here as well. Razor posted one, and I might put one have in How-Tos. I like Blat (maybe it's just the name, but it's easy to use, download is free). message edited by nbrane
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |