changed eval(cmd) to exec(cmd)