#!/usr/bin/ruby $stdout.sync = true loop do puts 1 sleep 0.5 end