Wes Gamble wrote: > should I expect open("| <whatever>", "r") to run the command and then > get the output in the attached block on Windows? I tested the following under Windows2000... >>>>> Example >>>>> C:\Dokumente und Einstellungen\wolfgang>time Aktuelle Zeit: 22:14:57,53 Geben Sie die neue Zeit ein: C:\Dokumente und Einstellungen\wolfgang>irb irb(main):001:0> open('|time', 'a+') do |f| irb(main):002:1* old = f.gets.chomp irb(main):003:1> f.write '11' irb(main):004:1> puts "old: #{old}" irb(main):005:1> end old: Aktuelle Zeit: 22:15:12,21 => nil irb(main):006:0> exit C:\Dokumente und Einstellungen\wolfgang>time Aktuelle Zeit: 11:00:12,28 Geben Sie die neue Zeit ein: >>>>> EoE >>>>> ...and it works. Wolfgang NĂ¡dasi-Donner -- Posted via http://www.ruby-forum.com/.