Minicom send automate script

bash, linux, serial-port, shell

Solution

Minicom have -S option for executing SCRIPT at startup time,so made a script with your commands like

vi script.txt
send atz
send at

Run your script with minicom like

minicom -S script.txt

Also refer http://www.linuxcommand.org/man_pages/runscript1.html for minicom scripting

Problem

I'm using minicom to test my connection on serial port. ``` sudo minicom -b 115200 -D /dev/ttyS0 ``` in this way minicom opens its 'console-gui' and allow me to send data. I send: ``` atz ``` and obtain 'OK' ``` at ``` and obtain 'OK' Ans so on. I need to run a script that write to inifinity "at" and read answer.. Any advice? I evaluate other programs too.

Original source