From: "Peña, Botp" Date: 2007-10-05T16:58:30+09:00 Subject: Re: Binary data, command output, and Ruby From: Phrogz [mailto:phrogz@mac.com] # OK, so this has nothing to do with reading files # from disk. The crazy thing is that it isn't even # deterministic! See the following: # #... # What is going on here?! can't help you there, but mine has a different yet consistent output... C:\family\ruby>type put_bytes.rb print (0..12000).map{ |i| ((i % 255) + 1).chr }.join $stdout.flush sleep 1 $stdout.flush C:\family\ruby>type get_bytes.rb p `ruby put_bytes.rb`.length C:\family\ruby>type multi_get.bat @echo off ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb ruby get_bytes.rb C:\family\ruby> multi_get.bat 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 348 C:\family\ruby>ver Microsoft Windows XP [Version 5.1.2600] C:\family\ruby>ruby -v ruby 1.8.6 (2007-09-23 patchlevel 110) [i386-mswin32] maybe we differ on the patchlevel? kind regards -botp