Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. IO.popen(command, :err=>[:child, :out]) {|ls_io|
  2. ls_io.each do |line|
  3. print line
  4. end
  5. }
  6.  
  7. 1%r2%r3%r…100%
  8. task finished
  9.  
  10. IO.popen(commande, :err=>[:child, :out]) {|ls_io|
  11. while true
  12. byte=ls_io.read(1)
  13. if byte.nil?
  14. break
  15. end
  16. print byte
  17. end
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement