Hello,
The improvements to ActiveState Perl in PowerShell have helped tremendously.
However, my ActiveState Perl 5.40 script does not successfully redirect output through the PowerShell Tee-Object
. I would like to see the console display and save the output in a text file.
When I run the command below, I can see the console print statements but the output file result.txt
is empty
perl .\patronSendHoldAvailable.pl aftantest.csv | Tee-Object -FilePath 'result.txt'
The file result.txt
has a size of 0 bytes though I can see console output. A screenshot follows depicting the perl / Tee-Object command and a dir command.