in reply to Increasing the timeout of a system command in perl

Another possibility is that the "collect_stats" script sends most of it's output to STDERR.

To account for that, try:

system("collect_stats 20 11 > file1 2>&1");

        If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
              -Norm Crosby