Sample Header Ad - 728x90

script command from socat - /dev/ttyUSB0

0 votes
1 answer
1730 views
A usb-modem connected to my Raspberry PI with Raspian lite. I've finally found a way to make it connect by issuing these two steps:
sudo socat - /dev/ttyUSB1
and from within Socat I just write:
AT^NDISDUP=1,1,"4g.tele2.se"
...to make my usb-modem connect. How can I now send this command using a shell script?
Asked by JUlinder (103 rep)
May 26, 2021, 07:43 PM
Last activity: May 26, 2021, 10:51 PM