executing unix commands with multiple processes