for (my $x = 0; $x < $total_number_runs ; $x++) { exec("shell_script < input_file"); }