How do I redirect Tornado / VXWorks shell output?

前端 未结 4 1554
太阳男子
太阳男子 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 07:03

    The host shell has a recording capability built in. There are 3 environment variables available (in 6.x - not available in 5.x):

    RECORD (on/off) : Controls recording of the shell
    RECORD_TYPE (input/output/all): Determines what you will be recording
    RECORD_FILE : Filename to save things to.

    you use the ?shConfig command to configure the shell environment variable. ?shConfig by itself displays the variables. Here is how I set mine up:

    
    -> ?shConfig
    ...
    RECORD = off
    RECORD_FILE = C:/test.txt
    RECORD_TYPE = output
    ...
    
    -> ?shConfig RECORD_TYPE all
    -> ?shConfig RECORD_FILE myData.txt
    -> ?shConfig RECORD on
    Started recording commands in 'myData.txt'.
    

提交回复
热议问题