Save Screen (program) output to a file

后端 未结 11 2507
长发绾君心
长发绾君心 2020-12-02 04:30

I need to save the whole output of Screen to a file to check later all the content.

The reason is that I\'m dumping a flash memory through a serial port, using Scree

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 05:37

    The following might be useful (tested on: Linux/Ubuntu 12.04 (Precise Pangolin)):

    cat /dev/ttyUSB0
    

    Using the above, you can then do all the re-directions that you need. For example, to dump output to your console while saving to your file, you'd do:

    cat /dev/ttyUSB0 | tee console.log
    

提交回复
热议问题