T
Tony Mcneil
Hey folks, I'm trying to create a program to ping one of my company's
computers every minute to measure latency, and output the results to a
text file. I've been able to figure out / cobble together most of what
I need (see attached ping.rb file) but the problem i'm having is I
cannot figure out how to get Ruby to copy the results from the ping to
the text file that is created.
What I get currently when I run the program (from the log file):
________________________________
Wed Sep 17 13:52:45 -0500 2008
System Ping Monitor:
Wed Sep 17 13:52:45 -0500 2008
________________________________
The "ping" command doesn't output the way I need it to, HALP!!
Attachments:
http://www.ruby-forum.com/attachment/2708/ping.rb
computers every minute to measure latency, and output the results to a
text file. I've been able to figure out / cobble together most of what
I need (see attached ping.rb file) but the problem i'm having is I
cannot figure out how to get Ruby to copy the results from the ping to
the text file that is created.
What I get currently when I run the program (from the log file):
________________________________
Wed Sep 17 13:52:45 -0500 2008
System Ping Monitor:
Wed Sep 17 13:52:45 -0500 2008
________________________________
The "ping" command doesn't output the way I need it to, HALP!!
Attachments:
http://www.ruby-forum.com/attachment/2708/ping.rb