in reply to Re: Capturing output of commands to a file
in thread Capturing output of commands to a file

The solution worked. Thanks a lot. Looking for an option to display the message on screen too. If there is any option available.
  • Comment on Re^2: Capturing output of commands to a file

Replies are listed 'Best First'.
Re^3: Capturing output of commands to a file
by Laurent_R (Canon) on Nov 12, 2015 at 22:35 UTC
    This is no longer a Perl question, but take a look at the tee Unix/Linux command.

    Update: oops, looking again at your OP, it seems that you are under Windows, not Unix. There are some Windows tee implementations (e.g. wintee or Powershell Tee) but I just don't know if they fit your requirement.