2016-05-10 16:32+0200, Paolo Bonzini: > On 10/05/2016 14:41, Radim Krčmář wrote: >>> > eval $cmdline 2>> $RUNTIME_log_stderr \ >>> > | eval tee -a "$RUNTIME_log_stdout" | extract_summary >>> > >>> > Anything I am missing? >>> > >>>>> >>> ret=$? >> Simple pipeline would not return the return value of `eval $cmdline`, so >> it seemed nicer with a redirection. > > Right... Two more attempts: > > eval "$cmdline 2>> $RUNTIME_log_stderr > > >(tee -a $RUNTIME_log_stdout | extract_summary)" > > (eval $cmdline) 2> >($RUNTIME_cmd_stderr) > > >(tee >($RUNTIME_cmd_stdout) | extract_summary)" > > (The latter requiring an extra useless uses of cat for test.log). > > Would any of these work fine? The former one works. The latter would work if $RUNTIME_cmd_stdout accepted $kernel as an argument. summary=$(eval $cmdline > >(tee >(RUNTIME_log_stdout $kernel) | extract_summary)) Is that acceptable? (I will gladly degrade performance to have less code in eval.) Thanks. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html