#!/usr/bin/env ruby while true sleep 2 puts "slept, #{Process.pid}" `echo "foo" | logger -t ruby` end