Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2003 23:16:25 +0930
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        "Michael Vondung" <michael@vcommunities.net>, <freebsd-questions@freebsd.org>
Subject:   Re: PPP and the backslash-containing AT command in ppp.conf
Message-ID:  <200309012316.25143.malcolm.kay@internode.on.net>
In-Reply-To: <002001c3708c$e454c940$0100a8c0@equilibrium>
References:  <002001c3708c$e454c940$0100a8c0@equilibrium>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3Dchat&sektion=3D8) 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 relev=
ant
> bit from /var/log/ppp.log:

The string is interpreted twice -- first by ppp itself which reduces '\\'=
 to=20
'\' 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309012316.25143.malcolm.kay>