#!/usr/bin/env ruby STDERR.sync = STDOUT.sync = true require File.expand_path('../../lib/stalker', __FILE__) extend Stalker usage = "stalk [[,,..]]" file = ARGV.shift or abort usage jobs = ARGV.shift.split(',') rescue nil file = "./#{file}" unless file.match(/^[\/.]/) require file trap('INT') do puts "\rExiting" exit end Stalker.work jobs