¿Hay alguna manera de hacer que este código perl capture stderr y stdout desde un tcsh?
open UNIT_TESTER, qq(tcsh -c "gpath $dir/$tsttgt; bin/rununittests"|);
while(<UNIT_TESTER>){
reportError($ignore{testabort},$tsttgt,"test problem detected for $tsttgt:$_ ") if /core dumped/;
reportError($ignore{testabort},$tsttgt,"test problem detected for $tsttgt:$_ ") if /\[ FAILED \]/;
writelog($tsttgt,$_);
}
close UNIT_TESTER;
Intenté redirigir stderr a stdout usando esta sintaxis, pero no funcionó:
open UNIT_TESTER, qq(tcsh -c "gpath $dir/$tsttgt; bin/rununittests >& "|);
También he leído la discusión sobre las preguntas frecuentes de Perl, pero eso fue en relación con bash:http://www.perl.com/doc/FAQs/FAQ/oldfaq-html/Q5.15.html