Re: Ping in web server command file



Chuck Aaron wrote:
Does anyone have the dcl tcpip command "ping" set up in a webserver
command file
that returns the results and tests the results for validity...anything
like that at all?
If so, please email me the dcl setup to take a look at.


PLEASE DO NOT POST IN HTML. THIS IS A TEXT NEWSGROUP.

$ ip = 1.2.3.4
$ PING == "$SYS$SYSTEM:TCPIP$PING.EXE"
$
$ define/user/nolog sys$output nla0:
$ define/user/nolog sys$error nla0:
$ on error then continue
$ ping -c 1 -t 2 'ip
$ if $status .and. 1
$ then
$ flag = "1"
$ good = good + 1
$ else
$ flag = "0"
$ bad = bad + 1
$ endif
.