From owner-freebsd-stable Fri Sep 17 17:49: 8 1999 Delivered-To: freebsd-stable@freebsd.org Received: from freed.dyn.ez-ip.net (derby.JSP.UMontreal.CA [132.204.45.26]) by hub.freebsd.org (Postfix) with ESMTP id 2F7F014F55 for ; Fri, 17 Sep 1999 17:48:58 -0700 (PDT) (envelope-from spidey@freed.dyn.ez-ip.net) Received: (from spidey@localhost) by freed.dyn.ez-ip.net (8.9.3/8.9.3) id UAA01158; Fri, 17 Sep 1999 20:46:18 -0400 (EDT) (envelope-from spidey) From: Spidey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14306.57561.332158.857911@freed.dyn.ez-ip.net> Date: Fri, 17 Sep 1999 20:46:17 -0400 (EDT) To: Brian Somers Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Problems with user-PPP login script References: <14303.1712.179737.913091@freed.dyn.ez-ip.net> <199909151911.UAA00532@keep.lan.Awfulhak.org> X-Mailer: VM 6.71 under 21.1 "20 Minutes to Nikko" XEmacs Lucid (patch 2) Reply-To: Spidey Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --- Big Brother told Brian Somers to write, at 20:11 of September 15: > > > > Hi everybody! > > > > I just upgraded my box from stable 19990602 to 19990909. > > > > I'm having problems with my ppp chat script. It seems it does not send > > a carriage return where it should. > > > > spidey@freed [10:18pm] spidey$ ppp -auto d14 > > Working in auto mode > > Using interface: tun0 > > spidey@freed [10:18pm] spidey$ pppctl /var/sock/internet > > ppp ON freed> set log local chat > > ppp ON freed> Chat: Expect(40): CONNECT > > Chat: Received: ATDT*70,343 2411 > > Chat: Received: CONNECT > > Chat: Send: > > Chat: Expect(15): ame: > > Chat: Received: 38400 > > Chat: Received: > > Chat: Received: Serveur de terminaux AS1.CC. > > Chat: Received: (? = commandes; AIDE = aide; MOTD = message du jour) > > Chat: Received: > > Chat: Received: > > Chat: Received: User Access Verification > > Chat: Received: > > Chat: Received: Username: > > Chat: Send: beaupran > > Chat: Expect(15): word: > > Chat: Received: > > Chat: Received: > > Chat: Received: User Access Verification > > Chat: Received: > [.....] > > What does it say if you've also got ``physical'' logging ? Really.. I do not understand that part. 'physical' logging? Ah... Ok: ppp ON freed> set log local chat physical ppp ON freed> dial Chat: deflink: Dial attempt 1 of 3 ppp ON freed> Chat: Send: AT Physical: write Physical: 41 54 0d AT. Chat: Expect(5): OK Physical: read Physical: 41 54 AT Physical: read Physical: 0d . Physical: read Physical: 0d 0a 4f 4b 0d 0a ..OK.. Chat: Received: AT Chat: Received: OK Chat: Send: ATS7=45S0=0S11=50L3M1V1X4&c1E1Q0 Physical: write Physical: 41 54 53 37 3d 34 35 53 30 3d 30 53 31 31 3d 35 ATS7=45S0=0S11=5 Physical: 30 4c 33 4d 31 56 31 58 34 26 63 31 45 31 51 30 0L3M1V1X4&c1E1Q0 Physical: 0d . Chat: Expect(5): OK Physical: read Physical: 41 54 AT Physical: read Physical: 53 37 3d S7= Physical: read Physical: 34 35 53 30 3d 30 53 31 31 3d 35 30 4c 33 4d 31 45S0=0S11=50L3M1 Physical: read Physical: 56 31 58 34 26 63 31 45 31 51 30 V1X4&c1E1Q0 Physical: read Physical: 0d . Physical: read Physical: 0d 0a 4f 4b 0d 0a ..OK.. Chat: Received: ATS7=45S0=0S11=50L3M1V1X4&c1E1Q0 Chat: Received: OK Chat: Send: ATDT*70,343 2411 Physical: write Physical: 41 54 44 54 2a 37 30 2c 33 34 33 20 32 34 31 31 ATDT*70,343 2411 Physical: 0d . Chat: Expect(40): CONNECT Physical: read Physical: 41 54 44 54 2a 37 30 2c 33 34 33 20 32 34 31 31 ATDT*70,343 2411 Physical: 0d . Physical: read Physical: 0d 0a 43 4f 4e 4e 45 43 54 20 33 38 34 30 30 0d ..CONNECT 38400. Physical: 0a . Chat: Received: ATDT*70,343 2411 Chat: Received: CONNECT 38400 Chat: Send: Physical: write Physical: 0d . Chat: Expect(15): ame: Physical: read Physical: 0d 0a 53 65 72 76 65 75 72 20 64 65 20 74 65 72 ..Serveur de ter Physical: 6d 69 6e 61 75 78 20 41 53 31 2e 43 43 2e 0d 0a minaux AS1.CC... Physical: 28 3f 20 3d 20 63 6f 6d 6d 61 6e 64 65 73 3b 20 (? = commandes; Physical: 20 41 49 44 45 20 3d 20 61 69 64 65 3b 20 20 4d AIDE = aide; M Physical: 4f 54 44 20 3d 20 6d 65 73 73 61 67 65 20 64 75 OTD = message du Physical: 20 6a 6f 75 72 29 0d 0a 0d 0a 0d 0a 55 73 65 72 jour)......User Physical: 20 41 63 63 65 73 73 20 56 65 72 69 66 69 63 61 Access Verifica Physical: 74 69 6f 6e 0d 0a 0d 0a 55 73 65 72 6e 61 6d 65 tion....Username Physical: 3a 20 : Chat: Received: Chat: Received: Serveur de terminaux AS1.CC. Chat: Received: (? = commandes; AIDE = aide; MOTD = message du jour) Chat: Received: Chat: Received: Chat: Received: User Access Verification Chat: Received: Chat: Received: Username: Chat: Send: beaupran Physical: write Physical: 62 65 61 75 70 72 61 6e 0d beaupran. Chat: Expect(15): word: Physical: read Physical: 0d 0a 0d 0a 55 73 65 72 20 41 63 63 65 73 73 20 ....User Access Physical: 56 65 72 69 66 69 63 61 74 69 6f 6e 0d 0a 0d 0a Verification.... Chat: Received: Chat: Received: Chat: Received: User Access Verification Chat: Received: Physical: read Physical: 55 73 65 72 6e 61 6d Usernam Physical: read Physical: 65 3a 20 e: ppp ON freed> quit all > It should actually be sending beaupran 0x0d 0x0a above (assuming > your send string doesn't end with ``\c''. Ok... It seems to send 0d alright. But the 0a? od is a linefeed and 0d is a carriage return right? So it does not send the carriage return... Hum. Is it my fault? I do not understand the \c part... I guess I would have to grep through the source code, eh? Argh. Could someone help me? How should I modigy the chat script? Thanks a lot... ants -- Si l'image donne l'illusion de savoir C'est que l'adage pretend que pour croire, L'important ne serait que de voir Lofofora To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message