in reply to Capture output

I want to capture the whole perl script processing in a file

perl script.pl >output.txt 2>&1

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Capture output
by mrscr (Initiate) on Jan 02, 2007 at 12:19 UTC
    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.
      use /bin/tee -a another_output_file > output_file