my $temppid = open (SYS, "/bin/tcsh $tempfilename | ") or die "$!"; kill $temppid if (alarm (5)); while () { print "[DEBUG] $_
"; } close SYS;