PPP and the backslash-containing AT command in ppp.conf
Malcolm Kay
malcolm.kay at internode.on.net
Mon Sep 1 06:46:28 PDT 2003
On Mon, 1 Sep 2003 22:58, Michael Vondung wrote:
> I am fairly to FreeBSD (and any kind of Unix), so please be easy on me in
> case I'm overlooking the obvious. :)
>
> I've been trying to connect to my ISP with an external "Elsa Microlink
> ISDN/TL pro" modem. The init string that the modem requires is AT&F\N9. I
> modified the following line in /etc/ppp/ppp.conf:
>
> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
> \"\" AT OK-AT-OK AT&F\\N9 OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
>
> The man page for chat
> (http://www.freebsd.org/cgi/man.cgi?query=chat&sektion=8) says that \\
> sends a backlash character, so I figured that AT&F\\N9 would be sent as
> AT&F\N9. However, it doesn't seem to send a backslash. Here's the relevant
> bit from /var/log/ppp.log:
The string is interpreted twice -- first by ppp itself which reduces '\\' to
'\' so caht sees only one '\'.
Sould work if you use '\\\\', that is: AT&F\\\\N9
which the first interpretation reduces to: AT&F\\N9
Malcolm
More information about the freebsd-questions
mailing list