in reply to Re: Capture output
in thread Capture output

thanks for your suggestions but i have one more problem. Is there any way to capture the output of already redirected file? e.g i have one file test.pl in which some part is redirected to file test.log but i want to redirect the whole perl script to test1.log i.e test.log and test1.log both will be created but test.log consist of some part whereas test1.log consist whole processing of test.pl.

Replies are listed 'Best First'.
Re^3: Capture output
by j.moratilla (Initiate) on Mar 20, 2007 at 12:41 UTC
    use /bin/tee -a another_output_file > output_file