github.com/kontera-technologies/go-supervisor/v2@v2.1.0/testdata/producer.sh (about) 1 #!/usr/bin/env ruby 2 3 require 'json' 4 STDOUT.sync = true 5 6 STDIN.each_line do |l| 7 begin 8 puts({hello: "from producer", msg: l.chomp, num: rand(1000)}.to_json) 9 rescue StandardError => e 10 STDERR.puts e 11 end 12 end