for (@commands) { if (fork==0) { exec $_ } }; wait for @commands;