Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (8 sloc) 194 Bytes
#!/usr/bin/env ruby
pattern = ARGV[0] || "memcached|beam.smp|couchjs|moxi"
target = ARGV[1] || "/proc/*/stat"
while true
sleep 1
print `egrep "#{pattern}" #{target}`
$stdout.flush
end