A command line tool and a lib for handling batch jobs