try with spawnp instead of plain spawn