wrapper of spawn that can be used as exec.