Subject: Why does my ppp script die the first time around?
        Date: Tue, Feb 16, 1999 at 01:13:07PM -0700

In reply to:Wes Morriston

Quoting Wes Morriston([EMAIL PROTECTED]):
> 
> Maybe somebody can tell me how to get around the following (small)
> problem.
> 
> As often as not my ppp dialup script dies the first time I run it.  That
> is, nothing happens -- it doesn't even dial the number.  So I just run
> it again, and this time everything works perfectly.
> 
> Here is the script:
> 
>       #!/bin/sh
>       /usr/sbin/pppd connect "/usr/sbin/chat $DEBUG \
>       -f /etc/ppp/chat-once" \
>       /dev/modem file /etc/ppp/options.once &
> 
> And here are the relevant files in /etc/ppp:
> 
>   /etc/ppp/chat-once
> 
>       TIMEOUT 60
>       ABORT "NO CARRIER"
>       ABORT BUSY
>       ABORT "NO DIALTONE"
>       ABORT ERROR
>       "" ATZ
>       OK ATM1L3
>       OK ATDT303-492-8297
>       CONNECT ""
> 
I had a similar problem.  It happened once in a while.  I finally made
a simple change & it has not happened since.  I changed

'' AT&F1M3    to    ''              '\nAT&F1M3\r'

        TIMEOUT         30                              \
        ABORT           '\nBUSY\r'              \
        ABORT           '\nNO ANSWER\r' \
        ABORT           '\nRINGING\r'   \
        ''              '\nAT&F1M3\r'           \
        'OK-+++\c-OK'   ATH0            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE          \
        CONNECT         ''                              \
        ogin:--ogin:    $ACCOUNT        \
        assword:        $PASSWORD       

I think (?) the modem needed the CR to kick it in the butt.

HTH



-- 
Pascal, n.:
 A programming language named after a man who would turn over in
 his grave if he knew about it.
_______________________________________________________
Wayne T. Topa <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to