telegraf/plugins/inputs/execd/examples/count.rb

14 lines
170 B
Ruby
Executable File

#!/usr/bin/env ruby
## Example in Ruby not using any signaling
counter = 0
loop do
puts "counter_ruby count=#{counter}"
STDOUT.flush
counter += 1
sleep 1
end