using exec to child process instead of spawn.