A safer alternative to exec.