chat -E -s -V -f $modem_chat_script <$modem_device >$modem_device


So, that's what I did:

$ /usr/sbin/chat -E -s -V -f /tmp/qq </dev/ttyUSB0>/dev/ttyUSB0
Failed

in /tmp/qq I have:
atd*#06#

Using the script in my previous mail you should be able to do

modem_cmd atd*#06#

In your example you miss a space before the ">",
and your /tmp/qq should look like

"" atd*#06#
OK ""

From man chat: A script consists of one or more "expect-send" pairs of strings, separated by spaces

So it reads as "expect nothing, send string, expect OK, send nothing"

The idea of the script is to be able to send -any- command.

--Jasper.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4caf3a86.8080...@xs4all.nl

Reply via email to