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.