Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The '<' operator is reserved for future use

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?

like image 814
Blade3 Avatar asked Jan 27 '10 16:01

Blade3


2 Answers

This was not supported in PowerShell v1 [and as of v5, it's still not...]

An example workaround is:

Get-Content test.full | .\test_cfdp.exe | tee test.log
like image 140
Ruben Bartelink Avatar answered Nov 04 '22 05:11

Ruben Bartelink


Also try:

cmd /c '.\test_cfdp.exe < test.full | tee test.log'
like image 42
earGrowth Avatar answered Nov 04 '22 06:11

earGrowth