views:

359

answers:

1

I am using powershell and am trying to run the following command:

.\test_cfdp.exe < test.full | tee test.log

test.full is a script that mimics command line inputs to test_cfdp.exe. However, I get the following error:

The '<' operator is reserved for future use.

Is there another way (i.e. cmdlet) I can use to get this command to work in PowerShell?

+2  A: 

PS <= 2.0 doesnt support this

An example workaround is:

Get-Content test.full | .\test_cfdp.exe | tee test.log
Ruben Bartelink
Worked like a charm. Thanks!
Bobby