Redirecting PING output to a variable (AREV Specific)
At 25 OCT 2000 10:09:23AM Wilhelm Schmitt wrote:
For controlling our WAN connections (TCP/IP Server:NT4 Workstation:Win95) from within ARev, we use a simple RBasic routine that loops through the IP list with the command:
PCPERFORM "ping 111.222.333.444 -n 1 ] ping.doc".
After that the message stored in ping.doc is evaluated and displayed in a list.
a) Is it possible to load the result from PING directly into a variable, instead of passing through the DOS file write/read each time?
b) Is RBasic capable of pinging directly ???
TIA
Wilhelm
At 25 OCT 2000 12:19PM matt sorrell wrote:
Wilhelm,
Perhaps the only way I can think of to get the results of a ping directly into a variable would be by using the C bond for ARev. This lets you write C routines, compile them, and call them from your R/Basic routines. C has network libraries, so you could execute a ping, take the information, load it into a variable, and then pass it back to your R/Basic routine.
msorrel@greyhound.com