How do I redirect Tornado / VXWorks shell output?

前端 未结 4 1555
太阳男子
太阳男子 2020-12-21 06:04

I\'ve been working on an embedded C/C++ project recently using the shell in Tornado 2 as a way of debugging what\'s going on in our kit. The only problem with this approach

4条回答
  •  天涯浪人
    2020-12-21 06:47

    I am making the assumption that you are using the host shell to perform this.

    If you are running a test by launching it from the shell like "runTest()", you can use the redirection operator (>) to send the output of that function to a text file on your host machine.

     > runTest() > mytestResults.txt
    

    This will save any output that runTest generates to the file mytestResults.txt

    If you would like to capture everything on the screen all the time, I will have to dig more into this.

提交回复
热议问题