Save Screen (program) output to a file

后端 未结 11 2448
长发绾君心
长发绾君心 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:22

    The following command works for Screen version 4.06.02:

    screen -L -Logfile Log_file_name_of_your_choice command_to_be_executed
    

    From the man page of Screen:

    -Logfile file : By default logfile name is "screenlog.0".
                    You can set new logfile name with the "-Logfile" option.
    

    You can check the existing version of Screen using screen -version. You can download and install the latest Screen version from https://www.gnu.org/software/screen/.

提交回复
热议问题