From: Joao Silva Date: 2009-02-09T09:50:55+09:00 Subject: Re: How to monitor wget command progress in ruby? Great! I was write code: f = IO.popen("wget http://www.hostgator.com/testfile.zip 2>&1", "r") { |pipe| pipe.each do |line| sleep 1.5 puts line end } and it's almost done - it's outputs something like this: 8350K .......... .......... .......... .......... .......... 41% 230K 54s 8400K .......... .......... .......... .......... .......... 41% 226K 54s 8450K .......... .......... .......... .......... .......... 41% 229K 53s 8500K .......... .......... .......... .......... .......... 41% 221K 53s 8550K .......... .......... .......... .......... .......... 41% 234K 53s 8600K .......... .......... .......... .......... .......... 42% 226K 53s 8650K .......... .......... .......... .......... .......... 42% 233K 53s 8700K .......... .......... .......... .......... .......... 42% 222K 52s 8750K .......... .......... .......... .......... .......... 42% 233K 52s 8800K .......... .......... .......... .......... .......... 43% 224K 52s 8850K .......... .......... .......... .......... .......... 43% 222K 52s 8900K .......... .......... .......... .......... .......... 43% 237K 51s 8950K .......... .......... .......... .......... .......... 43% 229K 51s 9000K .......... .......... .......... .......... .......... 44% 230K 51s 9050K .......... .......... .......... .......... .......... 44% 229K 51s 9100K .......... .......... .......... .......... .......... 44% 222K 51s great....but i need explaination: what does "2>&1", "r"" mean? without it code: f = IO.popen("wget http://www.hostgator.com/testfile.zip", "r") { |pipe| pipe.each do |line| sleep 1.5 puts line end } Didn't work. I would like avoid copypaste coding, i found 2>&1 in some tutorial. -- Posted via http://www.ruby-forum.com/.