in reply to Redirecting STDOUT and standard error to file
Hi
To do so, you would either have to write to STDOUT and to a text file in your sample1.pl OR write a variation of the tee program. Something like:
sub print_out { my $text = shift; my $FH = shift; print $text; print $FH $text; } print_out "hi there\n";
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
|
|---|