The '<' operator is reserved for future use

前端 未结 4 1380
北恋
北恋 2020-11-27 17:10

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

相关标签:
4条回答
  • 2020-11-27 17:47

    If you want to run this command more times, you can just make a *.bat file with the original syntax. That's another solution.

    0 讨论(0)
  • 2020-11-27 17:51

    I have switched to linux shell and it works

    0 讨论(0)
  • 2020-11-27 18:00

    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
    
    0 讨论(0)
  • 2020-11-27 18:13

    Also try:

    cmd /c '.\test_cfdp.exe < test.full | tee test.log'
    
    0 讨论(0)
提交回复
热议问题