#!/usr/bin/env ruby STDERR.sync = STDOUT.sync = true require File.dirname(__FILE__) + '/../lib/stalker' include 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