Replace exec with spawn (current status: defunct).