Can't save the output of minicom into a file

前端 未结 3 989
一向
一向 2021-02-05 04:31

When I use Minicom to capture data from a serial port, I need to save the big data into a file, named minicom.cap. However, if I press Ctrl+A and L to capture file,

相关标签:
3条回答
  • 2021-02-05 04:52

    minicom needs a configuration file that is under root permissions and is stored at /etc/minicom/ and is named minirc.dfl.

    Usually when you first run minicom for the first time, as sudo, you can save the minirc.dfl, as if you run as any other user it will not save.

    That may be your problem.

    0 讨论(0)
  • 2021-02-05 05:03

    Did you try to start minicom as

    minicom -C capturefile
    

    Unless i got something wrong, it should start to capture incoming data immediately.

    0 讨论(0)
  • 2021-02-05 05:10

    OP might miss step "Shift + L" after writing, so the overall procedure is as below:

    1 (inside minicom)

    2 Ctrl A + Z

    3 Shift + L

    4 (wait for writing ... )

    5 Shift + L

    6 (check the file you have written, default is minicom.cap, you may want to find it at /root/minicom.cap)

    0 讨论(0)
提交回复
热议问题