From: Tony Mcneil Date: 2008-09-18T03:46:38+09:00 Subject: Getting Ruby to output a windows command to text (log) file. 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 -- Posted via http://www.ruby-forum.com/.