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