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

14 lines
170 B
Ruby
Raw Normal View History

2020-02-28 18:46:03 +00:00
#!/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