[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HELP. My chat script doesn't work.



"Jens K. Olsen" wrote:

> I have been trying to connect to my ISP for some time but without any
> luck. When I use Windows I can connect without problems. Following is
> the script that works in Windows:
>
> ; This is a script file that demonstrates how
> ; to establish a PPP connection with Compuserve,
> ; which requires changing the port settings to
> ; log in.
> ;
> ; Main entry point to script
> ;
> proc main
>
>    ; Set the port settings so we can wait for
>    ; non-gibberish text.
>
>    set port databits 7
>    set port parity even
>
>    transmit "^M"
>
>    waitfor "Host Name:"
>    transmit "HOSTNAME^M"
>
>    waitfor "User ID:"
>    transmit $USERID, raw
>    transmit "/go:pppconnect^M"
>
>    waitfor "Password: "
>    transmit $PASSWORD, raw
>    transmit "^M"
>
>    waitfor "One moment please..."
>
>    ; Set the port settings back to allow successful
>    ; negotiation.
>
>    set port databits 8
>    set port parity none
>
> endproc
>
> I have confirmed with minicom that I need to provide a host name, next a
> user ID, and finally a password. I edited my /etc/chatscripts/provider
> to the following:
>
> ABORT BUSY
> ABORT "NO CARRIER"
> ABORT VOICE
> ABORT "NO DIALTONE"
> ABORT "NO ANSWER"
> "" ATZ
> OK ATDTPHONENUMBER
> CONNECT ^M
> "ost Name:" HOSTNAME
> "ser ID:" USERID
> "assword:" /qPASSWORD
>
> When I try to login using pon, this is what happens:
>
> Feb 26 11:07:20 uxtjp51 pppd[186]: pppd 2.3.5 started by LOGIN, uid 1000
>
> Feb 26 11:07:21 uxtjp51 chat[187]: abort on (BUSY)
> Feb 26 11:07:21 uxtjp51 chat[187]: abort on (NO CARRIER)
> Feb 26 11:07:21 uxtjp51 chat[187]: abort on (VOICE)
> Feb 26 11:07:21 uxtjp51 chat[187]: abort on (NO DIALTONE)
> Feb 26 11:07:21 uxtjp51 chat[187]: abort on (NO ANSWER)
> Feb 26 11:07:21 uxtjp51 chat[187]: send (ATZ^M)
> Feb 26 11:07:21 uxtjp51 chat[187]: expect (OK)
> Feb 26 11:07:21 uxtjp51 chat[187]: ATZ^M^M
> Feb 26 11:07:21 uxtjp51 chat[187]: OK
> Feb 26 11:07:21 uxtjp51 chat[187]:  -- got it
> Feb 26 11:07:21 uxtjp51 chat[187]: send (ATDTPHONENUMBER^M)
> Feb 26 11:07:21 uxtjp51 chat[187]: expect (CONNECT)
> Feb 26 11:07:21 uxtjp51 chat[187]: ^M
> Feb 26 11:07:46 uxtjp51 chat[187]: ATDTPHONENUMBER^M^M
> Feb 26 11:07:46 uxtjp51 chat[187]: CONNECT
> Feb 26 11:07:46 uxtjp51 chat[187]:  -- got it
> Feb 26 11:07:46 uxtjp51 chat[187]: send (^M^M)
> Feb 26 11:07:46 uxtjp51 chat[187]: expect (ost Name:)
> Feb 26 11:07:46 uxtjp51 chat[187]:  33600^M
> Feb 26 11:07:46 uxtjp51 chat[187]: ^M
> Feb 26 11:07:46 uxtjp51 chat[187]: ^M
> Feb 26 11:07:47 uxtjp51 chat[187]:  0005TJD^M
> Feb 26 11:07:47 uxtjp51 chat[187]: ^M
> Feb 26 11:07:47 uxtjp51 chat[187]: Host Name:
> Feb 26 11:07:47 uxtjp51 chat[187]:  -- got it
> Feb 26 11:07:47 uxtjp51 chat[187]: send (HOSTNAME^M)
> Feb 26 11:07:47 uxtjp51 chat[187]: expect (ser ID:)
> Feb 26 11:07:47 uxtjp51 chat[187]:   HOSTNAME^M
> Feb 26 11:08:32 uxtjp51 chat[187]: alarm
> Feb 26 11:08:32 uxtjp51 chat[187]: Failed
> Feb 26 11:08:32 uxtjp51 pppd[186]: Connect script failed
> Feb 26 11:08:33 uxtjp51 pppd[186]: Exit.
>
> It looks to me as if it gets stuck on the Host Name. When it gets the
> UserID promt it sends the Host Name again ????
>
> Please advise how to do it right.
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Have you tried using 'pppconfig' command?
dyer



Reply to: