Run cleanup at a specified time, redirect stdout,sterr to tmp file