foreach ($first,$second)(param1, param2, param3, param4) { system("qsub runcode.sh $first $second"); }