mrscr has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Capture output
by syphilis (Archbishop) on Dec 28, 2006 at 09:20 UTC
    I want to capture the whole perl script processing in a file

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

    Cheers,
    Rob
      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
Re: Capture output
by Anonymous Monk on Dec 28, 2006 at 07:40 UTC