Can't save the output of minicom into a file

2019-03-17 23:20发布

问题:

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, it failed. No file was created (minicom.cap did not exist beforehand). My download directory was properly created. My OS is Mint, and I read data from Arduino nano v3.0

回答1:

Did you try to start minicom as

minicom -C capturefile

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



回答2:

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)



回答3:

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.