Subject: Re: pppd weird stuff..
To: Robert Alexander Baxter <alex@santa.asf.alaska.edu>
From: Sean Murphy <033197m@acadiau.ca>
List: netbsd-help
Date: 08/08/1998 15:15:57
Ok, so basing my pppd scripts on Robert's scripts I've come up with the
following:
charybdis# cat dial-acadia
#!/bin/sh
pppd /dev/tty00 14400 crtscts defaultroute connect /etc/ppp/acadia.sh
charybdis# cat acadia.sh
#!/bin/sh
echo 'Dialing Acadia...'
rc=4
while [ $rc != 0 ]; do
chat -v -f /etc/ppp/acadia.chat
rc=$?
done
echo 'Done\n'
exit 0
charybdis# cat acadia.chat
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIAL"
"" ATZ
OK ATS11=50
OK ATDT5420941
CONNECT ""
me: 033197m
word: mypassword <-- not my real passwword :)
> c\sppp
unfortunately the system takes it upon itself to dial, log in, and
disconnect. In my /var/log/messages i get the following:
Aug 8 07:20:38 charybdis pppd[2094]: pppd 2.3.1 started by sean, uid 0
Aug 8 07:20:39 charybdis chat[2098]: abort on (BUSY)
Aug 8 07:20:39 charybdis chat[2098]: abort on (NO CARRIER)
Aug 8 07:20:39 charybdis chat[2098]: abort on (NO DIAL)
Aug 8 07:20:39 charybdis chat[2098]: send (ATZ^M)
Aug 8 07:20:39 charybdis chat[2098]: expect (OK)
Aug 8 07:20:39 charybdis chat[2098]: Dialing Acadia...
Aug 8 07:20:40 charybdis chat[2098]: ATZ^M^M
Aug 8 07:20:40 charybdis chat[2098]: OK
Aug 8 07:20:40 charybdis chat[2098]: -- got it
Aug 8 07:20:40 charybdis chat[2098]: send (ATS11=50^M)
Aug 8 07:20:40 charybdis chat[2098]: expect (OK)
Aug 8 07:20:40 charybdis chat[2098]: ^M
Aug 8 07:20:40 charybdis chat[2098]: ATS11=50^M^M
Aug 8 07:20:40 charybdis chat[2098]: OK
Aug 8 07:20:40 charybdis chat[2098]: -- got it
Aug 8 07:20:40 charybdis chat[2098]: send (ATDT5420941^M)
Aug 8 07:20:40 charybdis chat[2098]: expect (CONNECT)
Aug 8 07:20:40 charybdis chat[2098]: ^M
Aug 8 07:20:52 charybdis chat[2098]: ATDT5420941^M^M
Aug 8 07:20:52 charybdis chat[2098]: CONNECT
Aug 8 07:20:52 charybdis chat[2098]: -- got it
Aug 8 07:20:52 charybdis chat[2098]: send (^M)
Aug 8 07:20:52 charybdis chat[2098]: expect (me:)
Aug 8 07:20:52 charybdis chat[2098]: 14400/ARQ/V32/LAPM/V42BIS^M
Aug 8 07:20:54 charybdis chat[2098]: ^M
Aug 8 07:20:54 charybdis chat[2098]: Username:
Aug 8 07:20:54 charybdis chat[2098]: -- got it
Aug 8 07:20:54 charybdis chat[2098]: send (033197m^M)
Aug 8 07:20:54 charybdis chat[2098]: expect (word:)
Aug 8 07:20:54 charybdis chat[2098]: 033197m^M
Aug 8 07:20:54 charybdis chat[2098]: Password:
Aug 8 07:20:54 charybdis chat[2098]: -- got it
Aug 8 07:20:54 charybdis chat[2098]: send (mypassword^M)
Aug 8 07:20:55 charybdis chat[2098]: expect (>)
Aug 8 07:20:55 charybdis chat[2098]: ^M
Aug 8 07:20:55 charybdis chat[2098]: PPP session from (131.162.2.100) to
131.162.2.126 beginning....~^?}#@!}!}!} }8}!}
Aug 8 07:20:58 charybdis chat[2098]: $}%\}"}&} } } }
}%}&usm^\}'}"}(}"oR~~^?}#@!}!}"} }8}!}$}%\}"}&} } } } }%}&usm^\}'}"
Aug 8 07:21:04 charybdis chat[2098]: }(}"%@~~^?}#@!}!}#} }8}!}$}%\}"}&} }
Aug 8 07:21:32 charybdis chat[2098]: } } }%}&usm^\}'}"}(}").~^M
Aug 8 07:21:32 charybdis chat[2098]: NO CARRIER
Aug 8 07:21:32 charybdis chat[2098]: -- failed
Aug 8 07:21:32 charybdis chat[2098]: Failed (NO CARRIER)
I'm guessing the remote system is hanging up on me because the script is
failing to engage ppp and is just taking/generating garbage. I know the
reomte system works fine because I'm connected to it via Win95 dial up
networking now.. any thoughts?
Sean Murphy (033197m@acadiau.ca)
-----
-History is rarely made by reasonable men.