5 replies
by wayne m.
Assuming you are using a WindowsNT web server, here is an answer I got to a similar question (thanks again to kirya) I was asking about using Oracle's tnsping, but this will work with a regular ping. You'll still have to do your own parsing of thereturn value to determine success or failure and select the correct image to paint.
Wayne
P.S. I hope line wrapping doesn't mess up the following :-)
From: kirya
Date: 08/03/00 05:32 AM EDT
Status: Accepted
Points: 100
You can use AspExec from http://serverobjects.com/products.htm#free And use page Some_Title.asp with following content:
--- Header ---
<%
Set Executor=Server.CreateObject("ASPExec.Execute")
Executor.Application = "tnsping"
strResult = Executor.ExecuteDosApp Response.Write " tnsping returned : " & strResult
%>
--- Footer ---
Or, may be you can execute .bat-file on your server as CGI program.
by wayne m.
Let me try again to see if I can't force this thing to format reasonably.
You can use AspExec from http://serverobjects.com/products.htm#free And use page Some_Title.asp with following content:
--- Header ---
<%
Set Executor=Server.CreateObject("ASPExec.Execute")
Executor.Application = "tnsping"
strResult = Executor.ExecuteDosApp Response.Write " tnsping returned : " & strResult
%>
--- Footer ---
by mike.crain
by mike.crain
by mike.crain
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending